Deducting value of cell w/out going negative

KarmaTheDog

New Member
Joined
Feb 17, 2010
Messages
33
Hello all,
I have a problem hopefully someone can help me with: I have a target cell that sums a range of cells, but I would like that cell to also deduct the value of another cell without the target cell going below zero- if that makes sense. Even if I have to use a look-cell; I just don't know the formula.

Thank you
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try something like:

=MAX(*your function*,0)
 
Upvote 0
I'm sorry if I seem like a novice but I don't understand how to implement your solutions. In this instance cell H21 sums H12:H19. I'd like H21 reflect a deduction of the value of cell G21 without H21 going negative. So H21 would sum the range of cells and then deduct the value of G21 until H21 hit zero.
 
Upvote 0
Try:

=MAX(SUM(H12:H19)-G21,0)

Or are you wanting to subtract G21 over and over and over again until you hit zero, then show how much is remaining?
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

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