Oct 05 2023 08:04 AM
Hello, I would like to retrieve data from another workbook in an excel file where my data are as follow.:
1st workbook contains emails and cities and
the 2nd one contains emails and hackerspaces,
how can I add a new list in the 2nd workbook where i filled cities from the 1st workbook?
should i use "XLOOKUP" and refer to the emails.
How can I apply it with its arguments!
Thankyou in advance
Oct 10 2023 04:46 AM
To retrieve data from another workbook in Excel and add a new list in the 2nd workbook containing cities from the 1st workbook, you can use Excel's "VLOOKUP" function or "INDEX" and "MATCH" functions. Here is a step-by-step guide using the VLOOKUP method:
Assuming you have two workbooks:
You want to add a new list in Workbook 2 that includes cities based on matching email addresses from Workbook 1.
Follow these steps:
In Workbook 2:
=VLOOKUP(A2, '[Workbook1.xlsx]Sheet1'!$A$1:$B$100, 2, FALSE)
If Workbook 1 is closed, you should specify the full file path in the VLOOKUP formula. For example:
=VLOOKUP(A2, '[C:\Path\To\Workbook1.xlsx]Sheet1'!$A$1:$B$100, 2, FALSE)
The VLOOKUP function searches for a value (the email address in this case) in the first column of a specified range (in Workbook 1) and returns a value (the city) from a specified column (the 2nd column in this case).
Remember to adjust the cell references and ranges as needed to match the actual locations of your data in both workbooks. The text, steps and formulas was created with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark them as helpful and like it!
This will help all forum participants.