• Sorting a sheet with multiple heading rows (Excel XP)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Sorting a sheet with multiple heading rows (Excel XP)

    Author
    Topic
    #423937

    Howdy everyone,

    My friend is trying to sort a sheet which has multiple heading rows. Excel’s help says to wrap the text to make it look like two rows, but as you’ll see in the attachment this is a case where the column headings spread across multiple rows, so wrapping just isn’t going to work.

    Anyway around this?

    Thanks in advance.

    Viewing 1 reply thread
    Author
    Replies
    • #972041

      1) you can explicitly give the range to sort and not include the header rows

      2) Excel will allow 2 header rows, if they appear to be header rows. Fill in all the blanks cells in the 2nd row (with a space, eg) and have them all bold and excel should “guess” that it is a header row. With it blank, it does not seem to be a header row to excel

      Steve

      • #972048

        If you insert a hidden blank row between the two rows, Excel will guess that only the lower of the two (visible) rows is intended to be the header – you will have to ensure that any descriptions are meaningful using only that row. If this is going to be sorted by a VBA routine then that doesn’t matter – but then you can set the sort range directly in any event…

        • #972086

          This still requires no blank cells in this row.

          It may be better to insert the hidden blank row underneath the 2 header rows, as excel will more likely assume there is no header row…

          Steve

    • #972096

      Is your friend trying to sort using the menu command or VBA code?

    Viewing 1 reply thread
    Reply To: Sorting a sheet with multiple heading rows (Excel XP)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: