Creating a Prorate Calculator Tool

AndyTampa

Board Regular
Joined
Aug 14, 2011
Messages
186
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I've created a tool where I can put in a monthly fee and an end date for that fee to calculate how much of that fee should be charged for the days used in that month. If there is a mid-month rate change, there isn't really an easy way to get the actual rate for that month. I have to note the amount due for the first rate elsewhere and recalculate. But to use this tool, I can use the same date, but I have to remember to use the "amount not due" to see what to charge for the remainder of the month. Then I have to add them together.

I'm trying to get it to automatically calculate a total for the month based on two different rates and two different dates. To that end, I've duplicated the tool but calculating the days effective is done differently depending on if it's the start date or end date of the change. I'm looking for a formula that will display totals and messages differently based on certain criteria and I'm finding it difficult. If I could at least get the formula for the messages I want to display, I'm sure I can use it to calculate the sums. There are a few outcomes I am looking for:

IF both dates are blank, I want the message that "Totals for the month are not available".
IF the change is not in the same month, I want the same message as above.
IF the end date of the first rate is equal or greater than the start date of the second rate, then I want to produce a message that there is an overlap.

DATE 1DATE 2CALCULATE TOTALMESSAGE DISPLAYED
BLANKBLANKNOTotal for a single month is not available
BLANK2/15/15YESTotal due for FEBRUARY 2015
2/14/15BLANKYESTotal due for FEBRUARY 2015
2/14/152/15/15YESTotal due for FEBRUARY 2015
2/15/152/14/15NODATES OVERLAP
2/14/153/5/15NOTotal for a single month is not available

<tbody>
</tbody>

I'm experimenting with using formulas to create variables in a hidden column, but that is proving just as difficult. Other problems I keep encountering is trying to use math on dates. Blank cells show up as having a date of January 0, 1900.

It would also be a bonus if the words "DATES OVERLAP" could be formatted to be bold, large, and red.

I just realized that if one date field is blank, the corresponding fee field will also be blank, so calculations will have to allow for that as well.

Does anyone have any advice to help me with this?
 
Last edited:

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Seriously, any help on any part of this to get me going in the right direction would be helpful.

Can I format text in a formula?
What function would be best?
Can I get 3 different results from one function?

Any help please.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,255
Members
449,075
Latest member
staticfluids

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