We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Excel sort doesn't work

Options
Okay so I've just done a small sheet.


column A


pear
banana
orange
apple


Each row I've named as a range using the contents of column A


When I then sort the data alphabetically the first row now contains apple but the range is still named pear.


Is this normal? Can it be changed so the range is kept with it's original data?

Comments

  • Mirno
    Mirno Posts: 219 Forumite
    Did you select all the columns you wanted to sort by?
    If your data is:
    A, pear, 10
    B, banana, 15
    C, orange, 17
    D, apple, 3

    You need to select all 3 columns before sorting, then select sort by column B in the first drop down. Otherwise it'll only sort the selected column leaving all others the same as they were.

    If I've understood correctly...
  • rmg1
    rmg1 Posts: 3,159 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Sorting the columns doesn't affect the named range. You would need some sort of dynamic named range to deal with that (if that's even possible, it's something I've tried).
    :wall: Flagellation, necrophilia and bestiality - Am I flogging a dead horse? :wall:

    Any posts are my opinion and only that. Please read at your own risk.
  • cookie365
    cookie365 Posts: 1,809 Forumite
    Wouldn't this be better of in a table, rather than using named ranges?

    http://office.microsoft.com/en-gb/excel-help/using-structured-references-with-excel-tables-HA010155686.aspx
  • A defined Name does not have set a location, it only refers to a cell/range. It's not stored in a cell, nor is it a property of a cell.

    If you can elaborate on what you're trying to achieve or why you need to use named ranges, we might be able to offer a solution.
  • my guess is....you didn't specify the name for the range so it took the top name pear from the list. if you called the range "ABOUT AS FRUITY AS MY CATS a##e" then sorted it , you'd get apple, banana, orange, pear, but the range itself would still be called the above....
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 350.9K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.5K Spending & Discounts
  • 243.9K Work, Benefits & Business
  • 598.8K Mortgages, Homes & Bills
  • 176.9K Life & Family
  • 257.2K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.