피벗 테이블에서 월별로 그룹화하려는데 "선택 항목을 그룹화할 수 없습니다"라고 떠요. 날짜 열이 문제인 것 같은데 어떻게 고치죠?
그 오류는 대부분 날짜 열에 텍스트로 저장된 날짜나 빈 셀이 섞여 있을 때 생깁니다. 피벗은 열 전체가 진짜 날짜 값이어야 월·분기로 묶을 수 있어요.
- 날짜 열 옆에 보조 열을 만들고
=ISNUMBER(A2)로 확인합니다. FALSE가 나오는 행이 텍스트 날짜입니다. - 텍스트 날짜는
=DATEVALUE(A2)로 바꾸거나, 열 전체를 선택한 뒤 데이터 → 텍스트 나누기 → 마침을 누르면 한 번에 변환됩니다. - 빈 셀이 있다면 원본 범위에서 빼거나 임시 날짜를 넣습니다.
- 피벗 테이블에서 새로 고침(Alt+F5) 후 날짜 필드를 우클릭해 그룹 → 월을 고릅니다.
이 수식을 보조 열에 채운 뒤 그 열을 피벗의 행 필드로 쓰면, 원본을 건드리지 않고도 그룹화가 됩니다.
오 됐다. 분기별로도 같이 보려면?
그룹 대화상자에서 월과 분기를 둘 다 선택하면 됩니다. 연도가 여러 개라면 연도 함께 선택해야 서로 다른 해의 같은 달이 합쳐지지 않아요.
My pivot table won't group dates by month. It says "Cannot group that selection." I think the date column is the problem. How do I fix it?
That error almost always means the date column has some dates stored as text or some blank cells. A pivot table can only group by month or quarter when every value in the column is a real date.
- Add a helper column next to the dates and check each row with
=ISNUMBER(A2). Rows that show FALSE hold text dates. - Convert text dates with
=DATEVALUE(A2), or select the whole column and choose Data → Text to Columns → Finish to convert them all at once. - Remove blank rows from the source range, or fill them with a placeholder date.
- In the pivot table, Refresh (Alt+F5), then right-click the date field and choose Group → Months.
Fill this formula down the helper column and use that column as the pivot's row field. Grouping then works without touching the original data.
That worked. What if I want quarters too?
In the Grouping dialog, select both Months and Quarters. If your data spans more than one year, select Years as well so the same month from different years isn't merged.