+ Reply to Thread
Results 1 to 6 of 6

Sorting list of names on one sheet updates information on other sheets

  1. #1
    Registered User
    Join Date
    09-06-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    30

    Sorting list of names on one sheet updates information on other sheets

    Hi all,

    I'm not sure if this can actually be done, but I was hoping there might be an Excel wizard out there who is able to point me in the right direction. A basic example of my source data is attached.

    I have a spreadsheet with a worksheet called 'Names' that contains a list of up to 500 surnames/firstnames in Col A and Col B.

    There are multiple other tabs covering different categories of information attached to these names that simply draw this information directly from the original cells (ie. =Names!A2, =Names!B2 etc.). This will go down to =Names!A500. At present, a lot of these cells are empty 'slots', waiting to be filled.

    The tab called Names exists to avoid colleagues having to enter the same name once on each sheet - it just seems redundant.

    However, if I add a new entry to the Names sheet, I would like to be able to sort this list alphabetically. If I do this normally, it will obviously update the order of names on all the other sheets. However, it will not update the information linked to those names, such as addresses or dates.

    In the attached example, if I sorted the Names sheet, I would want the 'Category 1' sheet to display the surnames in order or Baker, Ball, Jones, Smith - but the three date columns would also need to behave as if they were sorted.

    Is this even possible to do with VBA? I am guessing it would be a similar challenge if I wanted to remove a name - is there a way for it to update the rows on other sheets?

    Thanks in advance - even if it's just to tell me that this can't be done with Excel!
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,897

    Re: Sorting list of names on one sheet updates information on other sheets

    If you want it simple - why not introduce internal ID number. Then in other sheets instead of writing references to particular cells just write ID and use Vlookup.
    See attachment for Cat1
    if you want people here to be sorted by surnane select here all data A1:F5 and do sort (with sort dialog)
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    09-06-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Sorting list of names on one sheet updates information on other sheets

    Hi Kaper,

    Thanks for the reply.

    I'm not 100% clear on how this makes things any easier - are you saying that instead of sorting by Surname on the Names sheet, I would now sort by surname on the Cat1 sheet? Doesn't this still mean that, if I sort the 'Names' tab, the dates on Cat1 won't move and will therefore be assigned to the wrong person? I'm trying to help our end users by only needing them to sort one worksheet (Names) instead of the twenty (or more) separate sheets we have in our final spreadsheet.

    I don't know if this could even be done with a macro as I am effectively trying to get it to sort multiple separate sheets by Column B, but the contents of each sheet are referencing the Names tab to ensure we have a consistent list of names.

    Does that make sense? I do appreciate the help though!

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,897

    Re: Sorting list of names on one sheet updates information on other sheets

    Not exactly - you can now sort each sheet independently (all can be of course sorted the same way) and the real benefit of such a solution is that it keeps consistency of data in all sheets.
    (so here the following is false: "if I sort the 'Names' tab, the dates on Cat1 won't move and will therefore be assigned to the wrong person?" because in the proposed approach it will remain assigned to right person.)

  5. #5
    Registered User
    Join Date
    09-06-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Sorting list of names on one sheet updates information on other sheets

    Hi Kaper,

    Many thanks for your patience in explaining this to me. I think perhaps I have explained my problem poorly.

    The overall goal for this is to have a single sheet that only needs sorting once (Names), and this feeds through to 20+ other sheets, so all sheets have identical name lists without the need to sort them separately. Sorting the sheets separately is exactly what we are trying to avoid!

    Is that achievable at all?

  6. #6
    Registered User
    Join Date
    12-10-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    10

    Re: Sorting list of names on one sheet updates information on other sheets

    Kaper's suggestion is what you should look into... the idea is to have an 'ID' number associated with each line.
    To update information on any other sheet, it would reference the ID number. This would allow the first sheet to be sorted and manipulated and adjusted numerous times, and still be able to maintain the data in the additional sheets.

+ 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: 3
    Last Post: 10-01-2014, 01:49 PM
  2. Hyperlink Macro that converts a list of sheet names to hyperlinks to the sheets
    By holt3130 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2013, 08:49 AM
  3. List of names in one sheet corresponding to multiple sheets
    By jones.mattew in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-12-2013, 08:34 AM
  4. [SOLVED] how do i set up a list of names on a sheet frm various sheets in e
    By mcvities_69 in forum Excel General
    Replies: 1
    Last Post: 01-26-2006, 10:55 PM
  5. How to create first sheet as a list of names of remaining sheets?
    By datanull@gmail.com in forum Excel General
    Replies: 4
    Last Post: 05-28-2005, 02:05 PM

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