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!
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.
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
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.
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
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.
Thanks NBVC! That worked like a charm.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks