+ Reply to Thread
Results 1 to 7 of 7

SUM / Value Error

  1. #1
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    SUM / Value Error

    Hello,

    I'm trying to add to column B & Column C, column C has value n/a, when adding two columns I get #value! error

    if error is n/a it should add the value.

    I tried, if iserror, if isna, but no luck.

    please see attached spreadsheet, column E is desired result.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: SUM / Value Error

    Try this

    =IF(ISNA(C5),B5,SUM(B5:C5))
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: SUM / Value Error

    In your example N/A is just a text. Not error from a formula.

    In your example, this will work. In E2 and copy down.

    =IF(C2="n/a",B2,SUM(B2:C2))

    Or else

    =IF(ISNA(C2),B2,SUM(B2:C2))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    Re: SUM / Value Error

    Thanks Foris1991. Appreciate your help. It worked.

    How can you tell this is a text field and not the standard N/A error?

    Sorry for later reply back..overlooked it..

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUM / Value Error

    If it was just a text string "N/A", then a basic SUM(B5:C5) will work (it ignores text)
    If it was an actual formula error, then the basic sum formula will error as well.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: SUM / Value Error

    If in C5 exist a n/a, then in an empty cell, try this.

    =ISTEXT(C5)

    Will gives you TRUE as result if it is a text and formula error.

  7. #7
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    Re: SUM / Value Error

    Thanks Jonmo1 - I always wondered about that. You're explanation really cleared it up. Thanks Fotis1991, good way to test it there.

+ 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