Calculate available balance for an array

orangehenry

New Member
Joined
Oct 26, 2015
Messages
7
Hi,

I am trying to calculate how much I can pay against a given limit for multiple line items.
Currently I am doing this calculation for each line item seperately but given I am likely to have many of these (and a variable number of them) I am wondering if there is a way to do this in one line. I have been playing with an array formula but the SUM function doesn't work correctly.

In plain english, the logic is as follows: Calculate the available limit as available limit - any previously funded costs. If there is limit remaining, the pay the lesser of the requested amount or the available limit.

Can anyone assist with how to put this calculation in one line?

Book5.xlsx
HIJKLMN
10LimitMonth123
11Cost 11005010050
12Cost 220030010
13
14Funded 150500
15Funded 220000
Sheet1
Cell Formulas
RangeFormula
L14:N15L14=MAX(MIN(L11-MIN(SUM($L11:L11)-$I11,L11),L11),0)
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,215,773
Messages
6,126,821
Members
449,340
Latest member
hpm23

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