allrounder
New Member
- Joined
- Dec 23, 2021
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Allrounder.xlsx | |||||
---|---|---|---|---|---|
A | B | C | |||
5 | Cable Set 1 | 15 - 8185 | 1 | ||
6 | Cable Set 2 | 18 - 8222 | 2 | ||
7 | Cable Set 3 | 21 - 8259 | 3 | ||
8 | Cable Set 4 | 24 - 8296 | 4 | ||
9 | Cable Set 5 | 27 - 8333 | |||
10 | Cable Set 6 | 30 - 8370 | |||
Price 1 |
Allrounder.xlsx | |||||
---|---|---|---|---|---|
A | B | C | |||
5 | Cable Set 1 | 15 - 8182 | |||
6 | Cable Set 2 | 18 - 8219 | |||
7 | Cable Set 44 | 21 - 8256 | |||
8 | Cable Set 45 | 24 - 8293 | 4 | ||
9 | Cable Set 46 | 27 - 8330 | 5 | ||
10 | Cable Set 47 | 30 - 8367 | 6 | ||
Price 2 |
Allrounder.xlsx | |||||
---|---|---|---|---|---|
A | B | C | |||
5 | Cable Set 42 | 15 - 86845 | |||
6 | Cable Set 43 | 18 - 88214 | |||
7 | Cable Set 44 | 21 - 89583 | 3 | ||
8 | Cable Set 45 | 24 - 810952 | 4 | ||
9 | Cable Set 46 | 27 - 812321 | |||
10 | Cable Set 47 | 30 - 813690 | |||
Price 3 |
Allrounder.xlsx | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | Sheets | Items | Running | ||||||||||
2 | Price 1 | 4 | 0 | ||||||||||
3 | Price 2 | 3 | 4 | ||||||||||
4 | Cable Sets | Price 3 | 2 | 7 | |||||||||
5 | Cable Set 1 | 15 - 8185 | 1 | ||||||||||
6 | Cable Set 2 | 18 - 8222 | 2 | ||||||||||
7 | Cable Set 3 | 21 - 8259 | 3 | ||||||||||
8 | Cable Set 4 | 24 - 8296 | 4 | ||||||||||
9 | Cable Set 45 | 24 - 8293 | 4 | ||||||||||
10 | Cable Set 46 | 27 - 8330 | 5 | ||||||||||
11 | Cable Set 47 | 30 - 8367 | 6 | ||||||||||
12 | Cable Set 44 | 21 - 89583 | 3 | ||||||||||
13 | Cable Set 45 | 24 - 810952 | 4 | ||||||||||
14 | |||||||||||||
15 | |||||||||||||
Order |
Cell Formulas | ||
---|---|---|
Range | Formula | |
J2:J15 | J2 | =IF(I2="","",COUNTIF(INDIRECT("'"&I2&"'!$C$5:$C$99"),">0")) |
K2:K15 | K2 | =IF(I2="","",SUM($J$1:$J1)) |
A5:C15 | A5 | =IF(ROW()-ROW($A$4)>SUM($J$2:$J$99),"",INDEX(INDIRECT("'"&INDEX($I$2:$I$99,MATCH(ROW()-ROW($A$4)-1,$K$2:$K$99,1))&"'!$A$5:$c$99"),AGGREGATE(15,6,INDIRECT("'"&INDEX($I$2:$I$99,MATCH(ROW()-ROW($A$4)-1,$K$2:$K$99,1))&"'!$C$5:$C$99"),(ROW()-ROW($A$4))-(INDEX($K$2:$K$99,MATCH(ROW()-ROW($A$4)-1,$K$2:$K$99,1)))),COLUMN())) |
Hi Toadstool,Hi Allrounder,
You don't say how many price sheets there are or which columns are used but here's an example using 3 price sheets and a sample order sheet. You'll need to specify the sheet names in Order I2 to I99 as Excel functions can't retrieve them (NOTE: you could hide the Order columns I, J, K in a work sheet if preferred).
Allrounder.xlsx
A B C 5 Cable Set 1 15 - 8185 1 6 Cable Set 2 18 - 8222 2 7 Cable Set 3 21 - 8259 3 8 Cable Set 4 24 - 8296 4 9 Cable Set 5 27 - 8333 10 Cable Set 6 30 - 8370 Price 1
Allrounder.xlsx
A B C 5 Cable Set 1 15 - 8182 6 Cable Set 2 18 - 8219 7 Cable Set 44 21 - 8256 8 Cable Set 45 24 - 8293 4 9 Cable Set 46 27 - 8330 5 10 Cable Set 47 30 - 8367 6 Price 2
Allrounder.xlsx
A B C 5 Cable Set 42 15 - 86845 6 Cable Set 43 18 - 88214 7 Cable Set 44 21 - 89583 3 8 Cable Set 45 24 - 810952 4 9 Cable Set 46 27 - 812321 10 Cable Set 47 30 - 813690 Price 3
Allrounder.xlsx
A B C D E F G H I J K 1 Sheets Items Running 2 Price 1 4 0 3 Price 2 3 4 4 Cable Sets Price 3 2 7 5 Cable Set 1 15 - 8185 1 6 Cable Set 2 18 - 8222 2 7 Cable Set 3 21 - 8259 3 8 Cable Set 4 24 - 8296 4 9 Cable Set 45 24 - 8293 4 10 Cable Set 46 27 - 8330 5 11 Cable Set 47 30 - 8367 6 12 Cable Set 44 21 - 89583 3 13 Cable Set 45 24 - 810952 4 14 15 Order
Cell Formulas Range Formula J2:J15 J2 =IF(I2="","",COUNTIF(INDIRECT("'"&I2&"'!$C$5:$C$99"),">0")) K2:K15 K2 =IF(I2="","",SUM($J$1:$J1)) A5:C15 A5 =IF(ROW()-ROW($A$4)>SUM($J$2:$J$99),"",INDEX(INDIRECT("'"&INDEX($I$2:$I$99,MATCH(ROW()-ROW($A$4)-1,$K$2:$K$99,1))&"'!$A$5:$c$99"),AGGREGATE(15,6,INDIRECT("'"&INDEX($I$2:$I$99,MATCH(ROW()-ROW($A$4)-1,$K$2:$K$99,1))&"'!$C$5:$C$99"),(ROW()-ROW($A$4))-(INDEX($K$2:$K$99,MATCH(ROW()-ROW($A$4)-1,$K$2:$K$99,1)))),COLUMN()))