VLOOKUP - DISPLAYS #N/A

HAWK

New Member
Joined
Mar 24, 2002
Messages
19
=LOOKUP(B16,$N$16:$S$34)
HOW DO I DISPLAY BLANK CELL WHEN THERE IS NO
REFERENCE IN B16. (THIS IS FOR A SHIPPING FORM)
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi,

You might want to try the following formula:

=IF(ISNA(LOOKUP(B16,$N$16:$S$34)),"",LOOKUP(B16,$N$16:$S$34))

The above will convert all #N/A to blank cells.

Alternatively, if you want to convert all error lookup value to blank cells, then can try the following:

=IF(ISERROR(LOOKUP(B16,$N$16:$S$34)),"",LOOKUP(B16,$N$16:$S$34))

HTH
 
Upvote 0
On 2002-03-25 19:45, HAWK wrote:
=LOOKUP(B16,$N$16:$S$34)
HOW DO I DISPLAY BLANK CELL WHEN THERE IS NO
REFERENCE IN B16. (THIS IS FOR A SHIPPING FORM)

Hi HAWK:
Even though BabyTiger has given you some great insights ...
The title of your post says VLOOKUP displays #N/A ... but in the body of your post you delineate use of the LOOKUP function.
What is it that you are trying to accomplish ... I don't think it is clear which function is the appropriate one in your situation. Use of LOOKUP function may or may not be appropriate in your case.
Please explain what you are trying to accomplish and sample data (table) you are working with.
VLOOKUP and HLOOKUP are more commonly used lookup functions, EXCEL states that LOOKUP function has been included for compatibility with LOTUS!
So, post what you are looking for and then let us take it from there.
 
Upvote 0
Thanks Yogi, good comment.

Hawk, just another suggestion. If you want to show just if B16 is empty and then show a blank cell, then the following formula would also work. But if the lookup can not find a value, then it would still show #N/A.

=if(trim(b16)="","",lookup(b16,$N$16:$S$34))

Like Yogi suggested, you might want to make sure whether you should be using a lookup or vlookup, or even a hlookup. But the error capture formula would work on any type of lookups.

HTH
 
Upvote 0

Forum statistics

Threads
1,213,514
Messages
6,114,078
Members
448,547
Latest member
arndtea

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