# How do I remove #N/A value from VLOOKUP

#### PattiK323

##### New Member
VLOOKUP(A4,'4PM_JAN16 MTD'!\$A\$3:\$AC\$101,29,FALSE)

I'm getting some #N/A values when N/A is not in the \$A\$3:\$AC\$101 range. How do I modify the formula so it just shows a blank, instead of #N/A, if A4 does not appear in the range that I'm trying to return a value from?

### Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
If you are using a newer version of Excel that has the IFERROR function, just use:
Code:
``[COLOR=#333333]=IFERROR(VLOOKUP(A4,'4PM_JAN16 MTD'!\$A\$3:\$AC\$101,29,FALSE),"")[/COLOR]``

Otherwise, you can use:
Code:
``=IF(ISNA([COLOR=#333333]VLOOKUP(A4,'4PM_JAN16 MTD'!\$A\$3:\$AC\$101,29,FALSE)),"",[/COLOR][COLOR=#333333]VLOOKUP(A4,'4PM_JAN16 MTD'!\$A\$3:\$AC\$101,29,FALSE))[/COLOR]``

Last edited:
ISERROR worked! Thanks so much!

Another question:

I have this formula:

=F4-\$D4

Where F is sometimes blank, as per the IFERROR(VLOOKUP....) formula previously posted about. That produces a #VALUE! error for F4-\$D4. How do I make this blank instead of #VALUE? I tried applied the same IFERROR formula; but, it didn't work.

Code:
``[COLOR=#333333]=F4-\$D4[/COLOR]``

will not produce a #VALUE error if F4 is really blank or empty.
However, it will produce that error if there is some non-numeric entry, like blank spaces in F4.
So, what is really in F4?

BTW, if it is just spaces, the following does work for me:
Code:
``=IFERROR(F4-D4,"")``

Last edited:

Replies
12
Views
550
Replies
3
Views
189
Replies
5
Views
217
Replies
5
Views
462
Replies
6
Views
2K

1,218,593
Messages
6,143,374
Members
450,483
Latest member
santvik234

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

### Which adblocker are you using?

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

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