JVFriederick
IS-IT--Management
In Excel I am trying to summarize the total value for a set of data based upon date ranges. The data consists of various "effective dates" that indicate when an item changed status (P1, P2, P3, etc). An item cannot repeat the date of status change, however the status can jump from any level to any other level (there is no orderly progression).
The effective dates are as follows :
TABLE/RANGE #1
ITEM P1...... P2...... P3...... P4......
1000 09/01/06 08/15/07 10/25/07 02/01/08
1001 02/01/08 08/18/06 02/25/07 12/12/07
1002 06/11/04 08/25/07 12/25/06 02/07/07
1003 07/21/06 08/05/06 03/03/07 03/09/08
The value while in each level is as follows :
TABLE/RANGE #2
ITEM P1 P2 P3 P4
VALUE 10 15 25 40
I wish to determine the total value of each ITEM when the DATE_BEGIN >= 01/01/07 and DATE_END <= 03/31/07
There are a total of 90 days for this example date range, if an item was classified as P1 the entire time, the total value would be 90*10=900. If an item was P1 for 15 days, P3 for 50 days, and P4 for 25 days, the total value would be 15*10 + 50*25 + 25*40 = 2400
I would prefer a formula based solution, however, VBA is fine if it does the trick. At this point I would welcome any ideas since I am hitting a wall.
I am hoping that others have solved this type of problem?
The effective dates are as follows :
TABLE/RANGE #1
ITEM P1...... P2...... P3...... P4......
1000 09/01/06 08/15/07 10/25/07 02/01/08
1001 02/01/08 08/18/06 02/25/07 12/12/07
1002 06/11/04 08/25/07 12/25/06 02/07/07
1003 07/21/06 08/05/06 03/03/07 03/09/08
The value while in each level is as follows :
TABLE/RANGE #2
ITEM P1 P2 P3 P4
VALUE 10 15 25 40
I wish to determine the total value of each ITEM when the DATE_BEGIN >= 01/01/07 and DATE_END <= 03/31/07
There are a total of 90 days for this example date range, if an item was classified as P1 the entire time, the total value would be 90*10=900. If an item was P1 for 15 days, P3 for 50 days, and P4 for 25 days, the total value would be 15*10 + 50*25 + 25*40 = 2400
I would prefer a formula based solution, however, VBA is fine if it does the trick. At this point I would welcome any ideas since I am hitting a wall.
I am hoping that others have solved this type of problem?