# VLOOKUP

#### tbird

##### Board Regular
How do I get VLOOKUP to return a blank (instead of a "0") if the target cell is empty?

### Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

#### Aaron

##### Board Regular
Am I understanding you correctly, the value you are looking up is there, but the column you want pulled in is blank?

1) You could use an IF formula =IF(VLOOKUP=0,"",VLOOKUP)

2) If the value you are looking up is not present use =IF(ISNA(VLOOKUP.....

I hope this helps.
This message was edited by Aaron on 2002-10-25 11:04

#### dave_219

##### New Member
All you have to do is add a CHAR(160).
Assuming you are in cell B1 type the following:

=IF(A1=0;CHAR(160);VLOOKUP(A1;table_arrey;col_index_num;0))

David

#### tbird

##### Board Regular
Thanks to both!
Aaron, your simple solution (#1) worked for my specific example - the "Dumbs" have invaded my brain lately! I should remember how to test for nulls using an IF statement. Thanks.

##### MrExcel MVP
VlookupExamples.xls
ABCDEF
1LookupValueResultHideThisColumnTablerefersto:F2:G6
2a33a3
3b #N/Ac
4c 0e5
5d #N/Af8
6e55g6
7
Example1

#### tbird

##### Board Regular
Thanks for the help, Aladin.

Replies
6
Views
52
Replies
5
Views
53
Replies
5
Views
115
Replies
11
Views
264
Replies
4
Views
47

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,152,115
Messages
5,768,196
Members
425,459
Latest member
Danniey

### 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?

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