Formula Structure for combined VLOOKUP and INDEX/MATCH that returns N/A in VLOOKUP

matratus34

Board Regular
Joined
Nov 21, 2013
Messages
76
Hi
I’m lookingfor a bit of help with my formula please.


I’m trying toVLOOKUP to a table of customers and if they are in my table with a “Y” criteriain column H then I want the word “Exempt” putting in my cell.
If they don’thave a “Y” in column H then I want to do an INDEX and MATCH to a different dataset to find the value for the cell.
My problem isthat not all my customers are in the original table – if they aren’t then theVLOOKUP returns #N/A and doesn’t move onto the INDEX and MATCH part of theformula.

I’ve been playinground with IFERROR and ISNA but still can’t get it to work.
Any help isgreatly appreciated as always.


My currentformula is:

=IF(VLOOKUP(‘BASESHEET’B7,'Customer'!B:H,7,0)="Y","Exempt",INDEX('ALL PROJECTS'!$F$7:$W$237,MATCH('BASESHEET'!$B7,'ALL PROJECTS'!$B$7:$B$237,0),MATCH('BASE SHEET'!F$6,'ALLPROJECTS'!$F$6:$W$6,0)))



 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I've managed to get this to work by starting the formula with =IF(ISNA(VLOOKUP('BASESHEET'B7
The formula then returns the INDEX and MATCH result first and the vlookup result after
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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