Sorting data across linked sheets

%3CLINGO-SUB%20id%3D%22%5C%26quot%3Blingo-sub-3163615%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3ESorting%20data%20across%20linked%20sheets%26lt%3B%5C%2Flingo-sub%26gt%3B%3CLINGO-BODY%20id%3D%22%5C%26quot%3Blingo-body-3163615%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CP%3EHello!%20I%20am%20looking%20for%20advice%2C%20I%20am%20hoping%20someone%20can%20help.%26nbsp%3B%20My%20spreadsheet%20is%20created%20to%20be%20used%20so%20all%20the%20data%20entered%20into%20the%20main%20sheet%20is%20then%20pulled%20onto%20a%20second%20sheet%20via%20index%20and%20vlookup%20formulas.%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-center%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348077i8CCECD629C76DDC6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22Main_Sheet.png%22%20alt%3D%22%5C%26quot%3BMain_Sheet.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%22%5C%26quot%3B2%5C%26quot%3B%22%3E%3DIFERROR(INDEX('Main%20Guest%20List'!%24B%245%3A%24B%24158%2CSMALL(IF('Main%20Guest%20List'!%24M%245%3A%24M%24158%26gt%3B%24N%245%2C%20ROW('Main%20Guest%20List'!%24B%245%3A%24B%24158))%2CROW('Main%20Guest%20List'!1%3A1))-4%2C1)%2C%22%22)%26lt%3B%5C%2FFONT%26gt%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%22%5C%26quot%3B2%5C%26quot%3B%22%3E%3DIFERROR(VLOOKUP(%24A4%2C('Main%20Guest%20List'!%24B%245%3A%24P%24158)%2C12%2C0)%2C%22%22)%26lt%3B%5C%2FFONT%26gt%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAll%20of%20the%20content%20on%20the%20second%20sheet%20auto%20populates%20using%20the%20above%20formulas%2C%20except%20for%20the%20single%20column%20that%20requires%20manual%20entry%2C%20Table%20Number%20-%26nbsp%3B%20so%20once%20all%20the%20data%20has%20been%20entered%20in%20the%20main%20sheet%2C%20and%20the%20attending%20guests%20and%20their%20details%20are%20pulled%20over%20to%20the%20second%20sheet%2C%20people%20can%20go%20into%20the%20second%20sheet%20and%20just%20fill%20in%20the%20table%20number%20column.%26nbsp%3B%26lt%3B%5C%2FSPAN%26gt%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-center%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348076i16281F74ED3ACF1C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22Sheet_Two.png%22%20alt%3D%22%5C%26quot%3BSheet_Two.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EThe%20challenge%20is%2C%20if%2Fwhen%20the%20data%20in%20the%20main%20sheet%20is%20sorted%2C%20all%20of%20the%20linked%20data%20in%20the%20second%20sheet%20also%20sorts%20accordingly%20(which%20is%20ideally%20how%20I%20want%20the%20sheets%20to%20function)%20-%20the%20issue%20I'm%20having%20is%20the%20data%20in%20the%20table%20number%20column%20that%20has%20been%20manually%20entered%2C%20does%20not%20sort%20in%20conjunction%20with%20each%20respective%20row.%20I%20understand%20why%20this%20row%20is%20not%20sorting%2C%20but%20I%20do%20not%20know%20how%20to%20rectify.%26nbsp%3B%20I%20am%20wondering%20if%20there%20is%20even%20a%20way%20to%20do%20this%20or%20perhaps%20it's%20not%20possible%3F%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EI%20thank%20you%20very%20much%20in%20advance%20for%20any%20help%20anyone%20may%20offer!%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EThank%20you!%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EAnne%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-body%26gt%3B%3CLINGO-LABS%20id%3D%22%5C%26quot%3Blingo-labs-3163615%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CLINGO-LABEL%3EExcel%26lt%3B%5C%2Flingo-label%26gt%3B%3CLINGO-LABEL%3EFormulas%20and%20Functions%26lt%3B%5C%2Flingo-label%26gt%3B%26lt%3B%5C%2Flingo-labs%26gt%3B%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E
New Contributor

Hello! I am looking for advice, I am hoping someone can help.  My spreadsheet is created to be used so all the data entered into the main sheet is then pulled onto a second sheet via index and vlookup formulas. 

 

Main_Sheet.png

 

=IFERROR(INDEX('Main Guest List'!$B$5:$B$158,SMALL(IF('Main Guest List'!$M$5:$M$158>$N$5, ROW('Main Guest List'!$B$5:$B$158)),ROW('Main Guest List'!1:1))-4,1),"")

=IFERROR(VLOOKUP($A4,('Main Guest List'!$B$5:$P$158),12,0),"")

 

All of the content on the second sheet auto populates using the above formulas, except for the single column that requires manual entry, Table Number -  so once all the data has been entered in the main sheet, and the attending guests and their details are pulled over to the second sheet, people can go into the second sheet and just fill in the table number column. 

 

Sheet_Two.png

 

The challenge is, if/when the data in the main sheet is sorted, all of the linked data in the second sheet also sorts accordingly (which is ideally how I want the sheets to function) - the issue I'm having is the data in the table number column that has been manually entered, does not sort in conjunction with each respective row. I understand why this row is not sorting, but I do not know how to rectify.  I am wondering if there is even a way to do this or perhaps it's not possible?

 

I thank you very much in advance for any help anyone may offer!

 

Thank you!

 

Anne

4 Replies

@annemchi 

Before we even try to resolve your issue, you must realize that the names in your images of the spreadsheet are names that are recognizable. One of the ground rules of this board is that we don't reveal database contents that should be kept private. I do realize that maybe you're using those names to disguise the real names of other anonymous people, but my recommendation would be that you use movie character's names rather than move star's names. Han Solo, for example, we all know isn't real; Harrison Ford is.....use the former, but not the latter.

 

So please remove those images and come back and ask the question with different data samples.

My apologies for the oversight, thank you for letting me know, I have updated with all fake names.

@annemchi 

 

Why is the table number entered in the second sheet in the first place? Is it not possible to enter it in the "Main Sheet"? One of the tricks to assure data integrity is to separate your Input from your Output; you are effectively mixing the two here. Or maybe do the sorting only with the second sheet. 

 

What I'm hearing from your description is:

  1. Collect some information in "Main Sheet"
  2. Extract some information from "Main Sheet" to "Second Sheet"
  3. Add some data in "Second Sheet"
  4. Sort data in "Main Sheet"
  5. Be surprised that "Second Sheet" hasn't kept up with Sort.

 

If we were sitting down face-to-face here (meeting in person), I'd want to review the whole process of data collection and processing, in other words, because it seems from your description that the sequence of activities itself is the source of the difficulty, so rather than fixing it at the tail end, let's see if we can prevent it in the first place. 

 

For example, would the following scenario make sense?

  1. Maintain all data in "Main Sheet"
  2. Create extraction(s) for various purposes such as:
    • Table assignments
    • Alphabetical list of attendees
    • Alphabetical list of attendees by category
    • Etc

Those "extractions" can take the form of various "dashboard" sheets or reports that are nothing but Outputs, created by means perhaps of the very same formulas (or similar ones) that you are already using. You also might find useful some new Dynamic Array functions described on this YouTube video (you will need the most current version of Excel).

https://www.youtube.com/watch?v=9I9DtFOVPIg

 

@mathetes
Thank you so much for your thoughtful insights. You are exactly right, if I stick to instructing people to only sort from sheet two there are no issues. The rationale behind inputting the table numbers on the second sheet is that the intended purpose of the second sheet is to only pull over data for guests who RSVP yes, so people can easily see a compiled list of only those guests, and then assign table numbers. I am sure you are right and there is a better way to accomplish this, but to answer your question, that was the motivation behind the current arrangement.