+ Reply to Thread
Results 1 to 8 of 8

Group based on cell content or color

  1. #1
    Registered User
    Join Date
    07-21-2010
    Location
    Largo, FL
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    54

    Question Group based on cell content or color

    Good morning all. I've searched for a little bit now, but can't find exactly what I'm looking to do. I also posted this question on another board, but received no help.

    I am needing macro to Group Rows based on either cell content or cell/row color. A lot of the worksheets I work on usually have 5K+ rows and 100+ columns.

    I have done Subtotals, but I don't think Subtotaling will work every time based on some of the data I work with. So, I am using a Pivot to format the data...but now need to Group the data to make it easier for the other users.

    I need to Group by the Row Colors without the word Count. Make sense???

    I have attached an example file.

    Thanks for your time.
    Attached Files Attached Files
    Last edited by Shaner73; 02-06-2012 at 04:36 PM.

  2. #2
    Forum Guru
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Group based on cell content or color

    hi Shaner73, please check attachment, run code "test" (option to do it from Excel 2003 perspective). I hope I understood you right that Group by the Row Colors means just have blocks of the same coloured rows.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-21-2010
    Location
    Largo, FL
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    54

    Re: Group based on cell content or color

    watersev...Thank you for replying. But, I did not make myself clear enough I guess.

    By "Grouping" I need it to look like Subtotals...where the end user can just look to see the Count Total, click the + to open the row(s).

    I have edited and attached my example.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Group based on cell content or color

    correct me if I'm wrong, you need just to add subtotal feature to the strcuture as it is. The line with count will become TOTAL and differentiates subtotal blocks.

  5. #5
    Forum Guru
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Group based on cell content or color

    do you mind if the empty MPN cells will have account from the above cell?

  6. #6
    Registered User
    Join Date
    07-21-2010
    Location
    Largo, FL
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    54

    Re: Group based on cell content or color

    Quote Originally Posted by watersev View Post
    do you mind if the empty MPN cells will have account from the above cell?
    I don't mind at all.

  7. #7
    Forum Guru
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Group based on cell content or color

    please check attachment, run code "test"
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-21-2010
    Location
    Largo, FL
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    54

    Re: Group based on cell content or color

    Quote Originally Posted by watersev View Post
    please check attachment, run code "test"
    Awesome...great job. Thank you very much.

+ 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