VLOOKUP results showing as blank or 0

Excel_VBA

New Member
Joined
Dec 19, 2009
Messages
42
I have VLOOKUPs on a column. Some cells are blank. Some of those blank cells return a blank, but some return a 0. Why is this?

The cell format is General in all cases. I checked for the presence of spaces but there are not any. All blank cells are truly blank, but some return a blank, and some return a 0.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
I have VLOOKUPs on a column. Some cells are blank. Some of those blank cells return a blank, but some return a 0. Why is this?

The cell format is General in all cases. I checked for the presence of spaces but there are not any. All blank cells are truly blank, but some return a blank, and some return a 0.
A truly empty cell will return 0.

Space characters aren't the only "whitespace" characters. There may be some other unseen character in the cell.

Find one of those cells and try this formula against it:

=CODE(cell_ref)

If you get a numeric result then that means there's something in the cell.

Might some of the cells in question contain formulas that return blanks "" ?
 
Upvote 0
Might some of the cells in question contain formulas that return blanks "" ?

You are correct. My main formula is inside of an IFERROR function which will return a "" if the formula evaluates to an error. Thank you very much. I appreciate your insight.
 
Upvote 0
You are correct. My main formula is inside of an IFERROR function which will return a "" if the formula evaluates to an error. Thank you very much. I appreciate your insight.
You're welcome. Thanks for the feedback! :cool:
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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