ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   if, and, Vlookup functions - mutiple matchng (https://www.excelbanter.com/excel-worksheet-functions/240223-if-vlookup-functions-mutiple-matchng.html)

John R

if, and, Vlookup functions - mutiple matchng
 
Hi I have 2 workbooks each with mutiple columns.

WRKBk1:
First Name (B) Surname(C) Email Address (E)

Wrkbk2 (reference source):
First Name (A) Surname (B) Email address (C)

I enter first and surname in to wrkbk1. I am looking for a function that
will match match the two colulmns in WRKBk1 with the data in WRKBK2 and then
extract the email address from 2 and put it into column (e) in workbook1

Jacob Skaria

if, and, Vlookup functions - mutiple matchng
 
The below array formula will look into the open workbook Book1.xls Sheet1 Col
A and Col B and retrive Col C value. In the workbook where you use this
formula cell B2 will have the first name and cell C2 will have the
surname..Please note that this is an array formula. Within the cell in edit
mode (F2) paste this formula and press Ctrl+Shift+Enter to apply this
formula. If successful in 'Formula Bar' you can notice the curly braces at
both ends like "{=<formula}"

=INDEX([Book1.xls]Sheet1!C1:C1000,MATCH(1,([Book1.xls]Sheet1!A1:A1000=B2)*([Book1.xls]Sheet1!B1:B1000=C2),0))

If this post helps click Yes
---------------
Jacob Skaria


"John R" wrote:

Hi I have 2 workbooks each with mutiple columns.

WRKBk1:
First Name (B) Surname(C) Email Address (E)

Wrkbk2 (reference source):
First Name (A) Surname (B) Email address (C)

I enter first and surname in to wrkbk1. I am looking for a function that
will match match the two colulmns in WRKBk1 with the data in WRKBK2 and then
extract the email address from 2 and put it into column (e) in workbook1


John R

if, and, Vlookup functions - mutiple matchng
 
Once I entered the sheet/book names I ended up with this. It then returned
an N/A error

=INDEX('[Adviser List - email for
CPD.xls]Contacts'!C2:C1000,MATCH(1,('[Adviser List - email for
CPD.xls]Contacts'!A2:A1000=B14)*('[Adviser List - email for
CPD.xls]Contacts'!B2:B1000=C14),0))


The sheet which the names are typed into is: "workshop checklist."

This should then refer back to "Adviser List - email for CPD.xls]Contacts"
where the original names and emails are held.



"Jacob Skaria" wrote:

The below array formula will look into the open workbook Book1.xls Sheet1 Col
A and Col B and retrive Col C value. In the workbook where you use this
formula cell B2 will have the first name and cell C2 will have the
surname..Please note that this is an array formula. Within the cell in edit
mode (F2) paste this formula and press Ctrl+Shift+Enter to apply this
formula. If successful in 'Formula Bar' you can notice the curly braces at
both ends like "{=<formula}"

=INDEX([Book1.xls]Sheet1!C1:C1000,MATCH(1,([Book1.xls]Sheet1!A1:A1000=B2)*([Book1.xls]Sheet1!B1:B1000=C2),0))

If this post helps click Yes
---------------
Jacob Skaria


"John R" wrote:

Hi I have 2 workbooks each with mutiple columns.

WRKBk1:
First Name (B) Surname(C) Email Address (E)

Wrkbk2 (reference source):
First Name (A) Surname (B) Email address (C)

I enter first and surname in to wrkbk1. I am looking for a function that
will match match the two colulmns in WRKBk1 with the data in WRKBK2 and then
extract the email address from 2 and put it into column (e) in workbook1



All times are GMT +1. The time now is 11:20 PM.

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