I have payroll data broken out between various different time periods of varying length. I am trying to build a model that will automatically display the amount in a certain annual time period (e.g. 8/1/2011-8/1/2012), for multiple years.
So far, in the first row of calculations I put the beginning date for the data, and in the second I have the end date. In the third, I find the number of days difference between the two. In the fourth, I find out how much payroll is paid out each day by dividing total payroll for that data set by the number of days in the data set. From this point on, I am hitting a snag.
Is there a way that I can build the model so that it will do the following:
A) Determine which annual time period(s) the data will fall into
e.g 8/1/2010-2011, 8/1/2011-2012. If the data set went from 5/1/2011-9/30/2012, it would straddle the two annual periods and need to be split.
B) Determine how many days fall in each annual period, and multiply that number by the daily payroll.
C) Sum all data sets by the appropriate annual period. I have about 15 different payroll periods over a span of 4 years, and I need the end result to be payroll between 8/1 of each year and the next.
Any help would be greatly appreciated
Bookmarks