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?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
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.
 
Upvote 0
You could hide the actual lookup column and have one next to it with this maybe:=IF(ISERROR(B1),"",B1).

Worth a try.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,647
Messages
6,120,722
Members
448,987
Latest member
marion_davis

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