Google Sheets VLOOKUP of multiple columns across multiple sheets

Chris Moretti

I am not 100% sure VLOOKUP is the correct formula to use for this, but what I was trying was the following:

=ArrayFormula(IF(len(B2:B),vlookup(B2:B,{‘New1′!B3:C;’New2′!B3:C;’New3’!B3:C},2,FALSE),””))

I wanted to modify the above formula to do the following. I have a Google Sheet with multiple tabs. There is a single tab that has all of the data stored as metadata to populate the other 6 tabs. I am splitting the metadata into the 6 tabs, but want to avoid duplicating the data in the tabs. So I wanted to create a column that would show me where the data is currently placed if it is placed already. Here is an example:

Master Sheet has this data:

Name1, Phone1, Address1, E-mail1 
Name2, Phone2, Address2, E-mail2
Name3, Phone3, Address3, E-mail3 
Name4, Phone4, Address4, E-mail4

There will be 4 tabs where I have the same columns (Name, Phone, Address, E-mail). I will be splitting the data in the master sheet to these 4 tabs. If I place "Name2, Phone2, Address2, E-mail2" in Tab 3: I want the formula to see the entire chunk of data in the VLOOKUP, not just the name, and if it does, to display "Tab 3" in the field. There is metadata that has the same name or address, so I want the VLOOKUP to look across multiple tabs (Tab 1, Tab 2, Tab 3, Tab 4) and compare against multiple columns to match (Name, Phone, Address, E-mail are all the same as the ones in the master sheet) and if it finds that match...it will display some sort of indication of the tab it is on ("Tab 3"). Hopefully, this makes sense.

player0
=ARRAYFORMULA(IFERROR(SUBSTITUTE(SPLIT(TRIM(
    TRANSPOSE(QUERY(TRANSPOSE(SUBSTITUTE(IF(LEN(A2:A), {
 IF(TRANSPOSE(QUERY(TRANSPOSE(A2:D),,999^99))=IFERROR(VLOOKUP(
    TRANSPOSE(QUERY(TRANSPOSE(A2:D),,999^99)),
    TRANSPOSE(QUERY(TRANSPOSE(Sheet1!A2:D),,999^99)),1,0)), "Sheet1", ),
 IF(TRANSPOSE(QUERY(TRANSPOSE(A2:D),,999^99))=IFERROR(VLOOKUP(
    TRANSPOSE(QUERY(TRANSPOSE(A2:D),,999^99)),
    TRANSPOSE(QUERY(TRANSPOSE(Sheet2!A2:D),,999^99)),1,0)), "Sheet2", ),
 IF(TRANSPOSE(QUERY(TRANSPOSE(A2:D),,999^99))=IFERROR(VLOOKUP(
    TRANSPOSE(QUERY(TRANSPOSE(A2:D),,999^99)),
    TRANSPOSE(QUERY(TRANSPOSE(Sheet3!A2:D),,999^99)),1,0)), "Sheet3", ),
 IF(TRANSPOSE(QUERY(TRANSPOSE(A2:D),,999^99))=IFERROR(VLOOKUP(
    TRANSPOSE(QUERY(TRANSPOSE(A2:D),,999^99)),
    TRANSPOSE(QUERY(TRANSPOSE(Sheet4!A2:D),,999^99)),1,0)), "Sheet4", )}, ),
 " ", "♦")),,999^99))), " "), "♦", " ")))

0

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Use Vlookup across multiple sheets in Google sheets

Google Sheets VLOOKUP across Mismatched Ranges in Multiple Sheets

VBA Vlookup across multiple sheets

Multiple columns criteria to use with Vlookup in Google sheets

Vlookup with multiple matches in Google Sheets

VLOOKUP in multiple ranges Google Sheets

Google Sheets vlookup for multiple results

Vlookup with multiple conditions in google sheets

Google Sheets Hide Rows Across Multiple Sheets

Sum if Across Multiple Sheets in Google Sheets

vlookup between two google sheets copying multiple columns fast no for loop

Google Sheets: Data Validation - Unique row values across multiple columns

Is there a way to match cells across multiple columns/rows in google sheets?

Filtering multiple columns in Google Sheets

Google Sheets Search Multiple Columns

Multiple columns in QUERY with "and" in Google Sheets

VLOOKUP and IF in multiple excel sheets

Google Sheets VLOOKUP returning multiple values

Google Sheets vlookup based on multiple criteria with wildcards

Multiple criteria-based vlookup on google Sheets?

IndexMatch across multiple sheets

Google sheets - Countifs across multiple different sheets but the same cells

How to delete same rows or ranges across multiple sheets in Google Sheets?

Count number of occurrences of a word across multiple sheets in google sheets

How to hide tabs and protect them across multiple sheets (Google Sheets)

Vlookup across multiple columns

How can I uso VLOOKUP + QUERY + IMPORTRANGE using multiple conditions in non-sequential columns in Google Sheets?

Using VLOOKUP and multiple sheets in Excel

Sum of vlookup values on multiple sheets