Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to group by date in an Excel 2010 pivot table.

The column with dates (i.e., the one want to group by), should be the latest date of 2 other columns if neither is null, or blank. i.e., with a formula like:

=IF(AND(A4 <> "", B4 <> ""), MAX(A4,B4), "")

Normally, this ""in the IF() formula acts the same as an empty cell. In this case, it is preventing me from grouping by date in the Pivot Table. If I filter the date column by (Blanks), then clear the contents of all those cells, then the pivot table does group by date ok. i.e., "" is not being treated the same as an empty cell.

share|improve this question

1 Answer 1

i usually use 0 (number, i.e.: 0.1.1900 date) instead of "" (empty string) and this number format: [=0]"";d.m.yyyy

  • since you use , as a list separator, the number format will probably look like '[=0]"",m/d/yyyy' for you, but i don't know for sure
  • in the pivot table, you will find these "blank" values under the year 1900 - i've never had to use actual dates from 1900, so there was no confusion
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.