Hi all
I've been searching how to do this with no luck for a couple of days now.
What I have is a set table with a set of records that have a start Date, End Date and a value.
The date ranges (between Start Date and End Date) for these data records sometimes are split across two or more financial quarters. What I am trying to achieve is split all data records in the table the roll over multiple financial quarters. Any idea on how to do this would be much appreciated.
For example, I have a table. The table has 3 fields with Start Date, End Date and Value. The records look like this:
eg:
Start Date End Date Value
1/1/2008 23/2/2008 100
1/2/2008 20/4/2008 200
4/2/2008 31/12/2008 400
In this case what I need to do VBA is split these records accordingly:
eg:
Start Date End Date Value
1/1/2008 23/2/2008 100 'no split required
1/2/2008 31/3/2008 149.4 'These records split accordingly
1/4/2008 20/4/2008 50.6
4/2/2008 30/6/2008 178.3 'These records split accordingly
1/7/2008 30/9/2008 110.8
1/10/2008 31/12/2008 110.8
Any help would be much appreciated.
I've been searching how to do this with no luck for a couple of days now.
What I have is a set table with a set of records that have a start Date, End Date and a value.
The date ranges (between Start Date and End Date) for these data records sometimes are split across two or more financial quarters. What I am trying to achieve is split all data records in the table the roll over multiple financial quarters. Any idea on how to do this would be much appreciated.
For example, I have a table. The table has 3 fields with Start Date, End Date and Value. The records look like this:
eg:
Start Date End Date Value
1/1/2008 23/2/2008 100
1/2/2008 20/4/2008 200
4/2/2008 31/12/2008 400
In this case what I need to do VBA is split these records accordingly:
eg:
Start Date End Date Value
1/1/2008 23/2/2008 100 'no split required
1/2/2008 31/3/2008 149.4 'These records split accordingly
1/4/2008 20/4/2008 50.6
4/2/2008 30/6/2008 178.3 'These records split accordingly
1/7/2008 30/9/2008 110.8
1/10/2008 31/12/2008 110.8
Any help would be much appreciated.