Hi,
I have a table, from column A to E. The results I want to achieve is from column H to S. The only way I could think of is using sumifs+sumifs across the columns, but I have at least 30 columns in my actual database
Thanks in advance!
I have a table, from column A to E. The results I want to achieve is from column H to S. The only way I could think of is using sumifs+sumifs across the columns, but I have at least 30 columns in my actual database
sample3.xlsx | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | |||
1 | Fruits | Apple | Orange | Apple | Grape | Transport | Car | Truck | Total | ||||||||||||
2 | Unit of measurement | kg | tonne | tonne | kg | kg | tonne | kg | tonne | ||||||||||||
3 | Transport | Car | Car | Truck | Truck | Apple | 15 | 10 | 10 | 35 | |||||||||||
4 | Sent to | Singapore | Germany | Singapore | Germany | Orange | 9 | 8 | 17 | ||||||||||||
5 | Taken by | John | Peter | Liam | Amy | Grape | 11 | 6 | 17 | ||||||||||||
6 | Jul 22 - Sep 22 | 7 | Cherry | 19 | 19 | ||||||||||||||||
7 | Oct 22 - Dec 22 | 8 | 10 | 88 | |||||||||||||||||
8 | Jan 23 - Mar 23 | 9 | 11 | ||||||||||||||||||
9 | Apr 23 - Jun 23 | Sent to | Singapore | Germany | Total | ||||||||||||||||
10 | Total | 15 | 9 | 10 | 11 | kg | tonne | kg | tonne | ||||||||||||
11 | Apple | 15 | 20 | 35 | |||||||||||||||||
12 | Fruits | Orange | Cherry | Apple | Orange | 8 | 9 | 17 | |||||||||||||
13 | Unit of measurement | kg | kg | tonne | Grape | 11 | 6 | 17 | |||||||||||||
14 | Transport | Truck | Truck | Car | Cherry | 19 | 19 | ||||||||||||||
15 | Sent to | Germany | Germany | Singapore | 88 | ||||||||||||||||
16 | Taken by | John | Peter | Linda | |||||||||||||||||
17 | Jul 22 - Sep 22 | 5 | |||||||||||||||||||
18 | Oct 22 - Dec 22 | 9 | Taken by | John | Peter | Liam | Amy | Linda | Total | ||||||||||||
19 | Jan 23 - Mar 23 | 8 | 10 | kg | tonne | kg | tonne | kg | tonne | kg | tonne | kg | tonne | ||||||||
20 | Apr 23 - Jun 23 | 2 | Apple | 15 | 10 | 3 | 7 | 35 | |||||||||||||
21 | Total | 8 | 19 | 7 | 0 | Orange | 8 | 9 | 17 | ||||||||||||
22 | Grape | 6 | 11 | 17 | |||||||||||||||||
23 | Fruits | Apple | Grape | Cherry | 19 | 19 | |||||||||||||||
24 | Unit of measurement | tonne | tonne | 88 | |||||||||||||||||
25 | Transport | Car | Truck | ||||||||||||||||||
26 | Sent to | Singapore | Germany | ||||||||||||||||||
27 | Taken by | Amy | Peter | ||||||||||||||||||
28 | Jul 22 - Sep 22 | 2 | 1 | ||||||||||||||||||
29 | Oct 22 - Dec 22 | 1 | |||||||||||||||||||
30 | Jan 23 - Mar 23 | 5 | |||||||||||||||||||
31 | Apr 23 - Jun 23 | ||||||||||||||||||||
32 | Total | 0 | 3 | 6 | 0 | ||||||||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
I3 | I3 | =B10 |
L3,K14 | L3 | =D10 |
J3 | J3 | =D21+C32 |
J4 | J4 | =C10 |
L5 | L5 | =D32 |
K4 | K4 | =B21 |
K5 | K5 | =E10 |
K6 | K6 | =C21 |
M11:M14,M3:M6 | M3 | =SUM(I3:L3) |
M7,B32:E32,S24,B21:E21,M15,B10:E10 | M7 | =SUM(M3:M6) |
I11 | I11 | =B10 |
J11 | J11 | =C32+D10+D21 |
L12 | L12 | =C10 |
L13 | L13 | =D32 |
K12 | K12 | =B21 |
K13 | K13 | =E10 |
N20 | N20 | =D10 |
P20 | P20 | =C32 |
R20 | R20 | =D21 |
I20 | I20 | =B10 |
I21 | I21 | =B21 |
L21 | L21 | =C10 |
L22 | L22 | =D32 |
O22 | O22 | =E10 |
K23 | K23 | =C21 |
S20:S23 | S20 | =SUM(I20:R20) |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
A1:S32 | Any value |
Thanks in advance!