Help with "IF" formula please

Aqua1967

New Member
Joined
Apr 2, 2013
Messages
12
I have 4 numbers to sum (B5:B8). Cell B9 contains the formula to sum those cells. I need the sum to indicate 0 if the sum total is a negative number. If the sum total is greater than 250000, I need the total to indicate 250000.

I've been able to figure out how to get it to return a number no greater than 250000, but have been unable to figure out how to also incorporate the formula to include returning 0 if the sum is a negative number.

This is the formula I have so far: =IF(SUM(B5:B8)>=250000,250000SUM(B5:B8))

Can someone help me add the other part to this formula?

Thank you so much!
 
Last edited:

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Try:
Code:
=MIN(MAX(SUM(B5:B8),0),250000)
 
Upvote 0
I think this works! It gives me a dash instead of 0, but I think I can live with that.

I was on the wrong track with the IF formula then. Thank you for your help with this!!!
 
Upvote 0
You are welcome!

I think this works! It gives me a dash instead of 0, but I think I can live with that.
That has nothing to do with the formula. That is your cell format. Take a look at what you have it set to, and change it as needed.

I was on the wrong track with the IF formula then.
It can be done with an IF formula, but it is a lot easier to use the MIN/MAX formulas.
 
Upvote 0

Forum statistics

Threads
1,214,959
Messages
6,122,476
Members
449,087
Latest member
RExcelSearch

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top