Both are very good, and do the same thing
No, they don't, they give different results
As I asked before, given 100 000 what would your expected result be?
Mine = 62 750
Dave's = 58 500
[Table="width:, class:grid"][tr][td] [/td][td]K
[/td][td]L
[/td][td]M
[/td][td]N
[/td][td]O
[/td][td]P
[/td][td]Q
[/td][/tr]
[tr][td]1
[/td][td]0
[/td][td]5000
[/td][td]0.3
[/td][td]1500
[/td][td][/td][td]100000
[/td][td]1500
[/td][/tr]
[tr][td]2
[/td][td]5001
[/td][td]50000
[/td][td]0.35
[/td][td]16000
[/td][td][/td][td]62750
[/td][td]16000
[/td][/tr]
[tr][td]3
[/td][td]50001
[/td][td]75000
[/td][td]0.4
[/td][td]14000
[/td][td][/td][td][/td][td]14000
[/td][/tr]
[tr][td]4
[/td][td]75001
[/td][td][/td][td]1.25
[/td][td][/td][td][/td][td][/td][td]31250
[/td][/tr]
[tr][td]5
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td]62750
[/td][/tr]
[/table]
I have gone with Dave's idea only because i have the option in changing the charges and numbers without chnaging each formula
Dave's 2nd formula in post #14 hard-codes the values, apart from that, both his other formula and mine reference the values from a table
I also just noticed that part of my formula did not copy across. It should be...
=IF($F$1<=B1,$F$1*C1,D1)+IF(AND($F$1>=A2,$F$1<=B2),($F$1-A2+1)*C2,IF($F$1<=A2,0,D2))+IF(AND($F$1>=A3,$F$1<=B3),($F$1-A3+1)*C3,IF($F$1<=A3,0,D3))+IF(F1<A4,0,($F$1-A4+1)*C4)