Lil Stinker
Board Regular
- Joined
- Feb 16, 2022
- Messages
- 151
- Office Version
- 2019
- Platform
- Windows
@KRice
Post in thread 'Fixed minimum rate for prorating calculation'
Fixed minimum rate for prorating calculation
For the second requirement, I would still like to use the same proration table at the above link however, since this will be on a different form altogether, the formulas will probably need to change to fit the criteria.
On this form, rather than prorate a weekly rate by the day after a one week minimum is met, here, I am trying to have it prorate by the week, except the 2nd week is half of the first, the 3rd week half of the 2nd and the 4th week is free.
Example:
Unit Rate: $200
Rental term: 3 weeks, 4 days / Subtotal = $350
Rental term: > 4 weeks / Subtotal still = $350
Rental term: < 1 week / Subtotal = $200
I’ve managed to manipulate the existing formulas by changing what the weekly formula rounds to in columns Q & R and adding an additional column S to calculate the 3rd week. But this next part is where it gets complicated.
Monthly. The monthly proration can actually remain the same as it is currently: after a one month minimum is met, it would prorate by the weeks and days but needs to ignore the additional column S which doesn’t pertain to monthly calculations. I just can’t seem to figure out how to make the subtotal formula work to meet both the monthly and weekly criteria. I’ve tried using nested IFs but it only seems to take me so far then it falls apart when trying to meet the minimum rate for time periods less the required duration. I can provide examples tomorrow when I’m back in the office.
Basically, the subtotal column needs to account for a weekly rental prorated by half of the 1st week, then half of the 2nd week unless the duration equals a week or less, when the drop down (E17) calls for a Weekly term. It also needs to account for a monthly rental prorated by the weeks and days unless the duration equals a month or less, when the drop down (E17) calls for a Monthly term.
Finally, just to make it even more challenging, I would like to introduce a Custom option to the drop down. This Custom option would disregard any and all prorating formulas when calculating the Subtotal but would still display the accurate rental duration in months, weeks and days as the table is currently set to do. Basically, if a user selects Custom in the drop down, they’ll be responsible for inputting the subtotal manually.
Is it even possible for one cell to process all of those variations? Nested IFs or some other way?
Post in thread 'Fixed minimum rate for prorating calculation'
Fixed minimum rate for prorating calculation
For the second requirement, I would still like to use the same proration table at the above link however, since this will be on a different form altogether, the formulas will probably need to change to fit the criteria.
On this form, rather than prorate a weekly rate by the day after a one week minimum is met, here, I am trying to have it prorate by the week, except the 2nd week is half of the first, the 3rd week half of the 2nd and the 4th week is free.
Example:
Unit Rate: $200
Rental term: 3 weeks, 4 days / Subtotal = $350
Rental term: > 4 weeks / Subtotal still = $350
Rental term: < 1 week / Subtotal = $200
I’ve managed to manipulate the existing formulas by changing what the weekly formula rounds to in columns Q & R and adding an additional column S to calculate the 3rd week. But this next part is where it gets complicated.
Monthly. The monthly proration can actually remain the same as it is currently: after a one month minimum is met, it would prorate by the weeks and days but needs to ignore the additional column S which doesn’t pertain to monthly calculations. I just can’t seem to figure out how to make the subtotal formula work to meet both the monthly and weekly criteria. I’ve tried using nested IFs but it only seems to take me so far then it falls apart when trying to meet the minimum rate for time periods less the required duration. I can provide examples tomorrow when I’m back in the office.
Basically, the subtotal column needs to account for a weekly rental prorated by half of the 1st week, then half of the 2nd week unless the duration equals a week or less, when the drop down (E17) calls for a Weekly term. It also needs to account for a monthly rental prorated by the weeks and days unless the duration equals a month or less, when the drop down (E17) calls for a Monthly term.
Finally, just to make it even more challenging, I would like to introduce a Custom option to the drop down. This Custom option would disregard any and all prorating formulas when calculating the Subtotal but would still display the accurate rental duration in months, weeks and days as the table is currently set to do. Basically, if a user selects Custom in the drop down, they’ll be responsible for inputting the subtotal manually.
Is it even possible for one cell to process all of those variations? Nested IFs or some other way?