+ Reply to Thread
Results 1 to 5 of 5

Excel 2010 - Return either "NA", 0 or Calculate

  1. #1
    Registered User
    Join Date
    03-22-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Excel 2010 - Return either "NA", 0 or Calculate

    I want Excel to return the Sum on B4 as follows: -

    - If B1 = "NA", B2 ="NA" ,B3 = "NA", then return "NA"
    - If B1 = 120, B2 = 0, B3 = "NA", then return 120
    - If B1 = "NA", B2 = 0, B3 = "NA", then return 0

    Can somebody out there help?

  2. #2
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Excel 2010 - Return either "NA", 0 or Calculate

    The ones that are producing N/A, why don't you surround the formula with iferror() then you won't have the n/a and sum will work perfectly.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Excel 2010 - Return either "NA", 0 or Calculate

    Try this

    =IF(B3="NA",IF(B1="NA",IF(B2="NA","NA",IF(B2=0,0,"")),IF(B1=120,120,"")),"")

  4. #4
    Registered User
    Join Date
    03-22-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Excel 2010 - Return either "NA", 0 or Calculate

    I'm still stuck. All solutions provided thus far do not work. Thanks and let's keep on trying.

  5. #5
    Registered User
    Join Date
    03-22-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Excel 2010 - Return either "NA", 0 or Calculate

    I got my formula,

    =IF(COUNTIF(B1:B3,"NA")=3,"NA",SUM(B1:B3))

    May I take this very opportinity to thank Excel MVP, Bob Umlas for figuring out the formula for me. Bob, your assistance is highly appreciated.

    To all of you who tried to assist on this query, thanks to a positive infinity!

+ 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