Greene1999
New Member
- Joined
- Jul 15, 2021
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Hello everyone! I need some formula help here. Please see the attached simplified copy of my spreadsheet.
The top portion (rows 9-13) represents sales while the lower portion (rows 28-32) represents collections of payments. Column C (C9:C13) represents payment terms, that is how many days until the amounts in the sales section are collected. For example, cell E9 represents that there were £1,000 in sales to GM on Monday, Jan 4 with payment terms of 5 business days (cash cannot be collected on weekends as banks are closed). The formula in cell range E28:X32 serves to display the data in the sales section on the date that it is to be collected based on the payment terms in column C. So this £1,000 from GM will be collected in 5 business days on Monday, Jan 11.
The formula below is currently being used in cell E28, and is applied to cell range E28:X32.
=IFERROR(INDEX($E$9:$X$13,MATCH($B28,$B$9:$B$13,0),MATCH(WORKDAY(E$5,-INDEX($C$9:$C$13,MATCH($B28,$B$9:$B$13,0))),$E$5:$X$5,0)),0)
This is working perfectly, but does not take into consideration bank holidays, which are like weekends in this case when banks are closed and collections cannot take place. Thus, these days, which are enumerated in the "Holidays" tab, will need to be "skipped over," if you will. I do not know if this is possible to do through the formula or by adding additional functionality to the workbook. The only bank holiday included in the snippet of the workbook I have attached above is Jan 18.
Currently, cell range O28:O32 is displaying sales data from prior days (cells J9, J10, and E11 sales are being displayed in cells O28, O29, and O30, respectively). However, this is the issue I need resolved. Jan 18 is a bank holiday when collections cannot occur, so this data should actually be displayed on Tuesday, Jan 19, cell range P28:P32. Please let me know if you need additional details. Thanks!
The top portion (rows 9-13) represents sales while the lower portion (rows 28-32) represents collections of payments. Column C (C9:C13) represents payment terms, that is how many days until the amounts in the sales section are collected. For example, cell E9 represents that there were £1,000 in sales to GM on Monday, Jan 4 with payment terms of 5 business days (cash cannot be collected on weekends as banks are closed). The formula in cell range E28:X32 serves to display the data in the sales section on the date that it is to be collected based on the payment terms in column C. So this £1,000 from GM will be collected in 5 business days on Monday, Jan 11.
The formula below is currently being used in cell E28, and is applied to cell range E28:X32.
=IFERROR(INDEX($E$9:$X$13,MATCH($B28,$B$9:$B$13,0),MATCH(WORKDAY(E$5,-INDEX($C$9:$C$13,MATCH($B28,$B$9:$B$13,0))),$E$5:$X$5,0)),0)
This is working perfectly, but does not take into consideration bank holidays, which are like weekends in this case when banks are closed and collections cannot take place. Thus, these days, which are enumerated in the "Holidays" tab, will need to be "skipped over," if you will. I do not know if this is possible to do through the formula or by adding additional functionality to the workbook. The only bank holiday included in the snippet of the workbook I have attached above is Jan 18.
Currently, cell range O28:O32 is displaying sales data from prior days (cells J9, J10, and E11 sales are being displayed in cells O28, O29, and O30, respectively). However, this is the issue I need resolved. Jan 18 is a bank holiday when collections cannot occur, so this data should actually be displayed on Tuesday, Jan 19, cell range P28:P32. Please let me know if you need additional details. Thanks!
Forecast.xlsx | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |||
1 | ||||||||||||||||||||||||||
2 | ||||||||||||||||||||||||||
3 | Cash Flow Forecast | Month | JAN | |||||||||||||||||||||||
4 | Week | 1 | 2 | 3 | 4 | |||||||||||||||||||||
5 | Date | 4-Jan | 5-Jan | 6-Jan | 7-Jan | 8-Jan | 11-Jan | 12-Jan | 13-Jan | 14-Jan | 15-Jan | 18-Jan | 19-Jan | 20-Jan | 21-Jan | 22-Jan | 25-Jan | 26-Jan | 27-Jan | 28-Jan | 29-Jan | |||||
6 | ||||||||||||||||||||||||||
7 | SALES | |||||||||||||||||||||||||
8 | FACTORED SALES | Average Terms (Days) | ||||||||||||||||||||||||
9 | GM | 5 | £1,000 | £1,000 | £1,000 | £1,000 | £1,000 | £1,200 | £1,200 | £1,200 | £1,200 | £1,200 | £1,400 | £1,400 | £1,400 | £1,400 | £1,400 | £1,600 | £1,600 | £1,600 | £1,600 | £1,600 | ||||
10 | FORD | 5 | £500 | £500 | £500 | £500 | £500 | £700 | £700 | £700 | £700 | £700 | £400 | £400 | £400 | £400 | £400 | £600 | £600 | £600 | £600 | £600 | ||||
11 | FCA | 10 | £400 | £400 | £400 | £400 | £400 | £300 | £300 | £300 | £300 | £300 | £240 | £240 | £240 | £240 | £240 | £300 | £300 | £300 | £300 | £300 | ||||
12 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | ||||||
13 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | ||||||
14 | TOTAL FACTORED SALES | £1,900 | £1,900 | £1,900 | £1,900 | £1,900 | £2,200 | £2,200 | £2,200 | £2,200 | £2,200 | £2,040 | £2,040 | £2,040 | £2,040 | £2,040 | £2,500 | £2,500 | £2,500 | £2,500 | £2,500 | |||||
15 | ||||||||||||||||||||||||||
25 | ||||||||||||||||||||||||||
26 | DIRECT CASH FLOW | |||||||||||||||||||||||||
27 | CASH RECEIPTS | Average Terms (Days) | ||||||||||||||||||||||||
28 | GM | 5 | £0 | £0 | £0 | £0 | £0 | £1,000 | £1,000 | £1,000 | £1,000 | £1,000 | £1,200 | £1,200 | £1,200 | £1,200 | £1,200 | £1,400 | £1,400 | £1,400 | £1,400 | £1,400 | ||||
29 | FORD | 5 | £0 | £0 | £0 | £0 | £0 | £500 | £500 | £500 | £500 | £500 | £700 | £700 | £700 | £700 | £700 | £400 | £400 | £400 | £400 | £400 | ||||
30 | FCA | 10 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £400 | £400 | £400 | £400 | £400 | £300 | £300 | £300 | £300 | £300 | ||||
31 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | ||||||
32 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | £0 | ||||||
33 | TOTAL FACTORED COLLECTIONS | £0 | £0 | £0 | £0 | £0 | £1,500 | £1,500 | £1,500 | £1,500 | £1,500 | £2,300 | £2,300 | £2,300 | £2,300 | £2,300 | £2,100 | £2,100 | £2,100 | £2,100 | £2,100 | |||||
Calendar |
Cell Formulas | ||
---|---|---|
Range | Formula | |
J4,O4,T4 | J4 | =E4+1 |
L4 | L4 | =+J4+1 |
M4:N4,Q4:S4 | M4 | =+L4+1 |
P4 | P4 | =+#REF!+1 |
F5:I5,K5:N5,P5:S5,U5:X5 | F5 | =E5+1 |
J5,O5,T5 | J5 | =I5+3 |
E14:X14 | E14 | =SUM(E9:E13) |
E28:X32 | E28 | =IFERROR(INDEX($E$9:$X$13,MATCH($B28,$B$9:$B$13,0),MATCH(WORKDAY(E$5,-INDEX($C$9:$C$13,MATCH($B28,$B$9:$B$13,0))),$E$5:$X$5,0)),0) |
E33:X33 | E33 | =+SUM(E28:E32) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
C28:C32 | Cell Value | =0 | text | NO |