+ Reply to Thread
Results 1 to 3 of 3

if isna and vlookup together

  1. #1
    tina
    Guest

    if isna and vlookup together

    Hi
    I have a vlookup formula where some answers are #n/a to tidy up i have used
    if isna the formula is quite long is there a better way than formula below
    i.e do I have to write vlookup again?
    =if(isna(vlookup(a1,sheet2!a:b,2,false),0,vlookup(a1,sheet2!a:b,2,false))
    Thanks
    Tina

  2. #2
    Bob Phillips
    Guest

    Re: if isna and vlookup together

    Tina,

    Another way is something similar, that is test the lookup values for error

    =IF(ISNUMBER(MATCH(A1,Sheet2!,A;A,)),...

    not really much different.

    --
    HTH

    Bob Phillips

    "tina" <[email protected]> wrote in message
    news:[email protected]...
    > Hi
    > I have a vlookup formula where some answers are #n/a to tidy up i have

    used
    > if isna the formula is quite long is there a better way than formula below
    > i.e do I have to write vlookup again?
    > =if(isna(vlookup(a1,sheet2!a:b,2,false),0,vlookup(a1,sheet2!a:b,2,false))
    > Thanks
    > Tina




  3. #3
    Jason Morin
    Guest

    Re: if isna and vlookup together

    =if(countif(sheet2!a:a,a1),vlookup(a1,sheet2!,a:b,2,0),0)

    HTH
    Jason
    Atlanta, GA

    >-----Original Message-----
    >Hi
    >I have a vlookup formula where some answers are #n/a to

    tidy up i have used
    >if isna the formula is quite long is there a better way

    than formula below
    >i.e do I have to write vlookup again?
    >=if(isna(vlookup(a1,sheet2!a:b,2,false),0,vlookup

    (a1,sheet2!a:b,2,false))
    >Thanks
    >Tina
    >.
    >


+ Reply to 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