eossma
asked on
Sum a Column, but ignore fields with errors
I'm trying to add up a large column that has some fields with errors. The errors are acceptable errors. I want the formula to ignore the error fields and add the rest in the column. How would I go about doing that?
The following array-entered formula will add up numeric values while ignoring errors:
=SUM(IF(ISNUMBER(C2:C99),C 2:C99,""))
To array-enter a formula:
1. Click in the formula bar
2. Hold the Control and Shift keys down
3. Press the Enter key, then release all three keys
Excel should respond by adding curly braces { } surrounding your formula.
=SUM(IF(ISNUMBER(C2:C99),C
To array-enter a formula:
1. Click in the formula bar
2. Hold the Control and Shift keys down
3. Press the Enter key, then release all three keys
Excel should respond by adding curly braces { } surrounding your formula.
[comment removed]
ASKER
So this is what I'm shooting for:
=SUMIFS(C6:G42;C6:G42;"<># DIV/0!")
but I get an error "The formula you typed contains an error", and it highlights G42 in the formula.
=SUMIFS(C6:G42;C6:G42;"<>#
but I get an error "The formula you typed contains an error", and it highlights G42 in the formula.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ahhh . . . this works:
=SUMIFS(C6:G42, C6:G42,"<>#DIV/0!")
=SUMIFS(C6:G42, C6:G42,"<>#DIV/0!")
you have only ONE condition, so you can use
=SUMIF(C6:G42;"<>DIV/0!")
Many thanks eossma!
Argenti,
In your French version of Excel, would the formula be the following?
=SOMME.SI(C6:G42;"<>#DIV/0 !")
I'm unclear whether the French version uses the same error value #DIV/0! as the American version. I found the hash sign # to be essential in making the formula work at my end. When you had posted using DIV/0! it made me think that the French version might be a little different.
Brad
In your French version of Excel, would the formula be the following?
=SOMME.SI(C6:G42;"<>#DIV/0
I'm unclear whether the French version uses the same error value #DIV/0! as the American version. I found the hash sign # to be essential in making the formula work at my end. When you had posted using DIV/0! it made me think that the French version might be a little different.
Brad
Brad (byundt),
You might be surprised, but I work on an English version of Excel.
Nevertheless, good job for acquiring the points! You've been 57 seconds faster than me to post the expected version of formula (suggested by me) instead of the array-formula that you initially proposed.
What can I say? I'm out of luck...
You might be surprised, but I work on an English version of Excel.
Nevertheless, good job for acquiring the points! You've been 57 seconds faster than me to post the expected version of formula (suggested by me) instead of the array-formula that you initially proposed.
What can I say? I'm out of luck...
Then your sum formula should be:
Open in new window
If several other error types exist, you add two more parameters to your formula: the value range and the error type, preceded by "<>", in double quotes