Calculate values with a maximum ceiling, spilling whats left to the next

TenTwenty

New Member
Joined
Feb 20, 2018
Messages
14
I have the following table. Problem is I really am stuck with this one. Columns in red are the ones I'm testing against. The values entered in columns E,H, K and N will be tested against the values in columns F, H, K and N. The latter columns in a ceiling and if the calculated value in E,H, K and N exceed the ceiling then it will spill over to the next. That is working sort of but the problem is when the month are the same for two or more rows.

Below is the table values with the formulas that I use.


Excel 2016
ABCDEFGHIJKLMNO
1DateMonthReadingTest1Tarif1Cap1Test2Tarif2Cap2Test3Tarif3Cap3Test4Tarif4Cap4
21/7/18July5505050502502502503000
31/8/18August5705050502502702503000
415/8/18August280005000250300250
520/8/18August320005000250300320
625/8/18August180005000250300180
72/9/18Sept1200505050250900250300600

<tbody>
</tbody>
Formulas
B2=TEXT(A2,"mmmm")
F2=IF(C2>F2,IF(B2=B1,0,F2),C2)
H2=IF(C2>F2+I2,IF(B2=B1,0,IF(280-0-250>I2,IF(B2=B1,0,I2),C2-E2-I2)),IF(H2>0,C2-F2,C2))

<tbody>
</tbody>

<tbody>
</tbody>
 
so the tarriff is a monthly tarriff and any unused units on your token are used to pay next month ?
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
@oldbrewer
Jip, Those not used rollover to the next month, thankfully:LOL:. That's why I would like to buy the optimum number of units every month if possible. If you buy to much then you are actually sponsoring the next month with expensive units that you bought the previous month.
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,376
Members
449,080
Latest member
Armadillos

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