I wanted to calculate slab rates in excel through VBA coding.
The slab is like this:
Rightnow I’m using “if” function for every row. I like to have a function (VBA Code) on the backend of the worksheet.
Ragu![[pc] [pc] [pc]](/data/assets/smilies/pc.gif)
The slab is like this:
If date diff is 55 days
First 5 days X $. 0 per day = $ 0.00
Next 10 days X $. 5 per day = $. 50.00
Next 10 days X $.10 per day = $.100.00
Thereafter (25 days) X $.15 per day = $.375.00
-----------------------------
Total: $.525.00
Rightnow I’m using “if” function for every row. I like to have a function (VBA Code) on the backend of the worksheet.
Ragu
![[pc] [pc] [pc]](/data/assets/smilies/pc.gif)