• Notice regarding image hosts and attachments. See here.

Excel – Batch searching an external list against a master spreadsheet

Soldato
Joined
25 Aug 2006
Posts
7,682
I have a standalone Excel spreadsheet containing a master list of records with multiple tabs. I receive additional data from external sources, usually in a text-based format.

I need to establish which of the records in the external data already exist on my master spreadsheet. At the moment, I'm having to use Ctrl+F and search for each entry individually, which is becoming very time-consuming given the volume of data involved.

Is there a way to batch-search multiple entries against an existing Excel spreadsheet with multiple tabs and ideally return a simple result showing which entries are already present and which aren't?

I'm a day user of Excel, and deffo not an Excel ninja!

Hopefully that makes sense.
 
Are all the tabs in the same format or do they all differ?
Then equally how many tabs are there?
Are you searching within a consistent column or anywhere on the tab?



Unsure if you have a licence, but something like claude/copilot is great for stuff like this.
 
What sort of output are you seeking? Might conditional formatting - simply highlighting the values found - work?

Something like =XMATCH(Cell,Sheet1:SheetN!ARRAY,0) if in the same worksheet.
 
What sort of output are you seeking? Might conditional formatting - simply highlighting the values found - work?

Something like =XMATCH(Cell,Sheet1:SheetN!ARRAY,0) if in the same worksheet.

For example: employee spreadsheet with Employee number and surname - but not all employees, they are only on the spreadsheet for one reason or another. The external data is with regards to random employees. I would like to correlate as to whether the external data employees, exist on the employee spreadsheet.

Again, hope this makes sense.
 
Right, so you want to match a pair of cells? Possibly the easiest way would be to create a new column or row containing the concatenation of the two cells, e.g. 'Smith 12345' in each sheet then test against that.
 
Right, so you want to match a pair of cells? Possibly the easiest way would be to create a new column or row containing the concatenation of the two cells, e.g. 'Smith 12345' in each sheet then test against that.

I was hoping a query or something would do this without having to edit any data.

I did some searching and using the 'get data', i can merge both files into each other - but then i get lost as to actually matching any data and outputs.
 
You might be able to use combo and XMATCH and VSTACK - sample code from Google AI

=INDEX(VSTACK(Sheet1!B2:D100, Sheet2!B2:D100), XMATCH("TargetValue", VSTACK(Sheet1!A2:A100, Sheet2!A2:A100)), 2)
Doh how do I get rid of the smiles? Should be ": D" without space
 
Last edited:
I was hoping a query or something would do this without having to edit any data.

I'm a great believer in KISS. You can always hide the extra column in the source sheets, and if you're going to keep doing it, why not make the change?

You might be able to use combo and XMATCH and VSTACK - sample code from Google AI

Not exactly easy to debug, though, and you need to use the PLAIN code.

=INDEX(VSTACK(Sheet1!B2:D100, Sheet2!B2:D100), XMATCH("TargetValue", VSTACK(Sheet1!A2:A100, Sheet2!A2:A100)), 2)
 
I'm a great believer in KISS. You can always hide the extra column in the source sheets, and if you're going to keep doing it, why not make the change?



Not exactly easy to debug, though, and you need to use the PLAIN code.

=INDEX(VSTACK(Sheet1!B2:D100, Sheet2!B2:D100), XMATCH("TargetValue", VSTACK(Sheet1!A2:A100, Sheet2!A2:A100)), 2)

I'm happy with KISS, cos i am an IT biff when it comes to Excel.

The main spreadsheet is held in one place and is only updated when new info comes in. The external data comes in daily for other purposes, but one of the uses of the external data is to check against the spreadsheet - a quick check of do any of the employee names exist on both sets of data. So not sure what changes i could make to the main spreesheet?
 
I'm happy with KISS, cos i am an IT biff when it comes to Excel.

My brother used to work with huge spreadsheets and often found that unwinding functions helped not only visibility and ebugability but also speed.

The main spreadsheet is held in one place and is only updated when new info comes in. The external data comes in daily for other purposes, but one of the uses of the external data is to check against the spreadsheet - a quick check of do any of the employee names exist on both sets of data. So not sure what changes i could make to the main spreesheet?


In the static spreadsheets, create new sets of cells containing the concatenated values against which you wish to search e.g. Smith 12345. Create a spreadsheet from the new data and create a set of cells containing the concatenated values, then use conditional formatting to highlight the matching ones. Or you could use the filter function with VSTACK to extract matching rows. The main thing is to be checking against a single cell, a single identifier.
 
I'm a great believer in KISS. You can always hide the extra column in the source sheets, and if you're going to keep doing it, why not make the change?



Not exactly easy to debug, though, and you need to use the PLAIN code.

=INDEX(VSTACK(Sheet1!B2:D100, Sheet2!B2:D100), XMATCH("TargetValue", VSTACK(Sheet1!A2:A100, Sheet2!A2:A100)), 2)
Cheers - was leaving work yesterday in a rush.

@ivrytwr3
VSTACK is very useful and works with XLOOKUP as well. Without data it is hard to understand the full requirements but have a look at tutorials.
 
Upload both sheets into an AI tool like copilot or Chatgpt and tell it to check the sheets for duplicates. Easy.

Tried it, worked, ty!

It works, but i think there must be a better way. I'll speak to the geeks, but i have a workaround for now - thanks again.
 
Back
Top Bottom