Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Vlookup Question

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

    Default

    Is there a way to have the Vlookup formula return a 0 value if there is not a match. Currently, if the formula doesn't find a match, it returns an output of #N/A. I need to convert it to a numeric value.

    Formula I'm using:
    =VLOOKUP(A2,'page1'!$A$1:$B$3795,2,FALSE)

    thanks

  2. #2
    Board Regular eliW's Avatar
    Join Date
    Mar 2002
    Posts
    1,919
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-08 10:38, inahaze72 wrote:
    Is there a way to have the Vlookup formula return a 0 value if there is not a match. Currently, if the formula doesn't find a match, it returns an output of #N/A. I need to convert it to a numeric value.

    Formula I'm using:
    =VLOOKUP(A2,'page1'!$A$1:$B$3795,2,FALSE)

    thanks
    Look at this:
    http://www.mrexcel.com/board/viewtop...c=4277&forum=2
    Eli

  3. #3
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-08 10:38, inahaze72 wrote:
    Is there a way to have the Vlookup formula return a 0 value if there is not a match. Currently, if the formula doesn't find a match, it returns an output of #N/A. I need to convert it to a numeric value.

    Formula I'm using:
    =VLOOKUP(A2,'page1'!$A$1:$B$3795,2,FALSE)

    thanks
    Not with a single VLOOKUP. Some will suggest testing the results of a VLOOKUP and then returning "" if it's #N/A; otherwise perform another VLOOKUP. This is very inefficient when all you really need to do is return the VLOOKUP results to a cell [hidden, if desire] (e.g., A2) and then test those results in another using =IF(ISNA(A2),"",A2).

    [ This Message was edited by: Mark W. on 2002-04-08 10:50 ]

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

    Default

    =IF(ISNA(VLOOKUP(A2,'page1'!$A$1:$B$3795,2,FALSE));0;VLOOKUP(A2,'page1'!$A$1:$B$3795,2,FALSE))


    [ This Message was edited by: Albert 1 on 2002-04-08 10:54 ]

Some videos you may like

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
  •