![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Location: LIZ
Posts: 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) |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Wellington
Posts: 104
|
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 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
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.
__________________
Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com |
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: Wellington
Posts: 104
|
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|