1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Two workbooks, two columns in second book could include matching data, neatest most efficient way to query between them on multiple fields using excel formula only, no VBA / Power Query etc?

Our take

To efficiently query data between two workbooks in Excel, you can streamline your approach by utilizing a combination of `XLOOKUP` and `IFERROR` functions. Start by creating a single formula for each of the five lookup columns in Workbook 1. Use `XLOOKUP` to search for the "EntID" in both Column A and Column B of Workbook 2. If a match is found, pull the corresponding data; if not, return "Not Found." This method minimizes complexity and enhances performance, making your solution more refined and user-friendly.

Not even sure how to surmise this but here we go:

Workbook 1, column i has a reference code, "EntID" which could be a number OR text.
Workbook 2, that reference code might be found in Column A, or Column B, or neither.

In Workbook 1, I need 5 lookup columns to pull data from 5 corresponding columns in Workbook 2 where there is a match for " EntID" in EITHER column A or B. If there is no match then the cell should state "Not Found".

I have it working by using nested if statements, isnumber & xmatch for the first lookup column to ascertain where the match is found and then xlookups on remaining columns depending on the result returned to that cell but the formula are huge if for no other reason than the file naming and locations (which cannot be changed) and it feels slow, clunky and unrefined.

How would you do it?

submitted by /u/Delinquent90
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles

Tagged with

#Excel alternatives for data analysis#generative AI for data analysis#natural language processing for spreadsheets#no-code spreadsheet solutions#AI formula generation techniques#big data management in spreadsheets#conversational data analysis#Excel compatibility#rows.com#real-time data collaboration#intelligent data visualization#data visualization tools#formula generator#enterprise data management#big data performance#Excel alternatives#data analysis tools#data cleaning solutions#Workbook 1#Workbook 2
Two workbooks, two columns in second book could include matching data, neatest most efficient way to query between them on multiple fields using excel formula only, no VBA / Power Query etc? | Beyond Market Intelligence