Need help with a SUM formula...

G

Guest

I'm trying to sum up a column but one of the cells in the sum range has an IF
formula in it. I need the total sum to include the value of this cell. When I
do the simple sum formula it doesn't include it in the total. How do I get
this to work for me??

Thanks!
 
B

Bernard Liengme

Sounds like the IF has a problem because its value should be included in SUM
Show us the IF formula
best wishes
 
T

T. Valko

What does the IF formula look like?

I'll bet the result of your IF formula is TEXT. Does it look something like
this:

=IF(A1>100,"100","0")

Notice the quotes around the numeric values. That means they're TEXT values
not numeric values and a SUM function would ignore those values.

If you have quotes around numeric values in your IF formula remove them:

=IF(A1>100,100,0)
 
R

Ron Rosenfeld

I'm trying to sum up a column but one of the cells in the sum range has an IF
formula in it. I need the total sum to include the value of this cell. When I
do the simple sum formula it doesn't include it in the total. How do I get
this to work for me??

Thanks!

Post the IF formula. Probably it's returning text instead of a number.
--ron
 
G

Guest

Here's the formula I'm using:

=IF(E28>0,"25",IF(E28=0,-))

The formula is doing exactly what it should. I just want the 25 added into
the sum when applicable.

Thanks!
Christina
 
R

Ron Rosenfeld

Here's the formula I'm using:

=IF(E28>0,"25",IF(E28=0,-))

The formula is doing exactly what it should. I just want the 25 added into
the sum when applicable.

Thanks!
Christina

As was pointed out by many, when your IF formula is returning TEXT rather than
a number.

If you enclose a value within double quotes, that value is TEXT, and not a
NUMBER.

SUM function ignores TEXT, so will not add it.

If you want the result of your IF function to be treated as a number, you must
have it return a number. e.g.:

=IF(E28>0,25,IF ...)


--ron
 
G

Guest

That makes alot of sense. Thank you!

Ron Rosenfeld said:
As was pointed out by many, when your IF formula is returning TEXT rather than
a number.

If you enclose a value within double quotes, that value is TEXT, and not a
NUMBER.

SUM function ignores TEXT, so will not add it.

If you want the result of your IF function to be treated as a number, you must
have it return a number. e.g.:

=IF(E28>0,25,IF ...)


--ron
 

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

Top