+ Reply to Thread
Results 1 to 4 of 4

Subtotal range of values that include errors

  1. #1
    Forum Contributor
    Join Date
    11-14-2007
    Posts
    142

    Subtotal range of values that include errors

    Please would someone tell me the syntax of a formula to return the total of values of numerical entries in a range of cells, some of which cells individually return the error state #N/A? Ideally I would like to use SUBTOTAL(9,...) rather than SUM() but I can live with SUM() if necessary.

    I am using Excel 2003

    I have tried
    =SUM(range)
    =SUMIF(range,NOT(#N/A))
    =SUMPRODUCT(range,NOT(ISNA(range))
    =SUMPRODUCT(range*NOT(ISNA(range))

    These all return #N/A as the total. This is not desired. I want the #N/A values to be ignored in the summing process.

    Thanks
    Last edited by 1eyedjack; 06-29-2011 at 10:39 AM.

  2. #2
    Forum Contributor
    Join Date
    11-14-2007
    Posts
    142

    Re: Subtotal range of values that include errors

    Half solved it.
    =SUMIF(range,"<>#N/A")
    This works except that it does not SUBTOTAL the result. What I seem to want is a SUBTOTALIF() formula

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

    Re: Subtotal range of values that include errors

    Try something like:

    =SUMPRODUCT(SUBTOTAL(9,OFFSET(range,ROW(range)-MIN(ROW(range)),,1)),--(ISNUMBER(range)))
    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.

  4. #4
    Forum Contributor
    Join Date
    11-14-2007
    Posts
    142

    Re: Subtotal range of values that include errors

    Ouch. Thanks for that. Don't pretend to understand it but give me time

+ 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