I have a date that is entered in one cell, and I want a formula that can change the range depending on this value. Here is a very simple illustration of what I am looking for (in reality, I am using XNPV so would be using it for both the date range and data range).
The Total cell is a sum of the range that starts with the date that matches the date at the top, and then goes to the bottom.
So in the first example, the formula would add cells B4:B7
<tbody>
</tbody>
In the second example, the formula would add cells B6:B7
<tbody>
</tbody>
Thanks for any help or ideas!
The Total cell is a sum of the range that starts with the date that matches the date at the top, and then goes to the bottom.
So in the first example, the formula would add cells B4:B7
January 1, 2013 | |
Total | 70,000 |
January 1, 2013 | 10,000 |
February 1, 2013 | 20,000 |
March 1, 2013 | 15,000 |
April 1, 2013 | 25,000 |
<tbody>
</tbody>
In the second example, the formula would add cells B6:B7
March 1, 2013 | |
Total | 40,000 |
January 1, 2013 | 10,000 |
February 1, 2013 | 20,000 |
March 1, 2013 | 15,000 |
April 1, 2013 | 25,000 |
<tbody>
</tbody>
Thanks for any help or ideas!