if, and, Vlookup functions - mutiple matchng

J

John R

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
 
J

Jacob Skaria

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
 
J

John R

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 said:
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 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top