Formula Help - Daily charges - Increasing after 4 days

Vansar

New Member
Joined
May 7, 2019
Messages
3
Hello all,

I am struggling with writing a formula that will calculate a fine dependant on the road type, however some of the road attract higher charges after 3 days, eg: 0 T/S 5 day overrun = 3x5000, 2 x 10000 = 35000, i do have a column that works out my working days overrun by checking against a table =IF(O2="","",(IFERROR(NETWORKDAYS(O2+1,P2,Holidays!$A$1:$A$96),"")))

I have tried using a Vlookup but cannot work out how to trigger the 4th day higher rate but also multiply the first 3 days correctly

V-Lookup Table

[TABLE="width: 200"]
<tbody>[TR]
[TD]Road[/TD]
[TD]Amount[/TD]
[TD]4th Day+[/TD]
[/TR]
[TR]
[TD]0 T/S[/TD]
[TD]£5,000.00[/TD]
[TD]£10,000.00[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]£2,500.00[/TD]
[TD]£2,500.00[/TD]
[/TR]
[TR]
[TD]1 T/S[/TD]
[TD]£5,000.00[/TD]
[TD]£10,000.00[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]£2,500.00[/TD]
[TD]£2,500.00[/TD]
[/TR]
[TR]
[TD]2 T/S[/TD]
[TD]£3,000.00[/TD]
[TD]£8,000.00[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]£2,000.00[/TD]
[TD]£2,000.00[/TD]
[/TR]
[TR]
[TD]3 T/S[/TD]
[TD]£750.00[/TD]
[TD]£750.00[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]£250.00[/TD]
[TD]£250.00[/TD]
[/TR]
[TR]
[TD]4 T/S[/TD]
[TD]£750.00[/TD]
[TD]£750.00[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]£250.00[/TD]
[TD]£250.00[/TD]
[/TR]
</tbody>[/TABLE]

Example Table with Formulas Showing

[TABLE="width: 1204"]
<tbody>[TR]
[TD]Days Overrun[/TD]
[TD]Road Cat[/TD]
[TD]Notice End Date[/TD]
[TD]Date Cleared[/TD]
[TD]Pot Charge[/TD]
[TD]Uplift[/TD]
[/TR]
[TR]
[TD]=IF(C2="","",(IFERROR(NETWORKDAYS(C2+1,D2,Holidays!$A$1:$A$96),"")))[/TD]
[TD]0 T/S[/TD]
[TD]43557[/TD]
[TD]43567[/TD]
[TD][/TD]
[TD]=E2*0.125[/TD]
[/TR]
</tbody>[/TABLE]

Any help with this would be much appreciated

Cheers

Craig
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
this will works out fine based on no of working days


Book1
ABC
1RoadAmount4th Day+
20 T/S£5,000.00£10,000.00
30£2,500.00£2,500.00
41 T/S£5,000.00£10,000.00
51£2,500.00£2,500.00
62 T/S£3,000.00£8,000.00
72£2,000.00£2,000.00
83 T/S£750.00£750.00
93£250.00£250.00
104 T/S£750.00£750.00
114£250.00£250.00
12
13
140 T/S535000
152 T/S417000
164 T/S32250
Sheet1
Cell Formulas
RangeFormula
C14=VLOOKUP(A14,$A$1:$C$11,2,0)*MIN(B14,3)+VLOOKUP(A14,$A$1:$C$11,3,0)*MAX(B14-3,0)
 
Upvote 0
AlanY,

Many thanks for this, it has been pickling my head for a while

Thanks you again

Craig
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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