isna in vlookup

Jane Fischer

Board Regular
Joined
Feb 6, 2006
Messages
85
Is there a way to add the isna function to this vlookup? Any help on this would be great.

=IF(B2="WGSTC",VLOOKUP(A2,'\\swfs04v01\fwal1shr\Plant-0\Finance\Other\WGS\[WGS P5 and TC Grinding Cost.xlsx]Sheet1'!$A$3:$D$974,4,0),VLOOKUP(A2,'\\swfs04v01\fwal1shr\Plant-0\Finance\Other\WGS\[WGS P5 and TC Grinding Cost.xlsx]Sheet1'!$A$3:$E$974,5,0))
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
First, the only difference between the 2 vlookups is the column Index (4 or 5).
So that can be simplified a bit to

=VLOOKUP(A2,'\\swfs04v01\fwal1shr\Plant-0\Finance\Other\WGS\[WGS P5 and TC Grinding Cost.xlsx]Sheet1'!$A$3:$E$974,4+(B2 < > "WGSTC"),0)

Now, what version of Excel do you have?
If you have 2007 or higher, you can use

=IFERROR(VLOOKUP(...),"")

If you have 2003 or earlier, you need

=IF(ISNA(VLOOKUP(...)),"",VLOOKUP(...))
or
=IF(ISNA(MATCH(B2,'\\path\..etc..'!$A$3:$A$974,0)),"",VLOOKUP(...))


Hope that helps.
 
Upvote 0
Try
Rich (BB code):
=IFERROR(VLOOKUP(A2,'\\swfs04v01\fwal1shr\Plant-0\Finance\Other\WGS\[WGS P5 and TC Grinding Cost.xlsx]Sheet1'!$A$3:$E$974,4+(B2 < > "WGSTC"),0),"")
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,424
Members
452,914
Latest member
echoix

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