Sum won't calculate result of SUMIF function - help!

E

exflirt

I am trying to include the product of a SUMIF function in a range of cells
using the SUM button, but it is reading the cell as if nothing were there.
Can anyone help?
 
D

David Biddulph

What is your formula? What are the contents of the cells which feed into
the formula? What result are you seeing? What result did you expect?
 
M

Marcelo

hy,

it will be better if you send us a sample of your formula.


--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"exflirt" escreveu:
 
M

Marcelo

you try to force excel to return 4000 if the sum of your range is less than it.

correct?

=if(sum(H7:H33)<4000,sum(h7:h33),4000)

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"exflirt" escreveu:
 
P

PCLIVE

Your formula seems ok, except I would change from "$4,000" to 4000 and then
format your cell appropriately. This could just be a calculation issue.
Try pressing F9. If that fixes it, then you most likely have calculations
set to manual. Tools-Options-Calculation-Automatic.

HTH,
Paul

--
 
E

exflirt

There are many cells involved.

To try to simplify, I have three cells I am trying to add together using the
SUM button. One contains the correct product of this function:
=IF(SUM(H7:H33)<4000,SUM(H7:H33),"$4,000"), namely, the dollar amount of
$4,000. The other two cells contain the amounts $20 and $80. When the three
cells are added together using the SUM button, the dollar amount $100 is
returned. The cell with the $4,000 number is not registering for some
reason, and I need to figure out how to fix it without disturbing the SUMIF
function.

Thanks again.
 
E

exflirt

Correct. I am working on a spreadsheet for a client showing the maximum they
would have to spend, so dollar amounts are a key part of it.

Removing the $$ sign does not make a difference, and I do have my
calculations set to Automatic under the Calculations tab.

Any other suggestions?
 
D

David Biddulph

You're not adding a number 4000, you're adding a text string "$4,000" [as
you've enclosed it in quotes].

Either
=IF(SUM(H7:H33)<4000,SUM(H7:H33),4000)
or
=MIN(SUM(H7:H33),4000)
 
P

PCLIVE

So does the formula return anything at all? If it is just blank, then maybe
there is some conditional formatting on that cell causing the text to be the
same color as the background.

Just a thought.
Paul

--
 
E

exflirt

That did it - thank you! I changed the "$4,000" to 4000 and let the cell
formatting turn it into $4,000.

THANK YOU!

David Biddulph said:
You're not adding a number 4000, you're adding a text string "$4,000" [as
you've enclosed it in quotes].

Either
=IF(SUM(H7:H33)<4000,SUM(H7:H33),4000)
or
=MIN(SUM(H7:H33),4000)
--
David Biddulph

exflirt said:
There are many cells involved.

To try to simplify, I have three cells I am trying to add together using
the
SUM button. One contains the correct product of this function:
=IF(SUM(H7:H33)<4000,SUM(H7:H33),"$4,000"), namely, the dollar amount of
$4,000. The other two cells contain the amounts $20 and $80. When the
three
cells are added together using the SUM button, the dollar amount $100 is
returned. The cell with the $4,000 number is not registering for some
reason, and I need to figure out how to fix it without disturbing the
SUMIF
function.

Thanks again.
 
P

PCLIVE

Ok. That's what I said earlier. Oh well. I'm glad it's working.

Regards.

--

exflirt said:
That did it - thank you! I changed the "$4,000" to 4000 and let the cell
formatting turn it into $4,000.

THANK YOU!

David Biddulph said:
You're not adding a number 4000, you're adding a text string "$4,000" [as
you've enclosed it in quotes].

Either
=IF(SUM(H7:H33)<4000,SUM(H7:H33),4000)
or
=MIN(SUM(H7:H33),4000)
--
David Biddulph

exflirt said:
There are many cells involved.

To try to simplify, I have three cells I am trying to add together
using
the
SUM button. One contains the correct product of this function:
=IF(SUM(H7:H33)<4000,SUM(H7:H33),"$4,000"), namely, the dollar amount
of
$4,000. The other two cells contain the amounts $20 and $80. When the
three
cells are added together using the SUM button, the dollar amount $100
is
returned. The cell with the $4,000 number is not registering for some
reason, and I need to figure out how to fix it without disturbing the
SUMIF
function.

Thanks again.

:

What is your formula? What are the contents of the cells which feed
into
the formula? What result are you seeing? What result did you expect?
--
David Biddulph

I am trying to include the product of a SUMIF function in a range of
cells
using the SUM button, but it is reading the cell as if nothing were
there.
Can anyone help?
 

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


Top