Help with a particular SUM formula

G

Guest

Gentlemen:

Here is the problem: =SUM(C37:AG37,IF(C1="X",(AH37=0)))

What I'd like to do is make the value in cell AH37 zero 0 if the cell C1 has
an "X" in it. If C1 does not have an "X", display the actual value result of
the SUM function.

Any assistance in this matter will be greatly appreciated.

Thanks,
 
G

Guest

Hello all,

I've recreated both formulas and I'm just trying to figure out how and why
Frank's formula works. What returns the zero if c1=X? I'm guessing it has to
do with the true/false component. This is one great forum!
Thanks.

John
 
F

Frank Kabel

Hi
normally it returns TRUE/FALSE. But as this expression is used in a
mathematical operation Excel coerces the boolean value to 1/0. So if
this equation returns False, Excel coerces this to '0' and therefore
the complete expression equals zero
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

#Value error 3
If function and counta 2
FORMULA HELP 1
How to SUM on a condition? 2
Conditional Sum of cells 1
Help with a formula 10
Sumif with multiple sum ranges in a sheet 4
Formula - If Statement with blank 3

Top