Closed Thread
Results 1 to 6 of 6

Using Vlookup wheb value missing

  1. #1
    nir020
    Guest

    Using Vlookup wheb value missing

    How can you when using vlookup return a value of 0 rather than #N/A when the
    lookup value is not present in the table array?

    Thanks

    Nick

  2. #2
    Trevor Shuttleworth
    Guest

    Re: Using Vlookup wheb value missing

    Nick

    =IF(ISNA(VLOOKUP(...)),0,VLOOKUP(...))

    Regards

    Trevor


    "nir020" <[email protected]> wrote in message
    news:[email protected]...
    > How can you when using vlookup return a value of 0 rather than #N/A when
    > the
    > lookup value is not present in the table array?
    >
    > Thanks
    >
    > Nick




  3. #3
    Ardus Petus
    Guest

    Re: Using Vlookup wheb value missing

    =IFNA(Vlookup(),0,Vlookup())

    I fear this is the only way

    HTH
    --
    AP

    "nir020" <[email protected]> a écrit dans le message de
    news:[email protected]...
    > How can you when using vlookup return a value of 0 rather than #N/A when

    the
    > lookup value is not present in the table array?
    >
    > Thanks
    >
    > Nick




  4. #4
    Jim Thomlinson
    Guest

    RE: Using Vlookup wheb value missing

    My prefered way is to use an if function with countif to determine if the
    vallue being looked up exists, something like this...

    =IF(COUNTIF($D$1:$D$10, A1)=0,0, VLOOKUP(A1, $D$1:$E$10, 2, FALSE))
    --
    HTH...

    Jim Thomlinson


    "nir020" wrote:

    > How can you when using vlookup return a value of 0 rather than #N/A when the
    > lookup value is not present in the table array?
    >
    > Thanks
    >
    > Nick


  5. #5
    Tom Ogilvy
    Guest

    RE: Using Vlookup wheb value missing

    =if(iserror(match(lookupvalue,firstcolumnofrange,0)),0,vlookup(lookupvalue,range,2,false))

    --
    Regards,
    Tom Ogilvy


    "nir020" wrote:

    > How can you when using vlookup return a value of 0 rather than #N/A when the
    > lookup value is not present in the table array?
    >
    > Thanks
    >
    > Nick


  6. #6
    Toppers
    Guest

    RE: Using Vlookup wheb value missing

    Use:

    C1 <lookup value>
    A1:B20 <lookup table>

    =IF(ISERROR(VLOOKUP(C1,A1:B20,2,FALSE)),0,VLOOKUP(C1,A1:B20,2,FALSE))


    HTH

    "nir020" wrote:

    > How can you when using vlookup return a value of 0 rather than #N/A when the
    > lookup value is not present in the table array?
    >
    > Thanks
    >
    > Nick


Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1