+ Reply to Thread
Results 1 to 6 of 6

SUM Cells with N/A

  1. #1
    Registered User
    Join Date
    02-10-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    24

    SUM Cells with N/A

    Hello, I am trying to sum these cells with some of them having N/A. The cells that I am trying to add are:

    D4,E6,F8,G10,H12,I14,J16,K18,L20,M22,N24,O26

    Thanks for the help!
    Last edited by NBVC; 02-11-2010 at 05:56 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: SUM Cells with N/A

    If some cells contain "N/A" as you say, then the SUM Function should work. If you're talking about some cells have the #N/A error then you have a problem. The easiest way to fix it is to fix your formulas so that the #N/A error doesn't show up (Use an IF statement to weed out the errors and replace them with blanks or zeros).
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    02-10-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: SUM Cells with N/A

    I have a formula in the cells that have N/A that I do not want to change to "0". When I sum them up my total will say N/A. I have at least 1 valid number in the range of cells.

  4. #4
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: SUM Cells with N/A

    It is important that you specify if it is N/A as text (String) or #N/A which is the result of an error (probably a lookup or other reference function)

    Like ChemistB States, the first can be solved, the second needs to be solved to change the reference function with an if. You could even include a "N/A" string if you would like that displayed.

    Then a sumif(range,"<>"&"N/A",range) would work.

    edit: Correction. The SUM would already be enough (just like ChemistB pointed out)
    Last edited by rwgrietveld; 02-11-2010 at 05:40 PM.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

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

    Re: SUM Cells with N/A

    Try:

    =SUM(SUMIF(INDIRECT({"D4","E6","F8","G10","H12","I14","J16","K18","L20","M22","N24","O26"}),"<>#N/A"))
    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.

  6. #6
    Registered User
    Join Date
    02-10-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: SUM Cells with N/A

    Thanks NBVC! That worked like a charm.

+ 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