VLOOKUP
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: VLOOKUP

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Posts
    101
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I am using the vlookup function and sometimes I get the !#N/A. What can I do to change the !#N/A result for zero.

    Thanks

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    81,872
    Post Thanks / Like
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)

    Default

    On 2002-03-15 13:05, huorsa wrote:
    I am using the vlookup function and sometimes I get the !#N/A. What can I do to change the !#N/A result for zero.

    Thanks
    If your match-type is FALSE, use:

    =IF(COUNTIF(D2:D5,A1),VLOOKUP(A1,D2:E5,2,0),0)

    where D2:D5 is the range that houses the lookup table, A1 a lookup value, D2:D5 within COUNTIF is the 1st column of the lookup table. By the way, 0 in VLOOKUP stands for FALSE, a shorter way of saying the same.

    If your match-type is TRUE, use:

    =IF(ISNUMBER(MATCH(A1,D2:D5)),VLOOKUP(A1,D2:E5,2),0)

    Aladin



  3. #3
    Board Regular
    Join Date
    Mar 2002
    Location
    NY
    Posts
    1,043
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    On 2002-03-15 13:05, huorsa wrote:
    I am using the vlookup function and sometimes I get the !#N/A. What can I do to change the !#N/A result for zero.

    Thanks
    =IF(ISNA(yourformula),0,yourformula)

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