Vlookup to return zero if zero is found, blank if no value or lookup value isn't found

sissy60504

New Member
Joined
Jul 25, 2012
Messages
13
Hi all, I have reviewed several threads on vlookups, and can't seem to find a solution to my problem.

Lookup sheet contains data as follows:
0301010 10%
0301007 0%
0301015

Sheet 2 where I am performing the lookup contains data as follows:
0301005
0301010
0301007
0301015

I need to return as follows on Sheet 2:
0301005
0301010 10
0301007 0
0301015

I need to return blanks where a value is not found in the vlookup or where a blank value is found, but return a zero if a zero value is found. I have tried using the ISNA, ISERROR, and various others solutions from other vlookup threads and cannot figure out how to get this to work. Any help is appreciated.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Welcome to MrExcel.

If the lookup table is in Sheet1 try:

=IF(COUNTIF(Sheet1!A:A,A1),IF(ISNUMBER(INDEX(Sheet1!B:B,MATCH(A1,Sheet1!A:A,FALSE))),VLOOKUP(A1,Sheet1!A:B,2,FALSE)*100,""),"")
 
Upvote 0
Thank you so much, Mr Poulsom! Worked wonderfully. I appreciate the quick response as well as the solution. You guys rock!
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,981
Members
448,538
Latest member
alex78

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