VLOOKUP - DISPLAYS #N/A
VLOOKUP - DISPLAYS #N/A
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: VLOOKUP - DISPLAYS #N/A

  1. #1
    New Member
    Join Date
    Mar 2002
    Location
    LIZ
    Posts
    19
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    =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. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    Wellington
    Posts
    115
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #3
    MrExcel MVP
    Join Date
    Mar 2002
    Location
    Michigan USA
    Posts
    11,454
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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.
    Regards!

    Yogi Anand, D.Eng, P.E.
    Energy Efficient Building Network LLC
    www.energyefficientbuild.com

  4. #4
    Board Regular
    Join Date
    Mar 2002
    Location
    Wellington
    Posts
    115
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    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

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com