Hello all,
I'm not sure is this is possible, everything I have looked at seems like it needs to be exact amount.
I'm hoping someone can help. Please see image attached.
In column B is the list of amounts I want to seperate into C D E F G columns. The total of £189,733.00 is divide by K6 (=SUM(C6:G6)/5) £37,946.60,
On row 6 is the amounts that is closest to it.
The list on the B column cannot be split evenly between the days. I need a formula that fill C:G based on the amounts on B.
For example: Supplier Hozelock gets paid on 27th of Sept, because all the other suppliers on prior, have already filled the criteria of about £37k which you can see on C6. The amounts on C:G can just be values. My aim is to not touch B (and hide it when printing). and from it copy and paste or just automatically fill in the next column along. If you see E51:E58 adds up to £39,704.83, then from LLOYD & Jones onwards ,it has moved to F59 ....etc... and so on.
Apologies in advance about the uber long formula in column B if someone can shorten it that would be great but not the priority. HAHA.
If you anyone needs more explanation. Let me know.
I'm not sure is this is possible, everything I have looked at seems like it needs to be exact amount.
I'm hoping someone can help. Please see image attached.
In column B is the list of amounts I want to seperate into C D E F G columns. The total of £189,733.00 is divide by K6 (=SUM(C6:G6)/5) £37,946.60,
On row 6 is the amounts that is closest to it.
The list on the B column cannot be split evenly between the days. I need a formula that fill C:G based on the amounts on B.
For example: Supplier Hozelock gets paid on 27th of Sept, because all the other suppliers on prior, have already filled the criteria of about £37k which you can see on C6. The amounts on C:G can just be values. My aim is to not touch B (and hide it when printing). and from it copy and paste or just automatically fill in the next column along. If you see E51:E58 adds up to £39,704.83, then from LLOYD & Jones onwards ,it has moved to F59 ....etc... and so on.
Apologies in advance about the uber long formula in column B if someone can shorten it that would be great but not the priority. HAHA.
If you anyone needs more explanation. Let me know.
Bill Payments 20.09.2021 1.xlsm | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | Bill Payments List | 22 September 2021 | |||||||||||
2 | |||||||||||||
3 | |||||||||||||
4 | Supplier | 22.09.2021 | 24.09.2021 | 27.09.2021 | 28.09.2021 | 29.09.2021 | 30.09.2021 | Paid | On Exchequer | On Exchequer | Notes | ||
5 | |||||||||||||
6 | £39,247.00 | £36,052.65 | £39,704.83 | £40,296.11 | £34,432.41 | Total: | £189,733.00 | £189,733.00 | 37,946.60 | ||||
46 | HOZ001, Hozelock Limited | 2025.24 | 2025.24 | 27.09.2021 | x | ||||||||
47 | IND001, Industrial Ancillaries Ltd | 462.20 | 462.20 | ||||||||||
48 | INT007, Intrico Products Ltd | 14.70 | 14.70 | ||||||||||
49 | JEN001, Jenkinsons Office Supplies | 401.03 | 401.03 | ||||||||||
50 | JOH003, John Roberts Garage | 214.85 | 214.85 | ||||||||||
51 | JSP001, JSP Limited | 3672.00 | 3672.00 | ||||||||||
52 | KEE001, Kee Connections Ltd | 13126.37 | 13126.37 | ||||||||||
53 | KHP001, K.H Packaging | 793.80 | 793.80 | ||||||||||
54 | KOB001, Kobold Instruments Limited | 15840.00 | 15840.00 | ||||||||||
55 | LED001, LEDCO Limited | 1198.41 | 1198.41 | ||||||||||
56 | LEEN01, Leengate Valves | 339.09 | 339.09 | ||||||||||
57 | LIN002, Link Engineering & Welding | 334.80 | 334.80 | ||||||||||
58 | LIN004, Link Powder Coating & Metal Finishing | 4400.36 | 4400.36 | ||||||||||
59 | LLO001, Lloyd & Jones Engineers Limited | 143.40 | 143.40 | 29.09.2021 | x | ||||||||
60 | LYA001, Lyan Packaging Supplies Ltd | 1028.70 | 1028.70 | ||||||||||
BP |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B4 | B4 | =K1 |
C6:G6 | D6 | =SUM(D7:D208) |
J6 | J6 | =I6 |
K6 | K6 | =I6/5 |
D46:D50 | D46 | =SUM(IF(INDEX('Outstanding Amounts'!$E$1:$M$113,MATCH(A46,'Outstanding Amounts'!K:K,0),8)="Add Invoice",SUM((INDEX('Outstanding Amounts'!$E$1:$M$113,MATCH(BP!A46,'Outstanding Amounts'!$K$1:$K$113,0),2)+(INDEX('Outstanding Amounts'!$E$1:$M$113,MATCH(BP!A46,'Outstanding Amounts'!$K$1:$K$113,0),9)))*$L$1),SUM((IF(AND(INDEX('Supplier List'!$A$1:$G$1360,MATCH(A46,'Supplier List'!G:G,0),6)="60 Days",A46="WAL001, Walter Frank & Sons Limited",'Outstanding Amounts'!Q54="Match"),INDEX('Outstanding Amounts'!$N$109:$S$123,MATCH(A46,'Outstanding Amounts'!$O$109:$O$123,0),5),IF(INDEX('Supplier List'!$A$1:$G$1360,MATCH(A46,'Supplier List'!G:G,0),6)="60 Days",INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A46,'Outstanding Amounts'!K:K,0),3),IF(INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A46,'Outstanding Amounts'!K:K,0),2)=INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A46,'Outstanding Amounts'!K:K,0),6),INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A46,'Outstanding Amounts'!K:K,0),2),INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A46,'Outstanding Amounts'!K:K,0),6)))))*$L$1))) |
E51:E58 | E51 | =SUM(IF(INDEX('Outstanding Amounts'!$E$1:$M$113,MATCH(A51,'Outstanding Amounts'!K:K,0),8)="Add Invoice",SUM((INDEX('Outstanding Amounts'!$E$1:$M$113,MATCH(BP!A51,'Outstanding Amounts'!$K$1:$K$113,0),2)+(INDEX('Outstanding Amounts'!$E$1:$M$113,MATCH(BP!A51,'Outstanding Amounts'!$K$1:$K$113,0),9)))*$L$1),SUM((IF(AND(INDEX('Supplier List'!$A$1:$G$1360,MATCH(A51,'Supplier List'!G:G,0),6)="60 Days",A51="WAL001, Walter Frank & Sons Limited",'Outstanding Amounts'!Q59="Match"),INDEX('Outstanding Amounts'!$N$109:$S$123,MATCH(A51,'Outstanding Amounts'!$O$109:$O$123,0),5),IF(INDEX('Supplier List'!$A$1:$G$1360,MATCH(A51,'Supplier List'!G:G,0),6)="60 Days",INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A51,'Outstanding Amounts'!K:K,0),3),IF(INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A51,'Outstanding Amounts'!K:K,0),2)=INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A51,'Outstanding Amounts'!K:K,0),6),INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A51,'Outstanding Amounts'!K:K,0),2),INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A51,'Outstanding Amounts'!K:K,0),6)))))*$L$1))) |
B46:B60 | B46 | =IFNA(SUM(IF(INDEX('Outstanding Amounts'!$E$1:$M$113,MATCH(A46,'Outstanding Amounts'!K:K,0),8)="Add Invoice",SUM((INDEX('Outstanding Amounts'!$E$1:$M$113,MATCH(BP!A46,'Outstanding Amounts'!$K$1:$K$113,0),2)+(INDEX('Outstanding Amounts'!$E$1:$M$113,MATCH(BP!A46,'Outstanding Amounts'!$K$1:$K$113,0),9)))*$L$1),SUM((IF(AND(INDEX('Supplier List'!$A$1:$G$1360,MATCH(A46,'Supplier List'!G:G,0),6)="60 Days",A46="WAL001, Walter Frank & Sons Limited",'Outstanding Amounts'!Q54="Match"),INDEX('Outstanding Amounts'!$N$109:$S$123,MATCH(A46,'Outstanding Amounts'!$O$109:$O$123,0),5),IF(INDEX('Supplier List'!$A$1:$G$1360,MATCH(A46,'Supplier List'!G:G,0),6)="60 Days",INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A46,'Outstanding Amounts'!K:K,0),3),IF(INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A46,'Outstanding Amounts'!K:K,0),2)=INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A46,'Outstanding Amounts'!K:K,0),6),INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A46,'Outstanding Amounts'!K:K,0),2),INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A46,'Outstanding Amounts'!K:K,0),6)))))*$L$1)))," ") |
F59:F60 | F59 | =SUM(IF(INDEX('Outstanding Amounts'!$E$1:$M$113,MATCH(A59,'Outstanding Amounts'!K:K,0),8)="Add Invoice",SUM((INDEX('Outstanding Amounts'!$E$1:$M$113,MATCH(BP!A59,'Outstanding Amounts'!$K$1:$K$113,0),2)+(INDEX('Outstanding Amounts'!$E$1:$M$113,MATCH(BP!A59,'Outstanding Amounts'!$K$1:$K$113,0),9)))*$L$1),SUM((IF(AND(INDEX('Supplier List'!$A$1:$G$1360,MATCH(A59,'Supplier List'!G:G,0),6)="60 Days",A59="WAL001, Walter Frank & Sons Limited",'Outstanding Amounts'!Q67="Match"),INDEX('Outstanding Amounts'!$N$109:$S$123,MATCH(A59,'Outstanding Amounts'!$O$109:$O$123,0),5),IF(INDEX('Supplier List'!$A$1:$G$1360,MATCH(A59,'Supplier List'!G:G,0),6)="60 Days",INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A59,'Outstanding Amounts'!K:K,0),3),IF(INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A59,'Outstanding Amounts'!K:K,0),2)=INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A59,'Outstanding Amounts'!K:K,0),6),INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A59,'Outstanding Amounts'!K:K,0),2),INDEX('Outstanding Amounts'!$E$1:$K$113,MATCH(A59,'Outstanding Amounts'!K:K,0),6)))))*$L$1))) |
I6 | I6 | =SUM(B6:H6) |
I46:I60 | I46 | =IF(AND(IF(C46>0,$C$4,IF(D46>0,$D$4,IF(E46>0,$E$4,IF(F46>0,$F$4,IF(G46>0,$G$4," "))))),J46="X"),(IF(C46>0,$C$4,IF(D46>0,$D$4,IF(E46>0,$E$4,IF(F46>0,$F$4,IF(G46>0,$G$4," ")))))),"") |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
'Supplier List'!_FilterDatabase | ='Supplier List'!$A$1:$F$1360 | B46:B60, F59:F60, E51:E58, D46:D50 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
J4 | Expression | =AND(LEN(TRIM(J4))>0,$G$4=$I4) | text | NO |
J4 | Expression | =AND(LEN(TRIM(J4))>0,$F$4=$I4) | text | NO |
J4 | Expression | =AND(LEN(TRIM(J4))>0,$E$4=$I4) | text | NO |
J4 | Expression | =AND(LEN(TRIM(J4))>0,$D$4=$I4) | text | NO |
J4 | Expression | =AND(LEN(TRIM(J4))>0,$B$4=$I4) | text | NO |
A:K | Expression | =AND(LEN(TRIM(A1))>0,$G$4=$I1) | text | NO |
A:K | Expression | =AND(LEN(TRIM(A1))>0,$F$4=$I1) | text | NO |
A:K | Expression | =AND(LEN(TRIM(A1))>0,$E$4=$I1) | text | NO |
A:K | Expression | =AND(LEN(TRIM(A1))>0,$D$4=$I1) | text | NO |
A:K | Expression | =AND(LEN(TRIM(A1))>0,$C$4=$I1) | text | NO |