+ Reply to Thread
Results 1 to 5 of 5

How do I get Excel to recognize N/A as a zero?

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    40

    How do I get Excel to recognize N/A as a zero?

    Hello,

    I am using a nested index(..match(..)) function to retrieve data that is related to other data. Only non-zero quantities are listed in my spreadsheet, but I want my function to return a zero instead of N/A if it cannot find what I am looking for. If this is not possible, I would at least like for my other formulas to recognize that N/A means zero.

    For instance, let's say I have an inventory of cars. I have 2 red nissans, 3 green ones and no blue ones. Because there are no blue Nissans, when I look up how many blue Nissans I have, I will get N/A because my database does not have anything that matches "Blue" and "Nissan".

    When I sum all of my Nissans, I also get N/A because I have N/A in a sum.

    Any ideas?

    Thanks again for all of the help.

    Shannon

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: How do I get Excel to recognize N/A as a zero?

    well... if you don't mind doubling the number of lookups you do...

    =IF(iserror(lookup), 0, lookup)

    There is a more elegant IFERROR(lookup, 0) function, but that is not available in 2003.

    Well, I might wrap the IF around the match, depending on how the data is set up.

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: How do I get Excel to recognize N/A as a zero?

    if ever you need the #N/A values on those ranges and want to sum them.
    a work around would be sumif

    =SUMIF(A1:A10,"<>#N/A")
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  4. #4
    Registered User
    Join Date
    08-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: How do I get Excel to recognize N/A as a zero?

    That worked incredibly well.

    Thanks!!

    Shannon

  5. #5
    Registered User
    Join Date
    09-06-2012
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: How do I get Excel to recognize N/A as a zero?

    Use IFERROR function
    Office 2010 user.

+ 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