+ Reply to Thread
Results 1 to 51 of 51

vlookup avoiding #N/A

  1. #1
    Registered User
    Join Date
    07-05-2005
    Posts
    3

    vlookup avoiding #N/A

    Hi!

    If anybody know a way around this I'll be forever thankfull.

    I have a standard list which uses vlookup to another list which varies. If there is not a match I get #N/A and that messes up my subtotals in the first list. I have tried variations with if, match and find but I can not make it work.

    How can I get Excel to reply "" or 0 instead of #N/A?

    N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    N2=FD312 Insurance

    Thanks in advance
    Last edited by Lillian Eik; 07-05-2005 at 12:36 PM.

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    If we use ISERROR to trap error messages, we can prevent them from showing up, as such:

    =IF(ISERROR(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)

    The first part of the formula looks to see if the result is an error and if so, returns the empy string "". If no error is found, the result of the formula is returned.

    HTH

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    N Harkawat
    Guest

    Re: vlookup avoiding #N/A

    =if(iserror(match(b2;c:c;0)),"",VLOOKUP(B2;Internal!B:C;2;FALSE))

    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >




  4. #4
    Odie
    Guest

    RE: vlookup avoiding #N/A

    try this:
    IF(ISNA(VLOOKUP($B15,$J$14:$N$60,2,FALSE)),0,VLOOKUP($B15,$J$14:$N$60,2,FALSE))

    "Lillian Eik" wrote:

    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile: http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >
    >


  5. #5
    Peo Sjoblom
    Guest

    Re: vlookup avoiding #N/A

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);0)

    would be one way where 0 would be returned if there is no match, if you want
    what looks like an empty cell

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);"")


    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >



  6. #6
    Gord Dibben
    Guest

    Re: vlookup avoiding #N/A

    Just a head's up on ISERROR

    It will mask all errors, not just the #N/A and may hide something you don't
    want hidden.

    Preferable to use the ISNA function.

    =IF(ISNA(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)


    Gord Dibben Excel MVP

    On Tue, 5 Jul 2005 11:41:21 -0500, swatsp0p
    <[email protected]> wrote:

    >
    >If we use ISERROR to trap error messages, we can prevent them from
    >showing up, as such:
    >
    >=IF(ISERROR(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)
    >
    >The first part of the formula looks to see if the result is an error
    >and if so, returns the empy string "". If no error is found, the
    >result of the formula is returned.
    >
    >HTH
    >
    >Bruce



  7. #7
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Thanks for the tip, Gord. I'll keep that in mind as I evaluate the need for error trapping methods.

    Cheers!

    Bruce

  8. #8
    N Harkawat
    Guest

    Re: vlookup avoiding #N/A

    =if(iserror(match(b2;c:c;0)),"",VLOOKUP(B2;Internal!B:C;2;FALSE))

    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >




  9. #9
    Odie
    Guest

    RE: vlookup avoiding #N/A

    try this:
    IF(ISNA(VLOOKUP($B15,$J$14:$N$60,2,FALSE)),0,VLOOKUP($B15,$J$14:$N$60,2,FALSE))

    "Lillian Eik" wrote:

    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile: http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >
    >


  10. #10
    Peo Sjoblom
    Guest

    Re: vlookup avoiding #N/A

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);0)

    would be one way where 0 would be returned if there is no match, if you want
    what looks like an empty cell

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);"")


    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >



  11. #11
    Gord Dibben
    Guest

    Re: vlookup avoiding #N/A

    Just a head's up on ISERROR

    It will mask all errors, not just the #N/A and may hide something you don't
    want hidden.

    Preferable to use the ISNA function.

    =IF(ISNA(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)


    Gord Dibben Excel MVP

    On Tue, 5 Jul 2005 11:41:21 -0500, swatsp0p
    <[email protected]> wrote:

    >
    >If we use ISERROR to trap error messages, we can prevent them from
    >showing up, as such:
    >
    >=IF(ISERROR(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)
    >
    >The first part of the formula looks to see if the result is an error
    >and if so, returns the empy string "". If no error is found, the
    >result of the formula is returned.
    >
    >HTH
    >
    >Bruce



  12. #12
    Gord Dibben
    Guest

    Re: vlookup avoiding #N/A

    Just a head's up on ISERROR

    It will mask all errors, not just the #N/A and may hide something you don't
    want hidden.

    Preferable to use the ISNA function.

    =IF(ISNA(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)


    Gord Dibben Excel MVP

    On Tue, 5 Jul 2005 11:41:21 -0500, swatsp0p
    <[email protected]> wrote:

    >
    >If we use ISERROR to trap error messages, we can prevent them from
    >showing up, as such:
    >
    >=IF(ISERROR(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)
    >
    >The first part of the formula looks to see if the result is an error
    >and if so, returns the empy string "". If no error is found, the
    >result of the formula is returned.
    >
    >HTH
    >
    >Bruce



  13. #13
    Peo Sjoblom
    Guest

    Re: vlookup avoiding #N/A

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);0)

    would be one way where 0 would be returned if there is no match, if you want
    what looks like an empty cell

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);"")


    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >



  14. #14
    Odie
    Guest

    RE: vlookup avoiding #N/A

    try this:
    IF(ISNA(VLOOKUP($B15,$J$14:$N$60,2,FALSE)),0,VLOOKUP($B15,$J$14:$N$60,2,FALSE))

    "Lillian Eik" wrote:

    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile: http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >
    >


  15. #15
    N Harkawat
    Guest

    Re: vlookup avoiding #N/A

    =if(iserror(match(b2;c:c;0)),"",VLOOKUP(B2;Internal!B:C;2;FALSE))

    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >




  16. #16
    N Harkawat
    Guest

    Re: vlookup avoiding #N/A

    =if(iserror(match(b2;c:c;0)),"",VLOOKUP(B2;Internal!B:C;2;FALSE))

    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >




  17. #17
    Odie
    Guest

    RE: vlookup avoiding #N/A

    try this:
    IF(ISNA(VLOOKUP($B15,$J$14:$N$60,2,FALSE)),0,VLOOKUP($B15,$J$14:$N$60,2,FALSE))

    "Lillian Eik" wrote:

    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile: http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >
    >


  18. #18
    Gord Dibben
    Guest

    Re: vlookup avoiding #N/A

    Just a head's up on ISERROR

    It will mask all errors, not just the #N/A and may hide something you don't
    want hidden.

    Preferable to use the ISNA function.

    =IF(ISNA(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)


    Gord Dibben Excel MVP

    On Tue, 5 Jul 2005 11:41:21 -0500, swatsp0p
    <[email protected]> wrote:

    >
    >If we use ISERROR to trap error messages, we can prevent them from
    >showing up, as such:
    >
    >=IF(ISERROR(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)
    >
    >The first part of the formula looks to see if the result is an error
    >and if so, returns the empy string "". If no error is found, the
    >result of the formula is returned.
    >
    >HTH
    >
    >Bruce



  19. #19
    Peo Sjoblom
    Guest

    Re: vlookup avoiding #N/A

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);0)

    would be one way where 0 would be returned if there is no match, if you want
    what looks like an empty cell

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);"")


    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >



  20. #20
    Peo Sjoblom
    Guest

    Re: vlookup avoiding #N/A

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);0)

    would be one way where 0 would be returned if there is no match, if you want
    what looks like an empty cell

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);"")


    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >



  21. #21
    Gord Dibben
    Guest

    Re: vlookup avoiding #N/A

    Just a head's up on ISERROR

    It will mask all errors, not just the #N/A and may hide something you don't
    want hidden.

    Preferable to use the ISNA function.

    =IF(ISNA(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)


    Gord Dibben Excel MVP

    On Tue, 5 Jul 2005 11:41:21 -0500, swatsp0p
    <[email protected]> wrote:

    >
    >If we use ISERROR to trap error messages, we can prevent them from
    >showing up, as such:
    >
    >=IF(ISERROR(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)
    >
    >The first part of the formula looks to see if the result is an error
    >and if so, returns the empy string "". If no error is found, the
    >result of the formula is returned.
    >
    >HTH
    >
    >Bruce



  22. #22
    Odie
    Guest

    RE: vlookup avoiding #N/A

    try this:
    IF(ISNA(VLOOKUP($B15,$J$14:$N$60,2,FALSE)),0,VLOOKUP($B15,$J$14:$N$60,2,FALSE))

    "Lillian Eik" wrote:

    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile: http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >
    >


  23. #23
    N Harkawat
    Guest

    Re: vlookup avoiding #N/A

    =if(iserror(match(b2;c:c;0)),"",VLOOKUP(B2;Internal!B:C;2;FALSE))

    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >




  24. #24
    N Harkawat
    Guest

    Re: vlookup avoiding #N/A

    =if(iserror(match(b2;c:c;0)),"",VLOOKUP(B2;Internal!B:C;2;FALSE))

    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >




  25. #25
    Gord Dibben
    Guest

    Re: vlookup avoiding #N/A

    Just a head's up on ISERROR

    It will mask all errors, not just the #N/A and may hide something you don't
    want hidden.

    Preferable to use the ISNA function.

    =IF(ISNA(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)


    Gord Dibben Excel MVP

    On Tue, 5 Jul 2005 11:41:21 -0500, swatsp0p
    <[email protected]> wrote:

    >
    >If we use ISERROR to trap error messages, we can prevent them from
    >showing up, as such:
    >
    >=IF(ISERROR(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)
    >
    >The first part of the formula looks to see if the result is an error
    >and if so, returns the empy string "". If no error is found, the
    >result of the formula is returned.
    >
    >HTH
    >
    >Bruce



  26. #26
    Peo Sjoblom
    Guest

    Re: vlookup avoiding #N/A

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);0)

    would be one way where 0 would be returned if there is no match, if you want
    what looks like an empty cell

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);"")


    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >



  27. #27
    Odie
    Guest

    RE: vlookup avoiding #N/A

    try this:
    IF(ISNA(VLOOKUP($B15,$J$14:$N$60,2,FALSE)),0,VLOOKUP($B15,$J$14:$N$60,2,FALSE))

    "Lillian Eik" wrote:

    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile: http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >
    >


  28. #28
    Odie
    Guest

    RE: vlookup avoiding #N/A

    try this:
    IF(ISNA(VLOOKUP($B15,$J$14:$N$60,2,FALSE)),0,VLOOKUP($B15,$J$14:$N$60,2,FALSE))

    "Lillian Eik" wrote:

    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile: http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >
    >


  29. #29
    Peo Sjoblom
    Guest

    Re: vlookup avoiding #N/A

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);0)

    would be one way where 0 would be returned if there is no match, if you want
    what looks like an empty cell

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);"")


    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >



  30. #30
    N Harkawat
    Guest

    Re: vlookup avoiding #N/A

    =if(iserror(match(b2;c:c;0)),"",VLOOKUP(B2;Internal!B:C;2;FALSE))

    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >




  31. #31
    Gord Dibben
    Guest

    Re: vlookup avoiding #N/A

    Just a head's up on ISERROR

    It will mask all errors, not just the #N/A and may hide something you don't
    want hidden.

    Preferable to use the ISNA function.

    =IF(ISNA(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)


    Gord Dibben Excel MVP

    On Tue, 5 Jul 2005 11:41:21 -0500, swatsp0p
    <[email protected]> wrote:

    >
    >If we use ISERROR to trap error messages, we can prevent them from
    >showing up, as such:
    >
    >=IF(ISERROR(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)
    >
    >The first part of the formula looks to see if the result is an error
    >and if so, returns the empy string "". If no error is found, the
    >result of the formula is returned.
    >
    >HTH
    >
    >Bruce



  32. #32
    N Harkawat
    Guest

    Re: vlookup avoiding #N/A

    =if(iserror(match(b2;c:c;0)),"",VLOOKUP(B2;Internal!B:C;2;FALSE))

    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >




  33. #33
    Gord Dibben
    Guest

    Re: vlookup avoiding #N/A

    Just a head's up on ISERROR

    It will mask all errors, not just the #N/A and may hide something you don't
    want hidden.

    Preferable to use the ISNA function.

    =IF(ISNA(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)


    Gord Dibben Excel MVP

    On Tue, 5 Jul 2005 11:41:21 -0500, swatsp0p
    <[email protected]> wrote:

    >
    >If we use ISERROR to trap error messages, we can prevent them from
    >showing up, as such:
    >
    >=IF(ISERROR(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)
    >
    >The first part of the formula looks to see if the result is an error
    >and if so, returns the empy string "". If no error is found, the
    >result of the formula is returned.
    >
    >HTH
    >
    >Bruce



  34. #34
    Odie
    Guest

    RE: vlookup avoiding #N/A

    try this:
    IF(ISNA(VLOOKUP($B15,$J$14:$N$60,2,FALSE)),0,VLOOKUP($B15,$J$14:$N$60,2,FALSE))

    "Lillian Eik" wrote:

    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile: http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >
    >


  35. #35
    Peo Sjoblom
    Guest

    Re: vlookup avoiding #N/A

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);0)

    would be one way where 0 would be returned if there is no match, if you want
    what looks like an empty cell

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);"")


    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >



  36. #36
    Gord Dibben
    Guest

    Re: vlookup avoiding #N/A

    Just a head's up on ISERROR

    It will mask all errors, not just the #N/A and may hide something you don't
    want hidden.

    Preferable to use the ISNA function.

    =IF(ISNA(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)


    Gord Dibben Excel MVP

    On Tue, 5 Jul 2005 11:41:21 -0500, swatsp0p
    <[email protected]> wrote:

    >
    >If we use ISERROR to trap error messages, we can prevent them from
    >showing up, as such:
    >
    >=IF(ISERROR(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)
    >
    >The first part of the formula looks to see if the result is an error
    >and if so, returns the empy string "". If no error is found, the
    >result of the formula is returned.
    >
    >HTH
    >
    >Bruce



  37. #37
    Peo Sjoblom
    Guest

    Re: vlookup avoiding #N/A

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);0)

    would be one way where 0 would be returned if there is no match, if you want
    what looks like an empty cell

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);"")


    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >



  38. #38
    Odie
    Guest

    RE: vlookup avoiding #N/A

    try this:
    IF(ISNA(VLOOKUP($B15,$J$14:$N$60,2,FALSE)),0,VLOOKUP($B15,$J$14:$N$60,2,FALSE))

    "Lillian Eik" wrote:

    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile: http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >
    >


  39. #39
    N Harkawat
    Guest

    Re: vlookup avoiding #N/A

    =if(iserror(match(b2;c:c;0)),"",VLOOKUP(B2;Internal!B:C;2;FALSE))

    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >




  40. #40
    Gord Dibben
    Guest

    Re: vlookup avoiding #N/A

    Just a head's up on ISERROR

    It will mask all errors, not just the #N/A and may hide something you don't
    want hidden.

    Preferable to use the ISNA function.

    =IF(ISNA(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)


    Gord Dibben Excel MVP

    On Tue, 5 Jul 2005 11:41:21 -0500, swatsp0p
    <[email protected]> wrote:

    >
    >If we use ISERROR to trap error messages, we can prevent them from
    >showing up, as such:
    >
    >=IF(ISERROR(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)
    >
    >The first part of the formula looks to see if the result is an error
    >and if so, returns the empy string "". If no error is found, the
    >result of the formula is returned.
    >
    >HTH
    >
    >Bruce



  41. #41
    Peo Sjoblom
    Guest

    Re: vlookup avoiding #N/A

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);0)

    would be one way where 0 would be returned if there is no match, if you want
    what looks like an empty cell

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);"")


    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >



  42. #42
    Odie
    Guest

    RE: vlookup avoiding #N/A

    try this:
    IF(ISNA(VLOOKUP($B15,$J$14:$N$60,2,FALSE)),0,VLOOKUP($B15,$J$14:$N$60,2,FALSE))

    "Lillian Eik" wrote:

    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile: http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >
    >


  43. #43
    N Harkawat
    Guest

    Re: vlookup avoiding #N/A

    =if(iserror(match(b2;c:c;0)),"",VLOOKUP(B2;Internal!B:C;2;FALSE))

    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >




  44. #44
    N Harkawat
    Guest

    Re: vlookup avoiding #N/A

    =if(iserror(match(b2;c:c;0)),"",VLOOKUP(B2;Internal!B:C;2;FALSE))

    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >




  45. #45
    Odie
    Guest

    RE: vlookup avoiding #N/A

    try this:
    IF(ISNA(VLOOKUP($B15,$J$14:$N$60,2,FALSE)),0,VLOOKUP($B15,$J$14:$N$60,2,FALSE))

    "Lillian Eik" wrote:

    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile: http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >
    >


  46. #46
    Peo Sjoblom
    Guest

    Re: vlookup avoiding #N/A

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);0)

    would be one way where 0 would be returned if there is no match, if you want
    what looks like an empty cell

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);"")


    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >



  47. #47
    Gord Dibben
    Guest

    Re: vlookup avoiding #N/A

    Just a head's up on ISERROR

    It will mask all errors, not just the #N/A and may hide something you don't
    want hidden.

    Preferable to use the ISNA function.

    =IF(ISNA(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)


    Gord Dibben Excel MVP

    On Tue, 5 Jul 2005 11:41:21 -0500, swatsp0p
    <[email protected]> wrote:

    >
    >If we use ISERROR to trap error messages, we can prevent them from
    >showing up, as such:
    >
    >=IF(ISERROR(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)
    >
    >The first part of the formula looks to see if the result is an error
    >and if so, returns the empy string "". If no error is found, the
    >result of the formula is returned.
    >
    >HTH
    >
    >Bruce



  48. #48
    N Harkawat
    Guest

    Re: vlookup avoiding #N/A

    =if(iserror(match(b2;c:c;0)),"",VLOOKUP(B2;Internal!B:C;2;FALSE))

    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >




  49. #49
    Odie
    Guest

    RE: vlookup avoiding #N/A

    try this:
    IF(ISNA(VLOOKUP($B15,$J$14:$N$60,2,FALSE)),0,VLOOKUP($B15,$J$14:$N$60,2,FALSE))

    "Lillian Eik" wrote:

    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile: http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >
    >


  50. #50
    Peo Sjoblom
    Guest

    Re: vlookup avoiding #N/A

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);0)

    would be one way where 0 would be returned if there is no match, if you want
    what looks like an empty cell

    =IF(ISNUMBER(MATCH(B2;Internal!B:B;0));VLOOKUP(B2;Internal!B:C;2;FALSE);"")


    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Lillian Eik" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi!
    >
    > If anybody know a way around this I'll be forever thankfull.
    >
    > I have a standard list which uses vlookup to another list which varies.
    > If there is not a match I get #N/A and that messes up my subtotals in
    > the first list. I have tried variations with if, match and find but I
    > can not make it work.
    >
    > N2=VLOOKUP(B2;Internal!B:C;2;FALSE)
    > N2=FD312 Insurance
    >
    > Thanks in advance
    >
    >
    > --
    > Lillian Eik
    > ------------------------------------------------------------------------
    > Lillian Eik's Profile:
    > http://www.excelforum.com/member.php...o&userid=24919
    > View this thread: http://www.excelforum.com/showthread...hreadid=384575
    >



  51. #51
    Gord Dibben
    Guest

    Re: vlookup avoiding #N/A

    Just a head's up on ISERROR

    It will mask all errors, not just the #N/A and may hide something you don't
    want hidden.

    Preferable to use the ISNA function.

    =IF(ISNA(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)


    Gord Dibben Excel MVP

    On Tue, 5 Jul 2005 11:41:21 -0500, swatsp0p
    <[email protected]> wrote:

    >
    >If we use ISERROR to trap error messages, we can prevent them from
    >showing up, as such:
    >
    >=IF(ISERROR(VLOOKUP(B2;Internal!B:C;2;FALSE)),"",VLOOKUP(B2;Internal!B:C;2;FALSE)
    >
    >The first part of the formula looks to see if the result is an error
    >and if so, returns the empy string "". If no error is found, the
    >result of the formula is returned.
    >
    >HTH
    >
    >Bruce



+ 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