+ Reply to Thread
Results 1 to 5 of 5

Sort with multiple header rows

  1. #1
    Suzy Greblo
    Guest

    Sort with multiple header rows

    I have three rows at the top of my Excel spreadsheet. One row is the column
    names; the other two rows contain data used in formulae elsewhere in the
    spreadsheet. Is there any way to do it without first selecting the data? I've
    found this method is very prone to error.

    How do I sort the data without sorting in the three header rows? Designating
    "header row" in the sort dialogue only identifies one row.

  2. #2
    Earl Kiosterud
    Guest

    Re: Sort with multiple header rows

    Suzy,

    It expects to either use the top row of your selection as the header (from
    where it gets the column names for the Sort dialog), where it will leave it
    at the top, or to treat the top row of the selection as data, and sort it
    like any other. If you must leave the layout as it is, you'll have to
    manually select the data, sans headers, then tell the Data - Sort dialog you
    don't have a header. It will identify your columns only by letter now, not
    by name.

    Perhaps you could move those other two rows above the actual headers. You
    may want to put an empty row above the real header, which you can hide, if
    you're using expanded selection (select a single cell, and let the selection
    expand).

    --
    Earl Kiosterud
    mvpearl omitthisword at verizon period net
    -------------------------------------------

    "Suzy Greblo" <Suzy [email protected]> wrote in message
    news:[email protected]...
    >I have three rows at the top of my Excel spreadsheet. One row is the column
    > names; the other two rows contain data used in formulae elsewhere in the
    > spreadsheet. Is there any way to do it without first selecting the data?
    > I've
    > found this method is very prone to error.
    >
    > How do I sort the data without sorting in the three header rows?
    > Designating
    > "header row" in the sort dialogue only identifies one row.




  3. #3
    bj
    Guest

    RE: Sort with multiple header rows

    One way to do this is to use a named range which would have everything other
    than the first three rows. Then When you want to sort, Just select the
    named range.

    "Suzy Greblo" wrote:

    > I have three rows at the top of my Excel spreadsheet. One row is the column
    > names; the other two rows contain data used in formulae elsewhere in the
    > spreadsheet. Is there any way to do it without first selecting the data? I've
    > found this method is very prone to error.
    >
    > How do I sort the data without sorting in the three header rows? Designating
    > "header row" in the sort dialogue only identifies one row.


  4. #4
    Dave Peterson
    Guest

    Re: Sort with multiple header rows

    Maybe...

    Say headers are in row 1. "formula data" in rows 2:3. Real data in rows 4:xxx.

    Maybe you could move rows 2:3 before row 1--and even hide those new rows 1:2.

    (It might make it slightly easier.)

    Suzy Greblo wrote:
    >
    > I have three rows at the top of my Excel spreadsheet. One row is the column
    > names; the other two rows contain data used in formulae elsewhere in the
    > spreadsheet. Is there any way to do it without first selecting the data? I've
    > found this method is very prone to error.
    >
    > How do I sort the data without sorting in the three header rows? Designating
    > "header row" in the sort dialogue only identifies one row.


    --

    Dave Peterson

  5. #5
    Registered User
    Join Date
    05-16-2014
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Sort with multiple header rows

    To build off Dave's idea and make it even easier, if you're sorting this data often ....

    (NOTE: This only seems to work if you're sorting by Column A. Not sure why it doesn't work with the others).

    1. Select the rows you want to be used as your header.

    2. Go to the "Data" tab and select "Group"

    3. Click the minus sign ( - ) that now appears on the left of your newly grouped rows. This will allow you to hide and unhide those rows with a single click, whenever you want. No need to worry about not clicking the proper rows when you need to unhide them again (maybe it's just me, but sometimes I have a hard time finding hidden rows and selecting the proper cells to unhide them on the first try, haha).

    4. Now select "Sort" .

    5. Click the plus sign ( + ) to unhide your multiple row header with the newly sorted date below it

    Last edited by Button Guy; 05-16-2014 at 01:52 PM.

+ 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