I have a table of random dates A
and a sum for each date B
.
The sum is over all the amounts in D
, where the date in C
is before the date of A
.
So B3
is D1+D2+D3+D4+D5+D6
because the date in A3
is past the date in C6
.
How could I do this with a formula?
A B C D
---------------------------------------
2.3.2013 45 1.3.2013 45€
6.4.2013 90 1.4.2013 45€
5.8.2013 270 1.5.2013 45€
1.1.2014 315 1.6.2013 45€
3.1.2014 315 1.7.2013 45€
5.2.2014 315 1.8.2013 45€
9.2.2014 315 1.9.2013 45€
A
sorted, and what date format are you using?DD.MM.YYYY
orMM.DD.YYYY
?