Results 1 to 3 of 3

Thread: Grouping column containing Number values into specific subgroups

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member p45cal's Avatar
    Join Date
    Oct 2013
    Posts
    94
    Rep Power
    13
    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

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
  •