Hello all -
I am trying to figure out if, given an initial invoice date for a recurring service, I can run a comparison on future weeks to figure out if subsequent invoices will be due on that week. The main catch is that I need to be able to get ALL invoice payments that would be due that week (for cashflow purposes), totaling them in their corresponding cells. How my table SHOULD LOOK is below. The approach I have tried and thus far failed with is running a SUMPRODUCT function, wherein I run an EDATE function taking the dates in column B and then attempting to go out 12 months into the future. For example, this is the formula in F4:
=SUMPRODUCT((C2:C4)*(EDATE(B2:B4,ROW($1:$13)) >= F$3)*(EDATE(B2:B4,ROW($1:$13)) <= F$3+6))
This throws an array size error. I've been advised to try other methods, such as DAY() comparisons, but if the week starts in one month and ends in the next month, then that fails the DAY() comparison. If anyone can provide any assistance at all, it would be greatly appreciated. Thanks in advance!!
I am trying to figure out if, given an initial invoice date for a recurring service, I can run a comparison on future weeks to figure out if subsequent invoices will be due on that week. The main catch is that I need to be able to get ALL invoice payments that would be due that week (for cashflow purposes), totaling them in their corresponding cells. How my table SHOULD LOOK is below. The approach I have tried and thus far failed with is running a SUMPRODUCT function, wherein I run an EDATE function taking the dates in column B and then attempting to go out 12 months into the future. For example, this is the formula in F4:
=SUMPRODUCT((C2:C4)*(EDATE(B2:B4,ROW($1:$13)) >= F$3)*(EDATE(B2:B4,ROW($1:$13)) <= F$3+6))
This throws an array size error. I've been advised to try other methods, such as DAY() comparisons, but if the week starts in one month and ends in the next month, then that fails the DAY() comparison. If anyone can provide any assistance at all, it would be greatly appreciated. Thanks in advance!!
Book1 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | |||
1 | Bill | First Invoice | Amount | ||||||||||||
2 | Rent | 2/14/20 | $2,000 | Period 05 | Period 05 | Period 05 | Period 05 | Period 06 | Period 06 | Period 06 | Period 06 | ||||
3 | Taxes | 1/30/20 | $1,000 | Week starting | 4/20/20 | 4/27/20 | 5/4/20 | 5/11/20 | 5/18/20 | 5/25/20 | 6/1/20 | 6/8/20 | |||
4 | Internet | 1/10/20 | $250 | Expenses | $ - | $1,000.00 | $250.00 | $2,000.00 | $ - | $1,000.00 | $ - | $2,250.00 | |||
Sheet1 |