Need help automating a process

Timeizmonies

New Member
Joined
Dec 26, 2014
Messages
38
Okay so for work I have to make a prorated amount of screens a client can have in a year.

Here's an example of what I have to do:

120 unit property at 100% PPU. Contract term begins 12/13/14 and goes through 12/31/15.
120/12 = 10 per month.
10 / 31 (days in Dec) = 0.3225 screens per day.
0.3225 * 19 days used in Dec 2014 = 6.129 or rounded to 6.
Prorated allowed for the first contract term is 126.
Annual allowed is 120

So in the spreadsheet I'll have a column for units, and a column for the start date of the contract. If the contract doesn't start on the 1st of month or the last day of the month I have to prorate it like the example above. So since the contract starts on the 13th I have to multiply the screens allowed a day by 19 which is 31-12 because there are 12 days of month they have not used to screen. I have to do this for each client so if another client starts in 11/16, I have to do the same process but for 15 days of the moth. So some contracts start on different days I can't just use a simple formula for the column. I have a current product were I have to prorate hundreds of clients and to do each one manually is extremely time consuming and tedious. I think a macro would be the best bet but I don't know anything about them.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,215,059
Messages
6,122,916
Members
449,093
Latest member
dbomb1414

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