VLOOKUP error result - remove

mitommy

New Member
Joined
Aug 5, 2004
Messages
25
I am using a VLOOKUP to check information from different workbooks. The formula I've written is

=VLOOKUP(A7,'[TWOS RPT 2-07-05.xls]CHRONIC OFFENDERS'!$G$2:$H$70,2,FALSE)

Sometimes the results comes out as #N/A (this is the correct results).

Instead of that error I'd like to get a blank in the cell. What is the best way to accomplish that? Should I nest the VLOOKUP within an IF statement? If so, How?
 

Some videos you may like

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,458
mitommy said:
I am using a VLOOKUP to check information from different workbooks. The formula I've written is

=VLOOKUP(A7,'[TWOS RPT 2-07-05.xls]CHRONIC OFFENDERS'!$G$2:$H$70,2,FALSE)

Sometimes the results comes out as #N/A (this is the correct results).

Instead of that error I'd like to get a blank in the cell. What is the best way to accomplish that? Should I nest the VLOOKUP within an IF statement? If so, How?

In an empty cell, enter your VLOOKUP formula. In the cell where the formula originally resided, enter,

=IF(ISNA(A1),"",A1)

Where A1 houses the VLOOKUP formula.
 

Marbles

Well-known Member
Joined
Feb 7, 2005
Messages
622
You could hide the actual lookup column and have one next to it with this maybe:=IF(ISERROR(B1),"",B1).

Worth a try.
 

Ron Morris

Active Member
Joined
Oct 18, 2004
Messages
430
Hi,

Another way that has gotten me out of a jam is:

=IF(ISNA(VLOOKUP(A7,'[TWOS RPT 2-07-05.xls]CHRONIC OFFENDERS'!$G$2:$H$70,2,FALSE)),"",VLOOKUP(A7,'[TWOS RPT 2-07-05.xls]CHRONIC OFFENDERS'!$G$2:$H$70,2,FALSE))

This way you don't have to reference another cell.

Ron
 

Watch MrExcel Video

Forum statistics

Threads
1,122,962
Messages
5,599,065
Members
414,281
Latest member
Engjamal2021

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