I feel like there is a real simple solution to this, but I cannot for the life of me come up with something simpler...
I have a table that shows customer demand by part number over a number of weeks. I breakdown the full part number into a "base part number", which effectively removes which color the part is. I have several "Common Process Groups" that contain base part numbers. Base part numbers can appear in multiple CPG's. I'd like to sum the customer demand by CPG, by week. The formula i'm using seems a bit archaic.
The customer demand is found on the "830" tab and a breakdown of the CPG's is on the CPG tab.
Using Windows 10 and Excel 2016 64-bit
Here is the portion of the 830 table
And a portion of the CPG tab
I have a table that shows customer demand by part number over a number of weeks. I breakdown the full part number into a "base part number", which effectively removes which color the part is. I have several "Common Process Groups" that contain base part numbers. Base part numbers can appear in multiple CPG's. I'd like to sum the customer demand by CPG, by week. The formula i'm using seems a bit archaic.
The customer demand is found on the "830" tab and a breakdown of the CPG's is on the CPG tab.
Using Windows 10 and Excel 2016 64-bit
Here is the portion of the 830 table
BASEPN | Customer Part# | WK1 | WK2 | WK3 | WK4 | WK5 | WK6 | WK7 | WK8 | WK9 | WK10 | WK11 |
6AD66 | 6AD66DX8AH | 296 | 41 | 95 | 59 | 32 | 28 | 31 | 22 | 22 | 27 | 39 |
6AD66 | 6AD66GW7AH | 30 | 32 | 88 | 55 | 30 | 27 | 31 | 18 | 21 | 32 | 40 |
6AD66 | 6AD66JSCAH | 8 | 13 | 36 | 22 | 15 | 16 | 13 | 9 | 10 | 16 | 25 |
6AD66 | 6AD66LAUAH | 176 | 35 | 43 | 29 | 17 | 16 | 14 | 8 | 8 | 13 | 20 |
6AD66 | 6AD66MBJAH | 19 | 27 | 62 | 24 | 9 | 8 | 6 | 1 | 5 | 7 | 8 |
6AD66 | 6AD66MRCAH | 17 | 19 | 49 | 26 | 15 | 15 | 14 | 9 | 11 | 14 | 20 |
6AD66 | 6AD66PDNAH | 22 | 30 | 72 | 36 | 14 | 13 | 11 | 5 | 10 | 13 | 15 |
6AD66 | 6AD66RUAAH | 19 | 37 | 83 | 31 | 11 | 11 | 8 | 4 | 6 | 9 | 12 |
6AD66 | 6AD66SE4AH | 13 | 26 | 33 | 4 | |||||||
6AD66 | 6AD66VGVAH | 23 | 52 | 77 | 39 | 17 | 17 | 13 | 5 | 7 | 10 | 12 |
6AD67 | 6AD67DX8AH | 296 | 41 | 95 | 59 | 32 | 28 | 31 | 22 | 22 | 27 | 39 |
6AD67 | 6AD67GW7AH | 30 | 32 | 88 | 55 | 30 | 27 | 31 | 18 | 21 | 32 | 40 |
6AD67 | 6AD67JSCAH | 8 | 13 | 36 | 22 | 15 | 16 | 13 | 9 | 10 | 16 | 25 |
6AD67 | 6AD67LAUAH | 176 | 35 | 43 | 29 | 17 | 16 | 14 | 8 | 8 | 13 | 20 |
6AD67 | 6AD67MBJAH | 19 | 27 | 62 | 24 | 9 | 8 | 6 | 1 | 5 | 7 | 8 |
6AD67 | 6AD67MRCAH | 17 | 19 | 49 | 26 | 15 | 15 | 14 | 9 | 11 | 14 | 20 |
6AD67 | 6AD67PDNAH | 22 | 30 | 72 | 36 | 14 | 13 | 11 | 5 | 10 | 13 | 15 |
6AD67 | 6AD67RUAAH | 19 | 37 | 83 | 31 | 11 | 11 | 8 | 4 | 6 | 9 | 12 |
And a portion of the CPG tab
JL 830 REPORT 2.xlsx | |||||||||
---|---|---|---|---|---|---|---|---|---|
D | E | F | G | H | I | J | |||
1 | TYPE | RRLH | RRLH | RRLH | RRLH | RRLH | RRLH | ||
2 | CPG | CP00026727 | CP00026728 | CP00026729 | CP00026730 | CP00025534 | CP00025535 | ||
3 | MAX | 7824 | 4590 | 1200 | 4590 | 1772 | 1274 | ||
4 | 6AD79 | 6CE79 | 6CE79 | 6SW11 | 6QD81 | 6JX39 | |||
5 | 6SW11 | 6CE87 | 6CE87 | 6TY95 | 6QB15 | 6JX41 | |||
6 | 6EK15 | 6EK15 | 6SW09 | ||||||
7 | 6AD87 | 6AD87 | |||||||
8 | 6ZC51 | 6AD79 | |||||||
9 | 6TY95 | 6AD75 | |||||||
10 | 6AD75 | ||||||||
11 | 6SW09 | ||||||||
12 | |||||||||
13 | |||||||||
14 | |||||||||
15 | |||||||||
16 | |||||||||
17 | |||||||||
18 | |||||||||
20 | WK2 | 0 | 0 | 0 | 0 | 794 | 648 | ||
21 | WK3 | 2629 | 4043 | 1414 | 0 | 1388 | 636 | ||
22 | WK4 | 2494 | 3913 | 1419 | 0 | 1340 | 663 | ||
23 | WK5 | 2009 | 3334 | 1325 | 0 | 1333 | 669 | ||
24 | WK6 | 2066 | 3392 | 1326 | 0 | 1290 | 686 | ||
25 | WK7 | 2131 | 3546 | 1426 | 0 | 866 | 965 | ||
26 | WK8 | 1412 | 2649 | 1263 | 0 | 359 | 724 | ||
27 | WK9 | 1969 | 3219 | 1275 | 0 | 561 | 596 | ||
28 | WK10 | 2103 | 3394 | 1319 | 0 | 947 | 654 | ||
29 | WK11 | 2403 | 3681 | 1375 | 55 | 1039 | 862 | ||
CPG |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E20:J20 | E20 | =SUMIFS(RELEASE[WK2],RELEASE[BASEPN],E$4)+SUMIFS(RELEASE[WK2],RELEASE[BASEPN],E$5)+SUMIFS(RELEASE[WK2],RELEASE[BASEPN],E$6)+SUMIFS(RELEASE[WK2],RELEASE[BASEPN],E$7)+SUMIFS(RELEASE[WK2],RELEASE[BASEPN],E$8)+SUMIFS(RELEASE[WK2],RELEASE[BASEPN],E$9)+SUMIFS(RELEASE[WK2],RELEASE[BASEPN],E$10)+SUMIFS(RELEASE[WK2],RELEASE[BASEPN],E$11)+SUMIFS(RELEASE[WK2],RELEASE[BASEPN],E$12)+SUMIFS(RELEASE[WK2],RELEASE[BASEPN],E$13)+SUMIFS(RELEASE[WK2],RELEASE[BASEPN],E$14)+SUMIFS(RELEASE[WK2],RELEASE[BASEPN],E$15)+SUMIFS(RELEASE[WK2],RELEASE[BASEPN],E$16) |
E21:J21 | E21 | =SUMIFS(RELEASE[WK3],RELEASE[BASEPN],E$4)+SUMIFS(RELEASE[WK3],RELEASE[BASEPN],E$5)+SUMIFS(RELEASE[WK3],RELEASE[BASEPN],E$6)+SUMIFS(RELEASE[WK3],RELEASE[BASEPN],E$7)+SUMIFS(RELEASE[WK3],RELEASE[BASEPN],E$8)+SUMIFS(RELEASE[WK3],RELEASE[BASEPN],E$9)+SUMIFS(RELEASE[WK3],RELEASE[BASEPN],E$10)+SUMIFS(RELEASE[WK3],RELEASE[BASEPN],E$11)+SUMIFS(RELEASE[WK3],RELEASE[BASEPN],E$12)+SUMIFS(RELEASE[WK3],RELEASE[BASEPN],E$13)+SUMIFS(RELEASE[WK3],RELEASE[BASEPN],E$14)+SUMIFS(RELEASE[WK3],RELEASE[BASEPN],E$15)+SUMIFS(RELEASE[WK3],RELEASE[BASEPN],E$16) |
E22:J22 | E22 | =SUMIFS(RELEASE[WK4],RELEASE[BASEPN],E$4)+SUMIFS(RELEASE[WK4],RELEASE[BASEPN],E$5)+SUMIFS(RELEASE[WK4],RELEASE[BASEPN],E$6)+SUMIFS(RELEASE[WK4],RELEASE[BASEPN],E$7)+SUMIFS(RELEASE[WK4],RELEASE[BASEPN],E$8)+SUMIFS(RELEASE[WK4],RELEASE[BASEPN],E$9)+SUMIFS(RELEASE[WK4],RELEASE[BASEPN],E$10)+SUMIFS(RELEASE[WK4],RELEASE[BASEPN],E$11)+SUMIFS(RELEASE[WK4],RELEASE[BASEPN],E$12)+SUMIFS(RELEASE[WK4],RELEASE[BASEPN],E$13)+SUMIFS(RELEASE[WK4],RELEASE[BASEPN],E$14)+SUMIFS(RELEASE[WK4],RELEASE[BASEPN],E$15)+SUMIFS(RELEASE[WK4],RELEASE[BASEPN],E$16) |
E23:J23 | E23 | =SUMIFS(RELEASE[WK5],RELEASE[BASEPN],E$4)+SUMIFS(RELEASE[WK5],RELEASE[BASEPN],E$5)+SUMIFS(RELEASE[WK5],RELEASE[BASEPN],E$6)+SUMIFS(RELEASE[WK5],RELEASE[BASEPN],E$7)+SUMIFS(RELEASE[WK5],RELEASE[BASEPN],E$8)+SUMIFS(RELEASE[WK5],RELEASE[BASEPN],E$9)+SUMIFS(RELEASE[WK5],RELEASE[BASEPN],E$10)+SUMIFS(RELEASE[WK5],RELEASE[BASEPN],E$11)+SUMIFS(RELEASE[WK5],RELEASE[BASEPN],E$12)+SUMIFS(RELEASE[WK5],RELEASE[BASEPN],E$13)+SUMIFS(RELEASE[WK5],RELEASE[BASEPN],E$14)+SUMIFS(RELEASE[WK5],RELEASE[BASEPN],E$15)+SUMIFS(RELEASE[WK5],RELEASE[BASEPN],E$16) |
E24:J24 | E24 | =SUMIFS(RELEASE[WK6],RELEASE[BASEPN],E$4)+SUMIFS(RELEASE[WK6],RELEASE[BASEPN],E$5)+SUMIFS(RELEASE[WK6],RELEASE[BASEPN],E$6)+SUMIFS(RELEASE[WK6],RELEASE[BASEPN],E$7)+SUMIFS(RELEASE[WK6],RELEASE[BASEPN],E$8)+SUMIFS(RELEASE[WK6],RELEASE[BASEPN],E$9)+SUMIFS(RELEASE[WK6],RELEASE[BASEPN],E$10)+SUMIFS(RELEASE[WK6],RELEASE[BASEPN],E$11)+SUMIFS(RELEASE[WK6],RELEASE[BASEPN],E$12)+SUMIFS(RELEASE[WK6],RELEASE[BASEPN],E$13)+SUMIFS(RELEASE[WK6],RELEASE[BASEPN],E$14)+SUMIFS(RELEASE[WK6],RELEASE[BASEPN],E$15)+SUMIFS(RELEASE[WK6],RELEASE[BASEPN],E$16) |
E25:J25 | E25 | =SUMIFS(RELEASE[WK7],RELEASE[BASEPN],E$4)+SUMIFS(RELEASE[WK7],RELEASE[BASEPN],E$5)+SUMIFS(RELEASE[WK7],RELEASE[BASEPN],E$6)+SUMIFS(RELEASE[WK7],RELEASE[BASEPN],E$7)+SUMIFS(RELEASE[WK7],RELEASE[BASEPN],E$8)+SUMIFS(RELEASE[WK7],RELEASE[BASEPN],E$9)+SUMIFS(RELEASE[WK7],RELEASE[BASEPN],E$10)+SUMIFS(RELEASE[WK7],RELEASE[BASEPN],E$11)+SUMIFS(RELEASE[WK7],RELEASE[BASEPN],E$12)+SUMIFS(RELEASE[WK7],RELEASE[BASEPN],E$13)+SUMIFS(RELEASE[WK7],RELEASE[BASEPN],E$14)+SUMIFS(RELEASE[WK7],RELEASE[BASEPN],E$15)+SUMIFS(RELEASE[WK7],RELEASE[BASEPN],E$16) |
E26:J26 | E26 | =SUMIFS(RELEASE[WK8],RELEASE[BASEPN],E$4)+SUMIFS(RELEASE[WK8],RELEASE[BASEPN],E$5)+SUMIFS(RELEASE[WK8],RELEASE[BASEPN],E$6)+SUMIFS(RELEASE[WK8],RELEASE[BASEPN],E$7)+SUMIFS(RELEASE[WK8],RELEASE[BASEPN],E$8)+SUMIFS(RELEASE[WK8],RELEASE[BASEPN],E$9)+SUMIFS(RELEASE[WK8],RELEASE[BASEPN],E$10)+SUMIFS(RELEASE[WK8],RELEASE[BASEPN],E$11)+SUMIFS(RELEASE[WK8],RELEASE[BASEPN],E$12)+SUMIFS(RELEASE[WK8],RELEASE[BASEPN],E$13)+SUMIFS(RELEASE[WK8],RELEASE[BASEPN],E$14)+SUMIFS(RELEASE[WK8],RELEASE[BASEPN],E$15)+SUMIFS(RELEASE[WK8],RELEASE[BASEPN],E$16) |
E27:J27 | E27 | =SUMIFS(RELEASE[WK9],RELEASE[BASEPN],E$4)+SUMIFS(RELEASE[WK9],RELEASE[BASEPN],E$5)+SUMIFS(RELEASE[WK9],RELEASE[BASEPN],E$6)+SUMIFS(RELEASE[WK9],RELEASE[BASEPN],E$7)+SUMIFS(RELEASE[WK9],RELEASE[BASEPN],E$8)+SUMIFS(RELEASE[WK9],RELEASE[BASEPN],E$9)+SUMIFS(RELEASE[WK9],RELEASE[BASEPN],E$10)+SUMIFS(RELEASE[WK9],RELEASE[BASEPN],E$11)+SUMIFS(RELEASE[WK9],RELEASE[BASEPN],E$12)+SUMIFS(RELEASE[WK9],RELEASE[BASEPN],E$13)+SUMIFS(RELEASE[WK9],RELEASE[BASEPN],E$14)+SUMIFS(RELEASE[WK9],RELEASE[BASEPN],E$15)+SUMIFS(RELEASE[WK9],RELEASE[BASEPN],E$16) |
E28:J28 | E28 | =SUMIFS(RELEASE[WK10],RELEASE[BASEPN],E$4)+SUMIFS(RELEASE[WK10],RELEASE[BASEPN],E$5)+SUMIFS(RELEASE[WK10],RELEASE[BASEPN],E$6)+SUMIFS(RELEASE[WK10],RELEASE[BASEPN],E$7)+SUMIFS(RELEASE[WK10],RELEASE[BASEPN],E$8)+SUMIFS(RELEASE[WK10],RELEASE[BASEPN],E$9)+SUMIFS(RELEASE[WK10],RELEASE[BASEPN],E$10)+SUMIFS(RELEASE[WK10],RELEASE[BASEPN],E$11)+SUMIFS(RELEASE[WK10],RELEASE[BASEPN],E$12)+SUMIFS(RELEASE[WK10],RELEASE[BASEPN],E$13)+SUMIFS(RELEASE[WK10],RELEASE[BASEPN],E$14)+SUMIFS(RELEASE[WK10],RELEASE[BASEPN],E$15)+SUMIFS(RELEASE[WK10],RELEASE[BASEPN],E$16) |
E29:J29 | E29 | =SUMIFS(RELEASE[WK11],RELEASE[BASEPN],E$4)+SUMIFS(RELEASE[WK11],RELEASE[BASEPN],E$5)+SUMIFS(RELEASE[WK11],RELEASE[BASEPN],E$6)+SUMIFS(RELEASE[WK11],RELEASE[BASEPN],E$7)+SUMIFS(RELEASE[WK11],RELEASE[BASEPN],E$8)+SUMIFS(RELEASE[WK11],RELEASE[BASEPN],E$9)+SUMIFS(RELEASE[WK11],RELEASE[BASEPN],E$10)+SUMIFS(RELEASE[WK11],RELEASE[BASEPN],E$11)+SUMIFS(RELEASE[WK11],RELEASE[BASEPN],E$12)+SUMIFS(RELEASE[WK11],RELEASE[BASEPN],E$13)+SUMIFS(RELEASE[WK11],RELEASE[BASEPN],E$14)+SUMIFS(RELEASE[WK11],RELEASE[BASEPN],E$15)+SUMIFS(RELEASE[WK11],RELEASE[BASEPN],E$16) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
E19:AB29 | Cell Value | >E$3 | text | NO |