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.
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
Try something like:
=SUMPRODUCT(SUBTOTAL(9,OFFSET(range,ROW(range)-MIN(ROW(range)),,1)),--(ISNUMBER(range)))
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Ouch. Thanks for that. Don't pretend to understand it but give me time![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks