How do I remove #N/A value from VLOOKUP

PattiK323

New Member
Joined
Jun 12, 2014
Messages
35
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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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:
Upvote 0
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.
 
Upvote 0
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:
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,388
Members
448,957
Latest member
Hat4Life

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