+ Reply to Thread
Results 1 to 4 of 4

Group numbers into workable ranges in order to run a pivot table (days taken to update)

  1. #1
    Registered User
    Join Date
    02-27-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    15

    Group numbers into workable ranges in order to run a pivot table (days taken to update)

    Hi there,

    Cells in row C have numbers (number of days between date a and date b)

    I want to group the days so I can run a usable pivot table as follows:

    Up to 7 days between update date and today (ie 1 week)
    8-14 days between update date and today (ie 2 weeks)
    15-21 days (ie 3 weeks)
    4 weeks +

    My attempt is as follows but only give two results and not 4?

    =IF(OR(C2<=7),"1-7days",IF(OR(C2>=8,C2<=14),"8-14days",IF(OR(C2<=21,C2>=15),"15-21days","Over4weeks")))

    Any help would be great. Thanks, B.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Group numbers into workable ranges in order to run a pivot table (days taken to update

    Hi,

    Something like:

    =LOOKUP(C2,{1,8,15,22},{"1-7 days","8-14 days","15-21 days","Over4weeks"})

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    02-27-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Group numbers into workable ranges in order to run a pivot table (days taken to update

    Dear XOR LX, I have no idea how this does what it does but it works!

    Thank you.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Group numbers into workable ranges in order to run a pivot table (days taken to update

    You're welcome!

+ 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. [SOLVED] Create code to update named ranges in a table. Table contains Many Name Ranges
    By Calio in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2014, 11:13 AM
  2. Needed to group Numbers in Pivot Table
    By nadarajan in forum Excel Charting & Pivots
    Replies: 13
    Last Post: 01-10-2013, 04:47 AM
  3. Pivot table grouping numbers that I do not want them to group
    By atmosphereee in forum Excel General
    Replies: 1
    Last Post: 07-16-2010, 03:04 PM
  4. Pivot tables not keeping date ranges in order
    By darkwing_duck@myrealbox.com in forum Excel General
    Replies: 2
    Last Post: 06-03-2006, 08:15 AM
  5. [SOLVED] Pivot table/chart - can I use data ranges? why will it not group d
    By Forrest in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-10-2006, 03:30 PM

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