Results 1 to 3 of 3

Thread: Grouping column containing Number values into specific subgroups

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    7
    Rep Power
    0

    Grouping column containing Number values into specific subgroups

    i have a dynamic column with ageing number of Days listed, I am trying to Group these according to specific criteria
    i.e
    Less than 30 days
    31 to 45 Days
    46 to 70 Days
    71 to 99 Days
    >100 Days
    this criteria will remain Fixed throughout
    A pivot doesn't provide specific criteria as the group criteria are not fixed .. is there another method i could use to do this?
    Attached Files Attached Files
    Last edited by Sonny Thind; 09-21-2014 at 04:52 AM. Reason: SOLVED!

  2. #2
    Member p45cal's Avatar
    Join Date
    Oct 2013
    Posts
    94
    Rep Power
    11
    Quote Originally Posted by Sonny Thind View Post
    Less than 30 days
    31 to 45 Days
    46 to 70 Days
    71 to 99 Days
    >100 Days
    I've assumed:
    Less than 31 days
    31 to 45 Days
    46 to 70 Days
    71 to 99 Days
    >99 Days

    since 30 days and 100 days would not fit in any category. You'll have to tweak if I've guessed wrongly.

    Add a column with the formula in row 2:
    =INDEX({"<31";"31-45";"46-70";"71-99";">99"},MATCH(B2,{0;31;46;71;100},1))
    and copy down. Give the column a header, say Group.

    Then add a pivot table including this new column as part of its source data, include Group in the (top of the) Row Labels section of the pivot.

    See attached.
    I imagine there are more columns than you're showing in your real data; just add the columns you want to see to the Row Labels section of the pivot.
    Attached Files Attached Files

  3. #3
    Junior Member
    Join Date
    Sep 2011
    Posts
    7
    Rep Power
    0
    hi p45cal
    . I really like the array formula.

    This really helps thank you very much for this..
    Last edited by Sonny Thind; 09-21-2014 at 04:52 AM. Reason: SOLVED

Similar Threads

  1. Replies: 3
    Last Post: 08-18-2013, 08:59 PM
  2. Replies: 6
    Last Post: 07-26-2013, 11:42 AM
  3. Replies: 8
    Last Post: 07-01-2013, 03:52 PM
  4. Replies: 10
    Last Post: 05-23-2013, 12:30 PM
  5. Converting a Column Number to a Column Letter
    By Rasm in forum Excel and VBA Tips and Tricks
    Replies: 6
    Last Post: 12-17-2012, 02:29 AM

Tags for this Thread

Posting Permissions

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