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?
 

Some videos you may like

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
55,950
Office Version
  1. 365
Platform
  1. Windows
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:

PattiK323

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

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
55,950
Office Version
  1. 365
Platform
  1. Windows
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:

Watch MrExcel Video

Forum statistics

Threads
1,122,968
Messages
5,599,097
Members
414,285
Latest member
excela2z

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
Top