+ Reply to Thread
Results 1 to 2 of 2

Group rows based on certain column value (sort not possible)

  1. #1
    Registered User
    Join Date
    07-23-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    1

    Group rows based on certain column value (sort not possible)

    Hi. I am hoping to have a macro that can create groups to certain rows based on a single value in one of the columns. My data can't be sorted as the rows cannot be re-ordered.

    My file has 4000 rows. Whenever there is the word "document" in column C then I want to add a group for that row. If there are rows beside each other with "Document" in Column C then I'd like it to group all those rows together in a single Group. Nothing needs to happen to the rows which have "Folder" in column C.

    I have attached an excel with a sample data on the "original" worksheet and then the desired result on the second worksheet.

    Thank you so much.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Group rows based on certain column value (sort not possible)

    I doubt if you are still using XL2003, as you have attached an .xlsx file which isn't/wasn't available in that version. Please update your User profile to show the version you are currently using, so that solutions can be tailored as necessary.

    Thanks,

    Pete

+ 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. Replies: 3
    Last Post: 01-27-2020, 07:11 PM
  2. Replies: 2
    Last Post: 07-03-2018, 08:41 PM
  3. [SOLVED] sort/group rows based on name then amount
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-26-2018, 04:48 AM
  4. How to group the rows by the content of a certain column and then sort the sheet by anot?
    By woshichuanqilz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2017, 11:40 AM
  5. [SOLVED] I have a sort macro. How to add script to preselect rows to sort based on column value?
    By Jasonhouse in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-09-2014, 02:25 AM
  6. [SOLVED] Group/sort rows based on values in multiple columns?
    By teitoku in forum Excel General
    Replies: 5
    Last Post: 08-07-2012, 02:20 PM
  7. [SOLVED] Group & sort rows that have a specific value in column C
    By Lex in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-27-2006, 07:50 PM

Tags for this Thread

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