Index match multiple criteria

projectile

Board Regular
Joined
Dec 14, 2007
Messages
193
I have a multiple criteria lookup to return email address in Sheet1!$H:$H

First i need to match company number , e.g. E6 = 00001 against column Sheet1!$B:$B

if that is true, then match Contact name,

e.g. T6 = John against column Sheet1!$G:$G

if that is also true, then return email address from Sheet1!$H:$H



=INDEX(Sheet1!$H:$H,MATCH(1,(Sheet1!$B:$B=E6)*(Sheet1!$G:$G=T6),0))

I tried the above , but it complains about #NUM!

Please help
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Are you using Excel 2003 or earlier? Try using a specific range for each column rather than the whole column, e.g.

=INDEX(Sheet1!$H$1:$H$1000,MATCH(1,(Sheet1!$B$1:$B$1000=E6)*(Sheet1!$G$1:$G$1000=T6),0))

confirm with CTRL+SHIFT+ENTER
 
Upvote 0
Hi, I tried this , but it is returning the wrong email address.

example

Company = 000167 , name = Emma

it is returning email address for someone with different email and company

Try
=INDEX(Sheet1!$H:$H,(Sheet1!$B:$B=E6)*(Sheet1!$G:$G=T6)*ROW())
 
Upvote 0
Tried this

=INDEX(Sheet1!$H$1:$H$17822,MATCH(1,(Sheet1!$B$1:$B$17822=E6)*(Sheet1!$G$1:$G$17822=T6),0))

and worked.

Thanks

Are you using Excel 2003 or earlier? Try using a specific range for each column rather than the whole column, e.g.

=INDEX(Sheet1!$H$1:$H$1000,MATCH(1,(Sheet1!$B$1:$B$1000=E6)*(Sheet1!$G$1:$G$1000=T6),0))

confirm with CTRL+SHIFT+ENTER
 
Upvote 0
Hi, I tried this , but it is returning the wrong email address.

example

Company = 000167 , name = Emma

it is returning email address for someone with different email and company

Hi

Worked fine for me.
Could you let me see a sample of your data?
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top