+ Reply to Thread
Results 1 to 5 of 5

sorting multiple columns maintaining row relationships

  1. #1
    Registered User
    Join Date
    05-23-2020
    Location
    USA
    MS-Off Ver
    2007 Microsoft Office
    Posts
    14

    sorting multiple columns maintaining row relationships

    Hi
    This is obviously a beginner's question but I can't find the answer - probably because I am not phrasing the question correctly.

    I have an Excel file (Office 2007) created from a txt file (which originally came from another Excel file).

    In the past when I sorted a column, the other columns maintained their relationships to the sorted column. But now, when I sort on a certain column that column get sorted but the others remain unchanged so that the relationship between the columns is destroyed. I obviously do not want this kind of sort but I do not know what I did to make Excel sort differently.

    How can I sort the contents in a column while maintaining the row relationship with the data in the other columns?

    Thank you.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    12,844

    Re: sorting multiple columns maintaining row relationships

    2 options:

    Make a table of your data => insert => table.

    After that sort the data



    Second option.

    Select all data. After that make the sort. Then the relationship will change, according to the sort you choose.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    05-23-2020
    Location
    USA
    MS-Off Ver
    2007 Microsoft Office
    Posts
    14

    Re: sorting multiple columns maintaining row relationships

    Wow! That was quick!

    Thank you.

    I will look for the solved button. (I'm new at this).

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Office 365 (Win 10 - Work) & Office 365 Subscription Insider (Win 10 - Home)
    Posts
    37,523

    Re: sorting multiple columns maintaining row relationships

    Please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  5. #5
    Registered User
    Join Date
    05-23-2020
    Location
    USA
    MS-Off Ver
    2007 Microsoft Office
    Posts
    14

    Re: sorting multiple columns maintaining row relationships

    Thanks Ali. I figured it out and did it.

+ 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