+ Reply to Thread
Results 1 to 9 of 9

Sorting cells in one column with dependent information in other columns

  1. #1
    Registered User
    Join Date
    06-28-2015
    Location
    California
    MS-Off Ver
    MS Office 2008 for Mac
    Posts
    4

    Sorting cells in one column with dependent information in other columns

    Hi everyone, I'm new here. However, I've been looking for a solution for this problem of mine for awhile now and figured that I either have a unique problem, or that I'm not wording my searches correctly. I hope it's the latter. Anyways, I'm going to attempt to explain the situation and what I need done with an example afterwards.

    I would like to be able to sort the information for column A in alphabetical order. However, I want column B-D to sort accordingly so that it coincides with column A. In this example, I threw in random names, birth dates, cities, and state.

    A B C D
    1 Sam 05/25/1976 NY NY
    2 John 11/29/1985 LA CA
    3 Bob 02/06/1963 SF CA
    4 James 08/13/1989 KC KS

    After highlighting column A and hitting Sort A-Z, I would like to see the following:

    A B C D
    1 Bob 02/06/1963 SF CA
    2 James 08/13/1989 KC KS
    3 John 11/29/1985 LA CA
    4 Sam 05/25/1976 NY NY

    As you can see, column A is now in alphabetical order, with their respective birth dates, cities, and states. And if I can throw in another wrench or two into this, the actual values I'm working with will have blanks and repeated values. (Pretend there's multiple people with the same birthday, or from the same city, or from the same location).

    (And as I scroll down... I realize I could have uploaded a mock sheet... oh well....)

    EDIT:
    As Glenn helped me realize, I forgot to mention that I'm looking for other ways to sort instead of highlighting the first value from column A and highlighting all involved data. I know that this is the easiest way to do so, however, on the sheet I'm actually working on, I'm constantly adding values to the sheet, where sometimes I will only get information for column A. Or, I may get updated information for one of the values. For example, instead of John, it's really Jonathan, to which I will have to re-sort.

    The major issue I'm trying to solve is that I've caught myself (a few times already), forgetting to highlight the other columns to which throws off everything. But I won't catch my mistake until days later. (Thankfully it's a personal project) I was wondering if cells can be locked/linked to each other so that whenever a value from column A moves, B (and so forth) moves with it without having to highlight everything.
    Last edited by shntenchi; 06-28-2015 at 04:08 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Sorting cells in one column with dependent information in other columns

    Select ALL the data, not just column A. (on PC) use DATA/SORT&Filter/Sort/Column A/A-Z
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    06-28-2015
    Location
    California
    MS-Off Ver
    MS Office 2008 for Mac
    Posts
    4

    Re: Sorting cells in one column with dependent information in other columns

    Thanks Glenn, you helped me realize that my post was incomplete (which I'll edit). I know that this is the easiest way to do so, however, on the sheet I'm actually working on, I'm constantly adding values to the sheet, where sometimes I will only get information for column A. Or, I may get updated information for one of the values, for example, instead of John, it's really Jonathan, to which I will have to re-sort. However, I've caught myself (a few times already), where I forget to highlight the other columns to which throws off everything. But I won't catch my mistake until days later. (Thankfully it's a personal project) I was wondering if cells can be locked/linked to each other so that whenever a value from column A moves, B (and so forth) moves with it.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Sorting cells in one column with dependent information in other columns

    I'm not sure if I follow you. there's not a lot that you can do to make things error-proof. i suppose you could sort using a formula onto a second sheet; but then you'd have to remember to change data ONLY on the first sheet...

  5. #5
    Registered User
    Join Date
    06-28-2015
    Location
    California
    MS-Off Ver
    MS Office 2008 for Mac
    Posts
    4

    Re: Sorting cells in one column with dependent information in other columns

    Hmm, I guess the easiest way to explain it is that I'll forget once in awhile to highlight everything and instead only highlight column A. Obviously only column A will be rearranged while the values of the other columns will remain where they're at. I won't find this mistake until later on. I was wondering if there was a fool proof way by linking the data together so that if a value from column A moves, related data will also move without me having to highlight everything.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Sorting cells in one column with dependent information in other columns

    I think you may be hoping for too much... on the Mac - when you select just one column & apply A-Z sort, - do you not get a dialogue box coming up to ask you if you want to sort the adjacent data, too?

  7. #7
    Registered User
    Join Date
    06-28-2015
    Location
    California
    MS-Off Ver
    MS Office 2008 for Mac
    Posts
    4

    Re: Sorting cells in one column with dependent information in other columns

    Unfortunately no. I guess I'll just have to be more careful and audit myself every so often, unless anyone else has a solution or suggestion.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sorting cells in one column with dependent information in other columns

    This can be done with 2 helper columns:
    Helper column 1 enter in E1 and fill down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Helper column 2 enter the numbers 1 to 4 (number to the number of entries you have in column A)

    My helper column 2 is column H. Enter this in I1 and fill down and across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  9. #9
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Sorting cells in one column with dependent information in other columns

    Or use a macro to sort.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 10-24-2012, 08:59 AM
  2. Sorting 2 Columns by Same information different layout
    By 00Able in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-14-2011, 07:10 AM
  3. Auto Populate Cells Dependent on Information in Previous Cell
    By senescu in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-21-2010, 11:50 AM
  4. sorting table by dependent column
    By chewwy in forum Excel General
    Replies: 3
    Last Post: 06-24-2010, 08:09 AM
  5. [SOLVED] sorting two columns' information
    By Mark Hitchcock in forum Excel General
    Replies: 0
    Last Post: 07-11-2005, 04:05 PM

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