Thanks:  0
Likes:  0

# Thread: VLOOKUP - DISPLAYS #N/A

1. =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)

2. 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

3. 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.

4. 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

## User Tag List

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•