Click Consulting
Purpose The purpose of this workbook is to demonstrate one method for allocating an amount over time, based on a compu
Settings
Allocation table start date 1/31/2014
Instructions
Enter the allocation table start date above
Enter the Amount for each item.
Enter the allocation start date for each item.
Enter the allocation end date for each item (note: this could be a formula instead of a manually entered value)
Review the Diff column to ensure that the table fully allocates the amount.
Assumptions
Monthly column headers are date values that represent the last day of the month.
over time, based on a computed daily allocation amount.
Purpose To allocate the amount of each item based on a daily amount and the number of dates in each column.
Allocation
Settings
The allocation period is from 1/1 to 3/31
StartDate = 1/1
EndDate = 3/31
Case 1
The current period is one month into the allocation period (CurPer = 1/31)
The number of days to be allocated in the current period is simply represented by segment A.
Segment A is easily computed by subtracting the date endpoints.
A=CurPer - StartDate
A=1/31-1/1
(Techically, it will be off by 1 day, but we'll address this at the end.)
Case 2
The current period is earlier than the allocation start date (CurPer = 11/30)
In this case, our standard formula (CurPer - StartDate) will result in a negative number.
To prevent this, we'll wrap a MAX function around it, so the function will return zero instead of a negative.
A=MAX(CurPer - StartDate,0)
A=MAX(11/30-1/1,0)
A=0
Case 3
The current period is more than one month into the allocation period (CurPer = 2/28)
The desired segment, C, can be computed by taking segment A and subtracting from it segment B.
C=A-B
A = CurPer-StartDate = 2/28-1/1
B = PriorPer-StartDate = 1/31-1/1
We will compute the PriorPer value with the EOMONTH function.
Again, to avoid negative days, we'll use MAX functions
Case 4
The current period is after the end of the allocation period (CurPer = 5/31)
All that remains is to adjust our formula developed above to remove the days past the end of the allocation period.
To accomplish this, we'll simply subtract the excess days, or, the number of days past the end date.
C=A-B
This is our standard formula, but results in a non-zero number of days even though the current period is outside of t
Thus, we subtract from its result the number of days in the current period that are in excess of the EndDate, represe
The desired result is C-F, or zero days.
F=D-E
D=MAX(CurPer-EndDate,0)
E=MAX(PriorPer-EndDate,0)
stead of a negative.
segment B.
Overview
There are many different ways to compute the number of days.
The approach below attempts to strike a balance between formula length and readability.
Formula