Unlucky
Board Regular
- Joined
- Dec 3, 2014
- Messages
- 58
- Office Version
- 2016
- Platform
- Windows
I was able to flesh out the most common occurrences, but ran into difficulty when I wanted to add another criteria. Basically, I am having trouble with the formula for adding criteria to the most common, 2nd most common, etc. Here are my source tables and sorting tables. The additional criterial is finding the most common, 2nd most common, etc. defect.
TEST LOG FOR FORMULAS.xlsx | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | |||
1 | RAW DATA FROM WORKLOAD TRACKER | |||||||||||||||
2 | CY | FY | WEEK | DATE | 1st SHIFT | 2nd SHIFT | PROGRAM | VARIANT | SERIAL | CATEGORY | JOB COMPLETED | ABBREVIATED CATEGORY | ACCEPT / REJECT / WAIVE | HOURS | ||
3 | 2022 | 2022 | 2 | 2-Jan-22 | 1 | ABC | ABC_688 | 688812 | ABC_ADMIN | Process Review | ADMIN | REJECTED | 2.00 | |||
4 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | CBR | AMG | AMG0022 | CBR_GARAGE | Top Water Rechecks | GARAGE | REJECTED | 1.00 | |||
5 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | QRST | QRST_M2 | 2QRST0208A | QRST_ADMIN | FORM 2408 | ADMIN | ACCEPTED | 0.50 | |||
6 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | XYZ | XYZ_HEP | H1016 | XYZ_GARAGE | Drive Rechecks | GARAGE | ACCEPTED | 1.00 | |||
7 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | QRST | QRST_M2 | 2QRST0179A | QRST_ADMIN | FORM 2408 | ADMIN | ACCEPTED | 0.50 | |||
8 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | PIP | PIP | PIP181 | PIP_GARAGE | Drive | GARAGE | REJECTED | 3.00 | |||
9 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | ABC | ABC_688 | 688805 | ABC_GARAGE | Garage ATI | GARAGE | REJECTED | 1.00 | |||
10 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | PIP | PIP | PIP184 | PIP_WELD | SRP/NSRP | WELD | ACCEPTED | 0.50 | |||
11 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | ABC | ABC_688 | 688815 | ABC_ADMIN | NCR | ADMIN | REJECTED | 0.50 | |||
12 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | CBR | ABC_688 | 688816 | CBR_ADMIN | NCR | ADMIN | REJECTED | 0.50 | |||
13 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | CBR | ABC_688 | 688817 | CBR_ADMIN | NCR | ADMIN | REJECTED | 0.50 | |||
14 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | PIP | PIP | PIP194 | PIP_WELD | Turnover | WELD | ACCEPTED | 0.50 | |||
15 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | CBR | AMC | AMC0030 | CBR_CSI | NATO | CSI | ACCEPTED | 0.50 | |||
16 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | CBR | AMM | AMM0026 | CBR_CSI | Steering | CSI | ACCEPTED | 0.50 | |||
17 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | CBR | AMC | AMC0041 | CBR_WELD | Final | WELD | ACCEPTED | 1.00 | |||
18 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | QRST | QRST_M2 | 2QRST0222A | CBR_TOP-WATER | Top water | TOP WATER | ACCEPTED | 0.50 | |||
19 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | PIP | PIP | PIP181 | PIP_GARAGE | Control tests | GARAGE | REJECTED | 1.00 | |||
20 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | ABC | ABC_688 | 688805 | ABC_GARAGE | Garage ATI Rechecks | GARAGE | ACCEPTED | 0.50 | |||
21 | 2022 | 2022 | 2 | 4-Jan-22 | 1 | PIP | PIP | PIP181 | PIP_GARAGE | Control tests | GARAGE | ACCEPTED | 0.50 | |||
22 | 2022 | 2022 | 2 | 5-Jan-22 | 1 | PIP | PIP | PIP188 | PIP_CSI | Steering | CSI | ACCEPTED | 0.50 | |||
23 | 2022 | 2022 | 2 | 5-Jan-22 | 1 | PIP | PIP_ADMIN | RFV | ADMIN | ACCEPTED | 0.50 | |||||
24 | 2022 | 2022 | 2 | 5-Jan-22 | 1 | PIP | PIP_ADMIN | RFV | ADMIN | ACCEPTED | 0.50 | |||||
25 | 2022 | 2022 | 2 | 5-Jan-22 | 1 | CBR | AMG | AMG0022 | CBR_GARAGE | Top Water Rechecks | GARAGE | ACCEPTED | 1.00 | |||
26 | 2022 | 2022 | 2 | 5-Jan-22 | 1 | CBR | AMG | AMG0022 | CBR_GARAGE | Drive | GARAGE | REJECTED | 2.50 | |||
27 | 2022 | 2022 | 2 | 5-Jan-22 | 1 | QRST | QRST_M2 | 2QRST0222A | QRST_PAINT | Paint | PAINT | REJECTED | 3.00 | |||
28 | 2022 | 2022 | 2 | 5-Jan-22 | 1 | QRST | QRST_M2 | 2QRST0221A | QRST_PAINT | Paint | PAINT | ACCEPTED | 0.50 | |||
29 | 2022 | 2022 | 2 | 5-Jan-22 | 1 | QRST | QRST_M2 | 2QRST0240A | QRST_GARAGE | Roll Off | GARAGE | ACCEPTED | 0.50 | |||
30 | 2022 | 2022 | 2 | 5-Jan-22 | 1 | QRST | QRST_M2 | 2QRST0241A | QRST_GARAGE | Roll Off | GARAGE | ACCEPTED | 0.50 | |||
31 | 2022 | 2022 | 2 | 5-Jan-22 | 1 | ABC | ABC_688 | 688823 | ABC_WELD | Final | WELD | ACCEPTED | 1.00 | |||
32 | 2022 | 2022 | 2 | 5-Jan-22 | 1 | CBR | AMM | AMM0027 | CBR_CSI | Steering | CSI | ACCEPTED | 0.50 | |||
33 | 2022 | 2022 | 2 | 6-Jan-22 | 1 | ABC | ABC_688 | 688806 | ABC_GARAGE | Garage ATI | GARAGE | REJECTED | 2.00 | |||
34 | 2022 | 2022 | 2 | 6-Jan-22 | 1 | CBR | AMM | AMM0027 | CBR_CSI | Steering | CSI | ACCEPTED | 0.50 | |||
35 | 2022 | 2022 | 2 | 6-Jan-22 | 1 | CBR | AMG | AMG0022 | CBR_GARAGE | Drive Rechecks | GARAGE | ACCEPTED | 0.50 | |||
36 | 2022 | 2022 | 2 | 6-Jan-22 | 1 | QRST | QRST_M2 | 2QRST0222A | QRST_GARAGE | Drive Rechecks | GARAGE | ACCEPTED | 0.50 | |||
37 | 2022 | 2022 | 2 | 6-Jan-22 | 1 | QRST | QRST_M2 | 2QRST0225A | CBR_TOP-WATER | Top water | TOP WATER | ACCEPTED | 0.50 | |||
38 | 2022 | 2022 | 2 | 7-Jan-22 | 1 | PIP | PIP | PIP194 | PIP_WELD | Turnover | WELD | ACCEPTED | 0.50 | |||
39 | 2022 | 2022 | 2 | 7-Jan-22 | 1 | CBR | AMC | AMC0030 | CBR_CSI | NATO | CSI | ACCEPTED | 0.50 | |||
40 | 2022 | 2022 | 2 | 7-Jan-22 | 1 | CBR | AMM | AMM0026 | CBR_CSI | Steering | CSI | ACCEPTED | 0.50 | |||
41 | 2022 | 2022 | 2 | 8-Jan-22 | 1 | CBR | AMC | AMC0041 | CBR_WELD | Final | WELD | ACCEPTED | 0.50 | |||
42 | 2022 | 2022 | 2 | 8-Jan-22 | 1 | QRST | QRST_M2 | 2QRST0222A | QRST_GARAGE | Drive Rechecks | GARAGE | ACCEPTED | 0.50 | |||
43 | 2022 | 2022 | 2 | 8-Jan-22 | 1 | QRST | QRST_M2 | 2QRST0225A | CBR_TOP-WATER | Top water | TOP WATER | ACCEPTED | 0.50 | |||
44 | 2022 | 2022 | 3 | 9-Jan-22 | 1 | CBR | AMG | AMG0022 | CBR_GARAGE | Drive Rechecks | GARAGE | ACCEPTED | 0.50 | |||
45 | 2022 | 2022 | 3 | 9-Jan-22 | 1 | ABC | ABC_688 | 688823 | ABC_WELD | Final | WELD | REJECTED | 0.50 | |||
46 | 2022 | 2022 | 3 | 9-Jan-22 | 1 | ABC | ABC_688 | 688823 | ABC_WELD | Final | WELD | REJECTED | 0.50 | |||
47 | 2022 | 2022 | 3 | 9-Jan-22 | 1 | ABC | ABC_688 | 688823 | ABC_WELD | Final | WELD | REJECTED | 0.50 | |||
TRACKER |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A3:A47 | A3 | =YEAR($D3) |
C3:C47 | C3 | =WEEKNUM($D3) |
TEST LOG FOR FORMULAS.xlsx | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | |||
1 | TOP 5 AUDIT AREA CATEGORIES BY PROGRAM | TOP 5 DEFECT AREA CATEGORIES BY PROGRAM | |||||||||||||
2 | TOP | SECOND | THIRD | FOURTH | FIFTH | REJECTED | TOP | SECOND | THIRD | FOURTH | FIFTH | ||||
3 | ABC | WELD | GARAGE | ADMIN | ABC | WELD | GARAGE | ADMIN | |||||||
4 | CBR | CSI | GARAGE | ADMIN | WELD | CBR | CSI | GARAGE | ADMIN | WELD | |||||
5 | QRST | GARAGE | TOP WATER | ADMIN | PAINT | QRST | GARAGE | TOP WATER | ADMIN | PAINT | |||||
6 | XYZ | GARAGE | XYZ | GARAGE | |||||||||||
7 | PIP | GARAGE | WELD | ADMIN | PIP | GARAGE | WELD | ADMIN | |||||||
8 | FACILITY | GARAGE | ADMIN | GARAGE | ADMIN | GARAGE | FACILITY | GARAGE | ADMIN | GARAGE | ADMIN | GARAGE | |||
9 | |||||||||||||||
10 | TOP 10 AREA CATEGORIES BY FACILITY | TOP 10 DEFECT CATEGORIES BY FACILITY | |||||||||||||
11 | CAT | QTY | RANK | ORDERED | CAT | ORDERED | CAT | QTY | RANK | ORDERED | CAT | ORDERED | |||
12 | ADMIN | 8 | 3 | 1 | CONTROL | 16 | ADMIN | 4 | 2 | 1 | GARAGE | 6 | |||
13 | CONTROL | 0 | 7 | 2 | WELD | 9 | CONTROL | 0 | 5 | 2 | ADMIN | 4 | |||
14 | CSI | 7 | 4 | 3 | ADMIN | 8 | CSI | 0 | 5 | 3 | WELD | 3 | |||
15 | GARAGE | 16 | 1 | 4 | CSI | 7 | GARAGE | 6 | 1 | 4 | PAINT | 1 | |||
16 | PACK | 0 | 7 | 5 | TOP WATER | 3 | PACK | 0 | 5 | 5 | CONTROL | 0 | |||
17 | PAINT | 2 | 6 | 6 | PAINT | 2 | PAINT | 1 | 4 | 6 | CONTROL | 0 | |||
18 | SWIM | 0 | 7 | 7 | CONTROL | 0 | SWIM | 0 | 5 | 7 | CONTROL | 0 | |||
19 | TOP WATER | 3 | 5 | 8 | CONTROL | 0 | TOP WATER | 0 | 5 | 8 | CONTROL | 0 | |||
20 | TURRET | 0 | 7 | 9 | CONTROL | 0 | TURRET | 0 | 5 | 9 | CONTROL | 0 | |||
21 | WELD | 9 | 2 | 10 | CONTROL | 0 | WELD | 3 | 3 | 10 | CONTROL | 0 | |||
TRACKER |
Cell Formulas | ||
---|---|---|
Range | Formula | |
Q3:Q7 | Q3 | =IFERROR(INDEX($L$3:$L$47,MODE(IF(($G$3:$G$47=$P3)*(COUNTIF($P3:$P3,$L$3:$L$47)=0),MATCH($L$3:$L$47,$L$3:$L$47,0)*{1,1}))),"") |
R3:R7 | R3 | =IFERROR(INDEX($L$3:$L$47,MODE(IF(($G$3:$G$47=$P3:$Q3)*(COUNTIF($P3:$Q3,$L$3:$L$47)=0),MATCH($L$3:$L$47,$L$3:$L$47,0)*{1,1}))),"") |
S3:S7 | S3 | =IFERROR(INDEX($L$3:$L$47,MODE(IF(($G$3:$G$47=$P3:$R3)*(COUNTIF($P3:$R3,$L$3:$L$47)=0),MATCH($L$3:$L$47,$L$3:$L$47,0)*{1,1}))),"") |
T3:T7 | T3 | =IFERROR(INDEX($L$3:$L$47,MODE(IF(($G$3:$G$47=$P3:$S3)*(COUNTIF($P3:$S3,$L$3:$L$47)=0),MATCH($L$3:$L$47,$L$3:$L$47,0)*{1,1}))),"") |
U3:U7 | U3 | =IFERROR(INDEX($L$3:$L$47,MODE(IF(($G$3:$G$47=$P3:$T3)*(COUNTIF($P3:$T3,$L$3:$L$47)=0),MATCH($L$3:$L$47,$L$3:$L$47,0)*{1,1}))),"") |
Q8,X8 | Q8 | =INDEX($L$3:$L$47,2) |
R8,Y8 | R8 | =INDEX($L$3:$L$47,3) |
S8,Z8 | S8 | =INDEX($L$3:$L$47,MODE(MATCH($L$3:$L$47,$L$3:$L$47,4))) |
T8,AA8 | T8 | =INDEX($L$3:$L$47,5) |
U8,AB8 | U8 | =INDEX($L$3:$L$47,6) |
X3:X7 | X3 | =IFERROR(INDEX($L$3:$L$47,MODE(IF(($G$3:$G$47=$W3)*(COUNTIF($W3:$W3,$L$3:$L$47)=0),MATCH($L$3:$L$47,$L$3:$L$47,0)*{1,1}))),"") |
Y3:Y7 | Y3 | =IFERROR(INDEX($L$3:$L$47,MODE(IF(($G$3:$G$47=$W3:$X3)*(COUNTIF($W3:$X3,$L$3:$L$47)=0),MATCH($L$3:$L$47,$L$3:$L$47,0)*{1,1}))),"") |
Z3:Z7 | Z3 | =IFERROR(INDEX($L$3:$L$47,MODE(IF(($G$3:$G$47=$W3:$Y3)*(COUNTIF($W3:$Y3,$L$3:$L$47)=0),MATCH($L$3:$L$47,$L$3:$L$47,0)*{1,1}))),"") |
AA3:AA7 | AA3 | =IFERROR(INDEX($L$3:$L$47,MODE(IF(($G$3:$G$47=$W3:$Z3)*(COUNTIF($W3:$Z3,$L$3:$L$47)=0),MATCH($L$3:$L$47,$L$3:$L$47,0)*{1,1}))),"") |
AB3:AB7 | AB3 | =IFERROR(INDEX($L$3:$L$47,MODE(IF(($G$3:$G$47=$W3:$AA3)*(COUNTIF($W3:$AA3,$L$3:$L$47)=0),MATCH($L$3:$L$47,$L$3:$L$47,0)*{1,1}))),"") |
Q12:Q21 | Q12 | =SUM(IF($L$3:$L$47=$P12,1,0)) |
R12:R21 | R12 | =RANK($Q12,$Q$12:$Q$21) |
T12 | T12 | =INDEX($P$12:$P$21,AGGREGATE(15,6,(ROW($P$12:$P$21)-ROW($P$12)+1)/($Q$12:$Q$21=LARGE($Q$12:$Q$21,ROWS(U12:U$21))),1)) |
U12 | U12 | =MAX($Q$12:$Q$21) |
T13 | T13 | =INDEX($P$12:$P$21,AGGREGATE(15,6,(ROW($P$12:$P$21)-ROW($P$12)+1)/($Q$12:$Q$21=LARGE($Q$12:$Q$21,ROWS(U12:U$13))),1)) |
U13 | U13 | =LARGE($Q$12:$Q$21,2) |
T14 | T14 | =INDEX($P$12:$P$21,AGGREGATE(15,6,(ROW($P$12:$P$21)-ROW($P$12)+1)/($Q$12:$Q$21=LARGE($Q$12:$Q$21,ROWS(U12:U$14))),1)) |
U14 | U14 | =LARGE($Q$12:$Q$21,3) |
T15 | T15 | =INDEX($P$12:$P$21,AGGREGATE(15,6,(ROW($P$12:$P$21)-ROW($P$12)+1)/($Q$12:$Q$21=LARGE($Q$12:$Q$21,ROWS(U12:U$15))),1)) |
U15 | U15 | =LARGE($Q$12:$Q$21,4) |
T16 | T16 | =INDEX($P$12:$P$21,AGGREGATE(15,6,(ROW($P$12:$P$21)-ROW($P$12)+1)/($Q$12:$Q$21=LARGE($Q$12:$Q$21,ROWS(U12:U$16))),1)) |
U16 | U16 | =LARGE($Q$12:$Q$21,5) |
T17 | T17 | =INDEX($P$12:$P$21,AGGREGATE(15,6,(ROW($P$12:$P$21)-ROW($P$12)+1)/($Q$12:$Q$21=LARGE($Q$12:$Q$21,ROWS(U12:U$17))),1)) |
U17 | U17 | =LARGE($Q$12:$Q$21,6) |
T18 | T18 | =INDEX($P$12:$P$21,AGGREGATE(15,6,(ROW($P$12:$P$21)-ROW($P$12)+1)/($Q$12:$Q$21=LARGE($Q$12:$Q$21,ROWS(U12:U$18))),1)) |
U18 | U18 | =LARGE($Q$12:$Q$21,7) |
T19 | T19 | =INDEX($P$12:$P$21,AGGREGATE(15,6,(ROW($P$12:$P$21)-ROW($P$12)+1)/($Q$12:$Q$21=LARGE($Q$12:$Q$21,ROWS(U12:U$19))),1)) |
U19 | U19 | =LARGE($Q$12:$Q$21,8) |
T20 | T20 | =INDEX($P$12:$P$21,AGGREGATE(15,6,(ROW($P$12:$P$21)-ROW($P$12)+1)/($Q$12:$Q$21=LARGE($Q$12:$Q$21,ROWS(U12:U$20))),1)) |
U20 | U20 | =LARGE($Q$12:$Q$21,9) |
T21 | T21 | =INDEX($P$12:$P$21,AGGREGATE(15,6,(ROW($P$12:$P$21)-ROW($P$12)+1)/($Q$12:$Q$21=LARGE($Q$12:$Q$21,ROWS(U12:U$21))),1)) |
U21 | U21 | =MIN($Q$12:$Q$21) |
X12:X21 | X12 | =COUNTIFS($L$3:$L$47,$W12,$M$3:$M$47,$W$2) |
Y12:Y21 | Y12 | =RANK($X12,$X$12:$X$21) |
AA12:AA21 | AA12 | =INDEX($W$12:$W$21,AGGREGATE(15,6,(ROW($W$12:$W$21)-ROW($W$12)+1)/($X$12:$X$21=LARGE($X$12:$X$21,ROWS(AB$12:AB12))),1)) |
AB12 | AB12 | =MAX($X$12:$X$21) |
AB13 | AB13 | =LARGE($X$12:$X$21,2) |
AB14 | AB14 | =LARGE($X$12:$X$21,3) |
AB15 | AB15 | =LARGE($X$12:$X$21,4) |
AB16 | AB16 | =LARGE($X$12:$X$21,5) |
AB17 | AB17 | =LARGE($X$12:$X$21,6) |
AB18 | AB18 | =LARGE($X$12:$X$21,7) |
AB19 | AB19 | =LARGE($X$12:$X$21,8) |
AB20 | AB20 | =LARGE($X$12:$X$21,9) |
AB21 | AB21 | =MIN($X$12:$X$21) |
Press CTRL+SHIFT+ENTER to enter array formulas. |