How do I make VLOOKUP result show blank if range is empty?

tkroper

Active Member
Joined
Feb 2, 2007
Messages
255
Hi everyone!

I need some help on this formula:
=IF(A8="","",VLOOKUP($A$8,$A$10:$I$702,2,FALSE))
It works fine, but most of the time there won't be any data in the 2nd column of the lookup range and I would like the result to be blank in such instances. How can I accomplish this?

Thank you very much!

Todd
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Code:
=IF(A8="","",IF(VLOOKUP($A$8,$A$10:$I$702,2,FALSE)=0,"",VLOOKUP($A$8,$A$10:$I$702,2,FALSE))
Problem is VLOOKUP returns 0 if the 2nd column is empty, so you can't have any values of '0' in column 2.
 
Upvote 0
tkroper,
Same thing using the OR function instead of nested IFs...
Code:
=IF(OR(A8="",VLOOKUP($A$8,$A$10:$I$702,2,0)=0),"",VLOOKUP($A$8,$A$10:$I$702,2,0))

Just another way. Hope it helps.
 
Upvote 0
Thank you HalfAce! Works great, only it returns "N/A" if A8 is blank. Is there a way to correct that?

Todd
 
Upvote 0
Code:
=IF(ISNA(VLOOKUP($A$8,$A$10:$I$720,2,FALSE)),"",VLOOKUP($A$8,$A$10:$I$720,2,FALSE))

I have the same problem, and I found this as a solution.
 
Upvote 0
Hi axemaster,

Welcome to MrExcel.

tkroper's requirement is little different than yours. His requirement was:
If the column for the LookUp_Value returns blank then instead of showing 0 show the cell as blank.

Edit:
And if you have Excel 2007+ version then you can also use:
=IFERROR(VLOOKUP($A$8,$A$10:$I$720,2,FALSE),"")
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,289
Members
449,077
Latest member
Rkmenon

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