ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditional import of data from other workbook or worksheet (https://www.excelbanter.com/excel-discussion-misc-queries/50427-conditional-import-data-other-workbook-worksheet.html)

Bengt Bergholm

Conditional import of data from other workbook or worksheet
 
Hey,

What function would I want to use or how would a sample formula look
like if I want to merge properties from two workbooks?

ExcelFile1: full name and addresses
ExcelFile2: full name and phone number

Wanted result:
ExcelFile1 with a new column containing the right phone number for each
employee.

Also, how do I reference the other file, or another sheet in the same
workbook when building a formula?

TIA


BoB

Stefi

cell In excelfile1 C2, if names are in column A:
=VLOOKUP(A2,[excelfile2.xls]Sheet1!$A$2:$B$4,2,FALSE)
and fill down!

Regards,
Stefi

€˛Bengt Bergholm€¯ ezt Ć*rta:

Hey,

What function would I want to use or how would a sample formula look
like if I want to merge properties from two workbooks?

ExcelFile1: full name and addresses
ExcelFile2: full name and phone number

Wanted result:
ExcelFile1 with a new column containing the right phone number for each
employee.

Also, how do I reference the other file, or another sheet in the same
workbook when building a formula?

TIA


BoB



All times are GMT +1. The time now is 10:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com