debster007
New Member
- Joined
- Sep 10, 2014
- Messages
- 2
The table below has several items that have multiple contracts and rates. I need a formula that prorates when the contracts change. For example, in the cashflow table for Item A, July 2016 should reflect 19 days @ 100 and 12 days @ 125 in July 2016.
<tbody>
</tbody>
Item | Start Date | End Date | Rate | ||||||||
A | 5/19/2014 | 7/19/2016 | $ 100 | ||||||||
A | 7/19/2016 | 7/19/2017 | $ 125 | ||||||||
B | 11/28/2013 | 4/28/2016 | $ 75 | ||||||||
B | 4/28/2016 | 4/28/2017 | $ 80 | ||||||||
C | 5/1/2014 | 5/1/2015 | $ 105 | ||||||||
C | 5/1/2015 | 4/30/2016 | $ 110 | ||||||||
D | 7/1/2014 | 9/1/2016 | $ 130 | ||||||||
D | 9/1/2016 | 9/1/2017 | $ 135 | ||||||||
Item: | A | ||||||||||
Dates: | 04/01/16 | 05/01/16 | 06/01/16 | 07/01/16 | 08/01/16 | 08/01/16 | 07/01/17 | ||||
04/30/16 | 05/31/16 | 06/30/16 | 07/31/16 | 08/31/16 | 08/31/16 | . . . . . . . .. | 07/31/17 | ||||
Rate: | $ 100 | $ 100 | $ 100 | <v:shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o | $ 125 | $ 125 | . . . . . . . . . | $ - | |||
current formula: | =SUMIFS($D$4:$D$11,$A$4:$A$11,$B$13,$B$4:$B$11,"<="&E14,$C$4:$C$11,">="&E15) |
<tbody>
</tbody>