Calculating Remaining Budget with a fill-down formula

hawaean

New Member
Joined
Aug 25, 2016
Messages
37
I'd like a formula that examines a cell and an array to determine what, if any funds are available to fund a reference cell.

Example:

Budget$500
Request:Available:
Item (Priority #1)$350$350
Item (Priority #2)$100$100
Item (Priority #3)$250$50
Item (Priority #4)$75$0

What would be the best formula to calculate the Available column?

The formula should check the budget against the requested line item amount, but also needs to account for all the previous items, as applicable.

This is my first approach (starting in C5):

=if(sum($B$4:$B5)>$B$1,max($B$1-sum($B$4:$B4),0),min($B$1-sum($B$3:$B4),$B$1))

The weird/awkward part of my formula is I had to include the cell B3, which is not technically part of the table. It's the header. Otherwise, the formula in C4 doesn't work.

My attempt is probably cluncky-er than it needs to be and one of you excel pros will have a better solution to do this.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Try:

Libro1
ABC
1Budget500
2
3Request:Available:
4Item (Priority #1)350350
5Item (Priority #2)100100
6Item (Priority #3)25050
7Item (Priority #4)750
Hoja1
Cell Formulas
RangeFormula
C4:C7C4=MIN(B4,B$1-SUM(C$3:C3))
 
Upvote 0

Forum statistics

Threads
1,224,911
Messages
6,181,690
Members
453,062
Latest member
blackyblack

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