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
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