Vlookup ignore 0 and N/A

willstyle

New Member
Joined
Jul 18, 2011
Messages
4
Hi All

Losing my mind with this.

Trying to vlookup whilst ignore #N/A and 0 to return blank

i know that: -

IF(VLOOKUP(C5,Raw3!$B$2:$J$20000,6,FALSE)=0,"",VLOOKUP(C5,Raw3!$B$2:$J$20000,6,FALSE)) will ignore 0 and return blank

and

IF(ISNA(VLOOKUP(C5,Raw3!$B$2:$I$5000,6,FALSE)),"",VLOOKUP(C5,Raw3!$B$2:$I$5000,6,FALSE)) will ignore #N/A and return blank

but how to i combine them :eeek: so it will return a blank with 0 and #n/a

cheers in advance!!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try:

=IF(ISERROR(VLOOKUP(C5,Raw3!$B$2:$I$5000,6,FALSE)),"",IF(VLOOKUP(C5,Raw3!$B$2:$I$5000,6,FALSE)=0,"",(VLOOKUP(C5,Raw3!$B$2:$I$5000,6,FALSE))))
 
Upvote 0
You could also try:

=IF(OR(ISERROR(VLOOKUP(C5,Raw3!$B$2:$I$5000,6,FALSE)),VLOOKUP(C5,Raw3!$B$2:$I$5000,6,FALSE)=0),"",VLOOKUP(C5,Raw3!$B$2:$I$5000,6,FALSE))
 
Upvote 0
I tend to go with COUNTIF to avoid 3 VLOOKUP's.

=IF(COUNTIF(C5,Raw3!B2:B5000),VLOOKUP(C5,Raw3!$B$2:$I$5000,6,FALSE),0)
 
Upvote 0

Forum statistics

Threads
1,224,561
Messages
6,179,522
Members
452,923
Latest member
JackiG

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