+ Reply to Thread
Results 1 to 6 of 6

Vlookup returning a the data or a zero

  1. #1
    Registered User
    Join Date
    03-06-2014
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    9

    Vlookup returning a the data or a zero

    I know that putting a "False" at the end of a VLookup will return a "#NA" when it can't find a match, but is there a way for it to return a zero("0") instead? I have been fooling with IF(VLookup( for a while to no avail.

    OR, is there a way to SUM a group of numbers where "#NA" may be one of those numbers.

    Either would solve my problem.

    Cheers!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Vlookup returning a the data or a zero

    =if(iserr(vlookup(Your criteria)),0,vlookup(yourcriteria))

    Try the above.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-06-2014
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Vlookup returning a the data or a zero

    I think this will do nicely. Thank you.

  4. #4
    Registered User
    Join Date
    03-06-2014
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Vlookup returning a the data or a zero

    Actually, now that I try some basic etc:
    =IF(ISERR(g22),0,1)
    It should return a 0, since g22 is "#NA", but it returns a 1 instead. Did I miss an understanding of this function?

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Vlookup returning a the data or a zero

    Okay, I would then try the ISNA function instead of IsERR

    http://www.techonthenet.com/excel/formulas/isna.php

  6. #6
    Registered User
    Join Date
    03-06-2014
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Vlookup returning a the data or a zero

    Bingo, thank you sir.

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Vlookup returning a the data or a zero

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. vlookup-returning the data in the row
    By Relentless in forum Excel General
    Replies: 1
    Last Post: 11-30-2005, 10:25 PM
  2. [SOLVED] Vlookup returning No data.
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 12:05 PM
  3. [SOLVED] Vlookup returning No data.
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 06:05 AM
  4. Vlookup returning No data.
    By Alex H in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. [SOLVED] Vlookup returning No data.
    By Alex H in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-03-2005, 05:05 PM

Tags for this Thread

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