+ Reply to Thread
Results 1 to 4 of 4

Vlookup Without #N/A Error

  1. #1
    Registered User
    Join Date
    11-30-2009
    Location
    New York City
    MS-Off Ver
    Excel 2003
    Posts
    12

    Vlookup Without #N/A Error

    I'm trying to do a vlookup where I can sum the vlookup results from several tables where the name I'm looking for sometimes does not appear on a few of the tables. When the name does not appear in a table it results in an #N/A, then where I have included that in my sum formula my answer is also NA. Is there a way for the summed vlookups to result in a value even if some of the results are NA?

    Thank you!!!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup Without #N/A Error

    You can add error handler to the Vlookup formulas

    eg. =IF(ISNA(Vlookup(....)),"",Vlookup(....))

    which will return a blank instead of error...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-30-2009
    Location
    New York City
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Vlookup Without #N/A Error

    i'm not getting the results i need, of adding up the associated #s in the tables, i'm playing around but don't see what i'm doing wrong. could you take a look at cell b31 (attached)?

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup Without #N/A Error

    You didn't put in the 2nd Vlookup() to tell the formula that it needs to do the vlookup if the Isna() is false

    Also, use 0 instead of "" to avoid the #Value error if item not found

    Try:

    =IF(ISNA(VLOOKUP($A31,$A$5:$B$27,2,FALSE)),0,VLOOKUP($A31,$A$5:$B$27,2,FALSE))+IF(ISNA(VLOOKUP($A31,$C$5:$D$27,2,FALSE))*0,VLOOKUP($A31,$C$5:$D$27,2,FALSE))

+ 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