+ Reply to Thread
Results 1 to 9 of 9

Grouping Dates in Pivot tables

  1. #1
    Andy M
    Guest

    Grouping Dates in Pivot tables

    Hi All,

    Although I am generally comfortable with Pivot tables I frequently run into
    a problem grouping date ranges within the pivot table. Sometimes this works
    fine and other times excel says that it cannot group that data. There is some
    mention of this in the help however it does not suggest how to fix it. It
    seems that it has to do with the date format from the original list however I
    have tried reformatting and it seems to not help.

    Has anyone ever figured this out? Some date ranges work fine and other
    don't. Thanks for any help that you can offer.

  2. #2
    Debra Dalgleish
    Guest

    Re: Grouping Dates in Pivot tables

    That error can occur if there are blank cells or cells with text in the
    date column. There are some suggestions here for fixing the problem:

    http://www.contextures.com/xlPivot07.html#Problems

    Andy M wrote:
    > Hi All,
    >
    > Although I am generally comfortable with Pivot tables I frequently run into
    > a problem grouping date ranges within the pivot table. Sometimes this works
    > fine and other times excel says that it cannot group that data. There is some
    > mention of this in the help however it does not suggest how to fix it. It
    > seems that it has to do with the date format from the original list however I
    > have tried reformatting and it seems to not help.
    >
    > Has anyone ever figured this out? Some date ranges work fine and other
    > don't. Thanks for any help that you can offer.



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  3. #3
    Dave Peterson
    Guest

    Re: Grouping Dates in Pivot tables

    When I get this message, it's because I have a non-date in that column. It
    could be text or an empty cell. Both of these will cause the problem you
    describe.

    Andy M wrote:
    >
    > Hi All,
    >
    > Although I am generally comfortable with Pivot tables I frequently run into
    > a problem grouping date ranges within the pivot table. Sometimes this works
    > fine and other times excel says that it cannot group that data. There is some
    > mention of this in the help however it does not suggest how to fix it. It
    > seems that it has to do with the date format from the original list however I
    > have tried reformatting and it seems to not help.
    >
    > Has anyone ever figured this out? Some date ranges work fine and other
    > don't. Thanks for any help that you can offer.


    --

    Dave Peterson

  4. #4
    Andy M
    Guest

    Re: Grouping Dates in Pivot tables

    Thanks Debra, I have tried all of these and still no luck. The data looks
    good, is there any other possibility of fixing this?

    Andy

    "Debra Dalgleish" wrote:

    > That error can occur if there are blank cells or cells with text in the
    > date column. There are some suggestions here for fixing the problem:
    >
    > http://www.contextures.com/xlPivot07.html#Problems
    >
    > Andy M wrote:
    > > Hi All,
    > >
    > > Although I am generally comfortable with Pivot tables I frequently run into
    > > a problem grouping date ranges within the pivot table. Sometimes this works
    > > fine and other times excel says that it cannot group that data. There is some
    > > mention of this in the help however it does not suggest how to fix it. It
    > > seems that it has to do with the date format from the original list however I
    > > have tried reformatting and it seems to not help.
    > >
    > > Has anyone ever figured this out? Some date ranges work fine and other
    > > don't. Thanks for any help that you can offer.

    >
    >
    > --
    > Debra Dalgleish
    > Excel FAQ, Tips & Book List
    > http://www.contextures.com/tiptech.html
    >
    >


  5. #5
    Andy M
    Guest

    Re: Grouping Dates in Pivot tables

    Thanks Dave, I have checked this as well and tried many means of converting
    to assure they are all dates. No luck yet.

    Andy

    "Dave Peterson" wrote:

    > When I get this message, it's because I have a non-date in that column. It
    > could be text or an empty cell. Both of these will cause the problem you
    > describe.
    >
    > Andy M wrote:
    > >
    > > Hi All,
    > >
    > > Although I am generally comfortable with Pivot tables I frequently run into
    > > a problem grouping date ranges within the pivot table. Sometimes this works
    > > fine and other times excel says that it cannot group that data. There is some
    > > mention of this in the help however it does not suggest how to fix it. It
    > > seems that it has to do with the date format from the original list however I
    > > have tried reformatting and it seems to not help.
    > >
    > > Has anyone ever figured this out? Some date ranges work fine and other
    > > don't. Thanks for any help that you can offer.

    >
    > --
    >
    > Dave Peterson
    >


  6. #6
    Debra Dalgleish
    Guest

    Re: Grouping Dates in Pivot tables

    If you don't have blank cells or text in the date column (and you didn't
    include any blank rows at the bottom of the pivot table), there may be a
    grouped field left over from the previous time that you grouped the
    data. Check the field list, to see if there's a second copy of the date
    field, e.g. Date2.

    If there is, add it to the row area, and ungroup it.

    Then, you should be able to group the date field again.

    Andy M wrote:
    > Thanks Debra, I have tried all of these and still no luck. The data looks
    > good, is there any other possibility of fixing this?
    >
    > Andy
    >
    > "Debra Dalgleish" wrote:
    >
    >
    >>That error can occur if there are blank cells or cells with text in the
    >>date column. There are some suggestions here for fixing the problem:
    >>
    >> http://www.contextures.com/xlPivot07.html#Problems
    >>
    >>Andy M wrote:
    >>
    >>>Hi All,
    >>>
    >>>Although I am generally comfortable with Pivot tables I frequently run into
    >>>a problem grouping date ranges within the pivot table. Sometimes this works
    >>>fine and other times excel says that it cannot group that data. There is some
    >>>mention of this in the help however it does not suggest how to fix it. It
    >>>seems that it has to do with the date format from the original list however I
    >>>have tried reformatting and it seems to not help.
    >>>
    >>>Has anyone ever figured this out? Some date ranges work fine and other
    >>>don't. Thanks for any help that you can offer.

    >>
    >>
    >>--
    >>Debra Dalgleish
    >>Excel FAQ, Tips & Book List
    >>http://www.contextures.com/tiptech.html
    >>
    >>

    >



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  7. #7
    Andy M
    Guest

    Re: Grouping Dates in Pivot tables

    You are a genius. That was it. You don't know how much this helps me. Thanks
    very much.

    Andy

    "Debra Dalgleish" wrote:

    > If you don't have blank cells or text in the date column (and you didn't
    > include any blank rows at the bottom of the pivot table), there may be a
    > grouped field left over from the previous time that you grouped the
    > data. Check the field list, to see if there's a second copy of the date
    > field, e.g. Date2.
    >
    > If there is, add it to the row area, and ungroup it.
    >
    > Then, you should be able to group the date field again.
    >
    > Andy M wrote:
    > > Thanks Debra, I have tried all of these and still no luck. The data looks
    > > good, is there any other possibility of fixing this?
    > >
    > > Andy
    > >
    > > "Debra Dalgleish" wrote:
    > >
    > >
    > >>That error can occur if there are blank cells or cells with text in the
    > >>date column. There are some suggestions here for fixing the problem:
    > >>
    > >> http://www.contextures.com/xlPivot07.html#Problems
    > >>
    > >>Andy M wrote:
    > >>
    > >>>Hi All,
    > >>>
    > >>>Although I am generally comfortable with Pivot tables I frequently run into
    > >>>a problem grouping date ranges within the pivot table. Sometimes this works
    > >>>fine and other times excel says that it cannot group that data. There is some
    > >>>mention of this in the help however it does not suggest how to fix it. It
    > >>>seems that it has to do with the date format from the original list however I
    > >>>have tried reformatting and it seems to not help.
    > >>>
    > >>>Has anyone ever figured this out? Some date ranges work fine and other
    > >>>don't. Thanks for any help that you can offer.
    > >>
    > >>
    > >>--
    > >>Debra Dalgleish
    > >>Excel FAQ, Tips & Book List
    > >>http://www.contextures.com/tiptech.html
    > >>
    > >>

    > >

    >
    >
    > --
    > Debra Dalgleish
    > Excel FAQ, Tips & Book List
    > http://www.contextures.com/tiptech.html
    >
    >


  8. #8
    Dave Peterson
    Guest

    Re: Grouping Dates in Pivot tables

    Sometimes xl doesn't want to let go of the thought that there's non-dates in
    that column.

    If I have non-dates and then fixed them, I can drag the date field off the pt,
    refresh the pt, and drag the field back.

    It's worked in the past--I don't recall if it's 100% effective, though. But it
    just worked again when I tried it.

    And I'd try this to verify that you really have dates.
    =counta(yourrangewithdates)
    =count(yourrangewithdates)

    if you get different values returned, then one of those entries is masquerading
    as a date.

    And both numbers should be the total number of cells in that range.

    One more thought about your range for the pt. Did you include extra rows to
    grow into?

    If yes, then those blanks will cause the trouble. You can sometimes avoid that
    resizing ranges by using a dynamic range name for your source.

    Debra Dalgleish has instructions at:
    http://www.contextures.com/xlNames01.html#Dynamic

    Andy M wrote:
    >
    > Thanks Dave, I have checked this as well and tried many means of converting
    > to assure they are all dates. No luck yet.
    >
    > Andy
    >
    > "Dave Peterson" wrote:
    >
    > > When I get this message, it's because I have a non-date in that column. It
    > > could be text or an empty cell. Both of these will cause the problem you
    > > describe.
    > >
    > > Andy M wrote:
    > > >
    > > > Hi All,
    > > >
    > > > Although I am generally comfortable with Pivot tables I frequently run into
    > > > a problem grouping date ranges within the pivot table. Sometimes this works
    > > > fine and other times excel says that it cannot group that data. There is some
    > > > mention of this in the help however it does not suggest how to fix it. It
    > > > seems that it has to do with the date format from the original list however I
    > > > have tried reformatting and it seems to not help.
    > > >
    > > > Has anyone ever figured this out? Some date ranges work fine and other
    > > > don't. Thanks for any help that you can offer.

    > >
    > > --
    > >
    > > Dave Peterson
    > >


    --

    Dave Peterson

  9. #9
    Debra Dalgleish
    Guest

    Re: Grouping Dates in Pivot tables

    You're welcome! Thanks for letting me know that was the problem.

    Andy M wrote:
    > You are a genius. That was it. You don't know how much this helps me. Thanks
    > very much.
    >
    > Andy
    >
    > "Debra Dalgleish" wrote:
    >
    >
    >>If you don't have blank cells or text in the date column (and you didn't
    >>include any blank rows at the bottom of the pivot table), there may be a
    >>grouped field left over from the previous time that you grouped the
    >>data. Check the field list, to see if there's a second copy of the date
    >>field, e.g. Date2.
    >>
    >>If there is, add it to the row area, and ungroup it.
    >>
    >>Then, you should be able to group the date field again.
    >>
    >>Andy M wrote:
    >>
    >>>Thanks Debra, I have tried all of these and still no luck. The data looks
    >>>good, is there any other possibility of fixing this?
    >>>
    >>>Andy
    >>>
    >>>"Debra Dalgleish" wrote:
    >>>
    >>>
    >>>
    >>>>That error can occur if there are blank cells or cells with text in the
    >>>>date column. There are some suggestions here for fixing the problem:
    >>>>
    >>>> http://www.contextures.com/xlPivot07.html#Problems
    >>>>
    >>>>Andy M wrote:
    >>>>
    >>>>
    >>>>>Hi All,
    >>>>>
    >>>>>Although I am generally comfortable with Pivot tables I frequently run into
    >>>>>a problem grouping date ranges within the pivot table. Sometimes this works
    >>>>>fine and other times excel says that it cannot group that data. There is some
    >>>>>mention of this in the help however it does not suggest how to fix it. It
    >>>>>seems that it has to do with the date format from the original list however I
    >>>>>have tried reformatting and it seems to not help.
    >>>>>
    >>>>>Has anyone ever figured this out? Some date ranges work fine and other
    >>>>>don't. Thanks for any help that you can offer.
    >>>>
    >>>>
    >>>>--
    >>>>Debra Dalgleish
    >>>>Excel FAQ, Tips & Book List
    >>>>http://www.contextures.com/tiptech.html
    >>>>
    >>>>
    >>>

    >>
    >>--
    >>Debra Dalgleish
    >>Excel FAQ, Tips & Book List
    >>http://www.contextures.com/tiptech.html
    >>
    >>

    >



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1