+ Reply to Thread
Results 1 to 8 of 8

filtering on 2 sets of dates in a pivot table

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2013
    Posts
    91

    filtering on 2 sets of dates in a pivot table

    Hi, I have a pivot table with over 1000 lines of data. I need to filter on 2 dates ranges e.g. 05/01/13 to 10/05/13 and 20/10/13 to 12/12/13. I can only filter on the first date range. Is it possible to do 2 sets of date ranges in a pivot table?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: filtering on 2 sets of dates in a pivot table

    Instead of trying to select two sets of data in pivot. Keep 2 cells for date input and based on that let the formula to work with the source data to show only the selected data in pivot.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    02-22-2013
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2013
    Posts
    91

    Re: filtering on 2 sets of dates in a pivot table

    sorry sixthsense, I do not understand what you mean by "keep 2 cells for date input" and what formula are you talking about?

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: filtering on 2 sets of dates in a pivot table

    Refer the attached file to know how to do it
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-22-2013
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2013
    Posts
    91

    Re: filtering on 2 sets of dates in a pivot table

    Hi Sixthsense, that still only shows one date range in your example. I want to show 2 date ranges in the one pivot table. Thanks for helping.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: filtering on 2 sets of dates in a pivot table

    I just shown you the method.. rest you have to develop

  7. #7
    Registered User
    Join Date
    02-22-2013
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2013
    Posts
    91

    Re: filtering on 2 sets of dates in a pivot table

    Thanks Sixthsense you gave me something to work on. I added a second date range to your formula and put the dates in K2 and K3 (see below). The dates in K2 and K3 are like yours as drop down lists. The formula in the GROUP column D identifies both date ranges which is great, however the pivot table won't recognise the two sets of date ranges.

    =IF(COUNTIFS(A2,">="&$I$2,A2,"<="&$I$3)+(COUNTIFS(A2,">="&$K$2,A2,"<="&$K$3)),"Select","Deselect")

  8. #8
    Registered User
    Join Date
    02-22-2013
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2013
    Posts
    91

    Re: filtering on 2 sets of dates in a pivot table

    Pivot works fine now. copied the sheet but forgot to change data source, my mistake. Formula works great in conjunction with pivot. Thanks Sixthsense

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA for filtering dates in a Pivot Table Round 2
    By PhatRam32 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-14-2013, 02:29 PM
  2. VBA for filtering dates in a Pivot Table
    By PhatRam32 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-18-2013, 10:26 PM
  3. Help filtering a pivot table for certain dates.
    By jcranst in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2013, 03:53 PM
  4. Filtering a Pivot Table for Between Two Dates
    By shichao in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2013, 04:30 PM
  5. Replies: 2
    Last Post: 05-21-2012, 10:56 AM

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