modification on my lookup formula

alvbnp

Board Regular
Joined
Jun 26, 2006
Messages
180
I am currently using this
Code:
=IF(ISNA(v(INDEX(sheet2!A:C,MATCH(B2,sheet2!A:A,0),3)))," ",v())

The formula match B2 with columnA in sheet2 and pick up the third column value in sheet2.

Now need modify it to match B2 with columnA and C2 with columnB in sheet2 then pick up the third column value in sheet2.

Meaning lookup if two criterias is matched.

Thanks.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I am currently using this
Code:
=IF(ISNA(v(INDEX(sheet2!A:C,MATCH(B2,sheet2!A:A,0),3)))," ",v())

The formula match B2 with columnA in sheet2 and pick up the third column value in sheet2.

Now need modify it to match B2 with columnA and C2 with columnB in sheet2 then pick up the third column value in sheet2.

Meaning lookup if two criterias is matched.

Thanks.

=IF(ISNA(V(INDEX(Sheet2!$C$2:$C$400,MATCH(1,IF(Sheet2!$A$2:$A$400=B2,IF(Sheet2!$B$2:$B$400=C2,1)),0)))),"",V())

which needs to be confirmed with control+shift+enter, not with enter.

Note that you can't reference whole columns like A:A in this type of formulas.
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

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