+ Reply to Thread
Results 1 to 8 of 8

Sorting Groups of Data in Excel 2003

Hybrid View

  1. #1
    Registered User
    Join Date
    08-12-2011
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2003
    Posts
    5

    Sorting Groups of Data in Excel 2003

    I apologize in advance if this is hard to understand. I am a newbie and pretty much teach myself, but I can not figure this out!

    Is there any way to sort a column of data that is designated to a specific group? I have attached a sample to easier explain what I am trying to do.

    In the attachment, there are three groups of data. I need to sort each group by column G (from lowest to highest). Obviously, the stickler here is keeping all the rows within the groups intact. I have a huge spreadsheet of this and I am really dreading the idea of having to do this manually!

    Any solutions? Thank you so much in advance.

    I am using Excel 2003, but I could possibly use Excel 2010, if their is an option there.

    Sample.xls
    Last edited by kyrielynn; 07-06-2012 at 04:33 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Sorting Groups of Data in Excel 2003

    Maybe I'm missing something here, but there's nothing in column G other than a total for each of the groups.
    Did you mean a different column? F Perhaps?
    If I've been of help, please hit the star

  3. #3
    Registered User
    Join Date
    08-12-2011
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Sorting Groups of Data in Excel 2003

    Yeah. I need to sort column G (the total for each of the groups). I just pulled them out to another column to sort easier. I figured if I didnt, it would sort the other data too, which is not needed.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sorting Groups of Data in Excel 2003

    1) Put this formula in H1, then copy H1 down the dataset (the data won't all appear until step #2):

    =IF(G1="", H2, G1)

    2) Now sort the data by column H ascending.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    08-12-2011
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Sorting Groups of Data in Excel 2003

    Seems like a legit work-around. Worked for me so far. Thank you!

    Any other ideas are greatly appreciated.

  6. #6
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Sorting Groups of Data in Excel 2003

    Right, I get what you mean now.
    I shall have to have a think on this one...

    EDIT: OR, I would go with JBeaucaire's answer
    Last edited by Spencer101; 07-06-2012 at 04:46 PM.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sorting Groups of Data in Excel 2003

    I missed something. You DON'T need the data on the left that goes into making each subtotal? You just want the individual subtotals listed together consecutively?

    In K1 put this formula, then copy down:

    =IF(ROW(A1)>COUNT(G:G), "", SMALL(G:G, ROW(A1)))

  8. #8
    Registered User
    Join Date
    08-12-2011
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Sorting Groups of Data in Excel 2003

    No, I want to include the data on the left, I just want to sort it by its total. Right now, I have to copy/paste the formula for each to get the weighted average, then type out manually the totals into column G, then do what you first suggested, then sort from there.. then delete those two additional columns. What you have suggested definitely helps- but its still a process.

+ 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