+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Grouping data then sorting (very frustrating)

  1. #1
    Registered User
    Join Date
    08-06-2009
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Grouping data then sorting (very frustrating)

    Hi Everyone,

    I am hoping someone will have an answer to this. It seems like it should be simple, but I can't seem to figure it out.

    At work we have a list that shows a name (A1), some dates (A2 through A4) and comments (A5). Sometimes the dates in A3 change. We want to capture the old dates in B3, C3, etc. with all the other cells in B, C, respectively being blank. We then want to sort on A2. Now with another "group" starting at D1 through D5, we need to keep rows A, B, and C together. We also want to hide B and C when not printing.

    I've tried grouping/outling A, B, and C, but when I sort they either break up or don't sort at all, depending on what's visibile using the 123 buttons at top.

    I hope that makes sense.

    Thank you so much for any help you can give!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Grouping data then sorting (very frustrating)

    lots of wants there! post a sheet with what you have before and what you would like to see after .
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    08-06-2009
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Grouping data then sorting (very frustrating)

    Hi Martin, Thanks for the reply. I know that it seemed complicated, but it's not really.

    Since I don't know how to insert a sheet, I did a mock in picture. All we want to do is hide rows 3 and 4, 6 and 7 until we want to print the whole thing. Unfortunately, all the ways I've tried (hiding, grouping/outling) breaks up all the rows when sorting.

    Thanks so much for your help!!!
    Attached Images Attached Images
    Last edited by DennisP2; 08-07-2009 at 04:42 PM.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Grouping data then sorting (very frustrating)

    to keep them together when sorting you need to fill in those blanks in fields you want to sort by or just have another column/s with them filled in to sort by
    example to get a filled list of documents in another column say col X
    then use in x2 and dragged down
    =IF(A2="",X1,A2) repeat for each column say "writer" in col. Y =IF(B2="",Y1,B2)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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