Complicated countif formula

Ev1lZer0

New Member
Joined
Sep 26, 2022
Messages
38
Office Version
  1. 365
Platform
  1. Windows
Good Morning,

I have a list of 22,528 docket description entries (Column F), most of which are useless. My goal is to extract the number of times certain text appears. And for excel to do it automatically. For instance. I am hoping that Excel can create another table (similar to G2:I4 - without the colors...) that would include a list of EVERY instance column F shows "Judge: . . ." I would then want Excel to take the entire contents of that cell and place it in column H. For instance, F5 and F10 both contain "JUDGE: TUTSCH, ELISABETH M" this should be listed ONCE in column H - as it is in H2.

Additionally, I want excel to count the number of instances this exact text appears in column F. In my example, it appears 17 times. But there is a catch. I only want it to count that exact text once per "Case Key" instance. In my example, "JUDGE: TUTSCH, ELISABETH M" appears 17 times, but only in 3 different case keys.

If it is easier, all rows containing something other than "Judge: . . ." can be deleted.

Book1
ABCDEFGHI
1Case Court InitialsCase KeyCase NumberDocket DateDocket CodeSub Docket Desc TextResults I WANT
2S3917786943019-1-00687-69/21/2022JTRIALBERS) SC2 Contains: JUDGE: SWAN, JEFFERY74
3S3917786943019-1-00687-69/21/2022JTRIAL(BM) JRY DELIBERATED; VERDICT REACH Contains: JUDGE: TUTSCH, ELISABETH M173
4S3917786943019-1-00687-69/21/2022JTRIALED; GUILTY CNT 1; GUILTY CNT-2; CRT Contains: JUDGE: HARTHCOCK, GAYLE M11
5S3917786943019-1-00687-69/21/2022JTRIALJUDGE: TUTSCH, ELISABETH M
6S3917786943019-1-00687-69/21/2022JTRIALREPORTED BY J.MOORE (WICKES / CHAM
7S3917786943019-1-00687-69/21/2022JTRIAL. THNKD JRY AND THEY WERE RELEASED;
8S3917786943019-1-00687-69/20/2022JTRIALAN DELIBERATIONS; REPORTED BY J. MO
9S3917786943019-1-00687-69/20/2022JTRIAL(BM) CRT. READ JURY INSTRUCTIONS; C
10S3917786943019-1-00687-69/20/2022JTRIALJUDGE: TUTSCH, ELISABETH M
11S3917786943019-1-00687-69/20/2022JTRIALORE (WIICKES / CHAMBERS) SC2
12S3917786943019-1-00687-69/20/2022JTRIALRT. HRD CLOSING ARGUMETNS; JURY BEG
13S3917786943019-1-00687-69/19/2022JTRIALAMBERS) SC2
14S3917786943019-1-00687-69/19/2022JTRIAL(BM) CRT. HRD TESTMNY; STATE RESTS;
15S3917786943019-1-00687-69/19/2022JTRIALCRT. HRD DEF TESTMNY; DEFENSE REST
16S3917786943019-1-00687-69/19/2022JTRIALJUDGE: TUTSCH, ELISABETH M
17S3917786943019-1-00687-69/19/2022JTRIALS; REPORTED BY J.MOORE (WICKES / CH
18S3917786943019-1-00687-69/16/2022JTRIAL(BM) CRT. HRD TESTMNY; REPORTED BY
19S3917786943019-1-00687-69/16/2022JTRIALJ.MOORE (WICKES / CHAMBERS) SC2
20S3917786943019-1-00687-69/16/2022JTRIALJUDGE: TUTSCH, ELISABETH M
21S3917786943019-1-00687-69/15/2022JTRIAL(BM) CRT. HRD TESTMNY; REPORTED BY
22S3917786943019-1-00687-69/15/2022JTRIALJ.MOORE (WICKES / CHAMBERS) SC2
23S3917786943019-1-00687-69/15/2022JTRIALJUDGE: TUTSCH, ELISABETH M
24S3917786943019-1-00687-69/14/2022JTRIAL(BM) CRT. HRD TESTMNY; REPORTED BY
25S3917786943019-1-00687-69/14/2022JTRIALJ.MOORE (WICKES / CHAMBERS) SC2
26S3917786943019-1-00687-69/14/2022JTRIALJUDGE: TUTSCH, ELISABETH M
27S3917786943019-1-00687-69/13/2022JTRIALALLNGES; JURY EMPANELLED; REPORTED
28S3917786943019-1-00687-69/13/2022JTRIAL(BM) CRT. HRD HARDSHIPS; PEREMPT CH
29S3917786943019-1-00687-69/13/2022JTRIALBY J.MOORE (WICKES / CHAMBERS) SC2
30S3917786943019-1-00687-69/13/2022JTRIALJUDGE: TUTSCH, ELISABETH M
31S3917786943019-1-00687-69/12/2022JTRIAL(BM) JURY SELECTION BEGAN; HARDSHIP
32S3917786943019-1-00687-69/12/2022JTRIALHRD (WICKES / CHAMBERS) REPORTED B
33S3917786943019-1-00687-69/12/2022JTRIALJUDGE: TUTSCH, ELISABETH M
34S3917786943019-1-00687-69/12/2022JTRIALY J.MOORE; SC2
35S3917735880419-1-00048-78/31/2022JTRIAL(BM) JURY RESUMED DELIBERATIONS; VE
36S3917735880419-1-00048-78/31/2022JTRIALC2
37S3917735880419-1-00048-78/31/2022JTRIALJ.MOORE; JEREMY CHAMBERS INTERP; S
38S3917735880419-1-00048-78/31/2022JTRIALJUDGE: TUTSCH, ELISABETH M
39S3917735880419-1-00048-78/31/2022JTRIALPLUS AGGRIVATERS; SENT 10/12; ORD
40S3917735880419-1-00048-78/31/2022JTRIALRDICT REACHED; GUILTY ON ALL COUNTS
41S3917735880419-1-00048-78/31/2022JTRIALSIGND (HOLBROOK/OAKLEY) REPORTED BY
42S3917735880419-1-00048-78/30/2022JTRIAL(BM) CRT. READ JURY INSTRUCTIONS; C
43S3917735880419-1-00048-78/30/2022JTRIALDELIBERATIONS (HOLBROOK / OAKLEY)
44S3917735880419-1-00048-78/30/2022JTRIALJUDGE: TUTSCH, ELISABETH M
45S3917735880419-1-00048-78/30/2022JTRIALNTERP; SC2
46S3917735880419-1-00048-78/30/2022JTRIALREPORTED BY J.MOORE; DORA ORNELAS I
47S3917735880419-1-00048-78/30/2022JTRIALRT. HRD CLOSING ARGMNTS; JURY BEGAN
48S3917735880419-1-00048-78/29/2022JTRIALAKLEY) REPORTED BY J.MOORE; DORA OR
49S3917735880419-1-00048-78/29/2022JTRIAL(BM) CRT. HRD TESTMNY (HOLBROOK / O
50S3917735880419-1-00048-78/29/2022JTRIALJUDGE: TUTSCH, ELISABETH M
51S3917735880419-1-00048-78/29/2022JTRIALNELAS INTERP; SC2
52S3917735880419-1-00048-78/26/2022JTRIALAKLEY) REPORTED BY J. MOORE; INTERP
53S3917735880419-1-00048-78/26/2022JTRIAL(BM) CRT HRD. TESTMNY (HOLBROOK / O
54S3917735880419-1-00048-78/26/2022JTRIALJUDGE: TUTSCH, ELISABETH M
55S3917735880419-1-00048-78/26/2022JTRIALRETED BY DORA ORNELAS; SC2
56S3917735880419-1-00048-78/25/2022JTRIALAKLEY) REPORTED BY J. MOORE; INTERP
57S3917735880419-1-00048-78/25/2022JTRIAL(BM) CRT HRD. TESTMNY (HOLBROOK / O
58S3917735880419-1-00048-78/25/2022JTRIALJUDGE: TUTSCH, ELISABETH M
59S3917735880419-1-00048-78/25/2022JTRIALRETED BY DORA ORNELAS SC2
60S3917735880419-1-00048-78/24/2022JTRIAL(BM) VOIR DIRE WAS HRD; JURY EMPANE
61S3917735880419-1-00048-78/24/2022JTRIALEMY CHAMBERS; SC2
62S3917735880419-1-00048-78/24/2022JTRIAL; INTERPRETED BY DORA ORNELAS & JER
63S3917735880419-1-00048-78/24/2022JTRIALJUDGE: TUTSCH, ELISABETH M
64S3917735880419-1-00048-78/24/2022JTRIALLED; CRT. HRD OPENING STAMNTS (HOLB
65S3917735880419-1-00048-78/24/2022JTRIALROOK / OAKLEY) REPORTED BY J. MOORE
66S3917735880419-1-00048-78/23/2022JTRIAL(BM) JRY SELECTION; PRIVATE INTERVS
67S3917735880419-1-00048-78/23/2022JTRIALJUDGE: TUTSCH, ELISABETH M
68S3917735880419-1-00048-78/23/2022JTRIALS CHAVEZ & JEREMY CHAMBERS; SC2
69S3917735880419-1-00048-78/23/2022JTRIALTED BY J. MOORE; INTERPRTED BY JESU
70S3917735880419-1-00048-78/23/2022JTRIALWERE HRD (HOLBROOK / OAKLEY) REPOR
71S3917735880419-1-00048-78/22/2022JTRIAL2
72S3917735880419-1-00048-78/22/2022JTRIAL(BM) JRY SELECTION; HARDSHIP HRD (H
73S3917735880419-1-00048-78/22/2022JTRIAL(BM) JURY SELECTION BEGAN (HOLBROOK
74S3917735880419-1-00048-78/22/2022JTRIALCHAVEZ INTERP; SC2
75S3917735880419-1-00048-78/22/2022JTRIALJUDGE: TUTSCH, ELISABETH M
76S3917735880419-1-00048-78/22/2022JTRIAL/ OAKLEY) REPORTED BY J.MOORE; J.
77S3917735880419-1-00048-78/22/2022JTRIALOLBROOK / OAKLEY) REPORTED BY J. MO
78S3917735880419-1-00048-78/22/2022JTRIALORE; INTERPRTED BY JESUS CHAVEZ; SC
79S3917992914320-1-01217-98/5/2022JTRIALERED; EXHIBITS ENTERED / SWORN TEST
80S3917992914320-1-01217-98/5/2022JTRIALFTRSC2)
81S3917992914320-1-01217-98/5/2022JTRIALIMONY; ROBERTS/STATE; CASE/DEFENSE;
82S3917992914320-1-01217-98/5/2022JTRIALJUDGE: SWAN, JEFFERY
83S3917992914320-1-01217-98/5/2022JTRIALJURY TRIAL; VERDICT NOT GUILTYREND
84S3917992914320-1-01217-98/5/2022JTRIAL(SAR; G/S ORDER ON ACQUITTAL. 4 DAY
85S3918077930921-1-00621-56/27/2022JTRIALJUDGE: SWAN, JEFFERY
86S3918077930921-1-00621-56/27/2022JTRIAL(MM) WRITTEN MINUTES
87S3918179470922-1-00238-26/21/2022JTRIALJUDGE: TUTSCH, ELISABETH M
88S3918179470922-1-00238-26/21/2022JTRIAL(MM) WRITTEN MINUTES
89S3918111595621-1-01172-36/7/2022JTRIAL(BM/MM) WRITTEN MINUTES
90S3918111595621-1-01172-36/7/2022JTRIALJUDGE: HARTHCOCK, GAYLE M
91S3917937749420-1-00262-95/9/2022JTRIALJUDGE: SWAN, JEFFERY
92S3917937749420-1-00262-95/9/2022JTRIAL(MM) WRITTEN MINUTES
93S3917670471818-1-01653-94/18/2022JTRIAL(BM) CRT HRD TESTMNY (BARRETT / SCO
94S3917670471818-1-01653-94/18/2022JTRIALJUDGE: SWAN, JEFFERY
95S3917670471818-1-01653-94/18/2022JTRIALTT) REPORTED BY J.MOORE; SC2
96S3917670471818-1-01653-94/15/2022JTRIAL(BARRETT / SCOTT) REPORTED BY J.MO
97S3917670471818-1-01653-94/15/2022JTRIAL(BM) CRT HRD TESTMNY FROM WITNESSES
98S3917670471818-1-01653-94/15/2022JTRIALJUDGE: SWAN, JEFFERY
99S3917670471818-1-01653-94/15/2022JTRIALORE; SC2
100S3917670471818-1-01653-94/14/2022JTRIAL(BARRETT / SCOTT) REPORTED BY J.MO
101S3917670471818-1-01653-94/14/2022JTRIAL(BM) CRT HRD TESTMNY FROM WITNESSES
102S3917670471818-1-01653-94/14/2022JTRIALJUDGE: SWAN, JEFFERY
103S3917670471818-1-01653-94/14/2022JTRIALORE; SC2
104S3917670471818-1-01653-94/13/2022JTRIAL(BARRETT / SCOTT) REPORTED BY J.MO
105S3917670471818-1-01653-94/13/2022JTRIAL(BM) CRT HRD TESTMNY FROM WITNESSES
106S3917670471818-1-01653-94/13/2022JTRIALJUDGE: SWAN, JEFFERY
107S3917670471818-1-01653-94/13/2022JTRIALORE; SC2
Sheet1
Cell Formulas
RangeFormula
H2H2=COUNTIF(F2:F997,"*JUDGE: SWAN, JEFFERY*")
H3H3=COUNTIF(F3:F998,"*JUDGE: TUTSCH, ELISABETH M*")
H4H4=COUNTIF(F4:F999,"*JUDGE: HARTHCOCK, GAYLE M*")
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
How about
Fluff.xlsm
ABCDEFGHI
1Case Court InitialsCase KeyCase NumberDocket DateDocket CodeSub Docket Desc Text
2S3917786943019-1-00687-69/21/2022JTRIALBERS) SC2 JUDGE: TUTSCH, ELISABETH M 173
3S3917786943019-1-00687-69/21/2022JTRIAL(BM) JRY DELIBERATED; VERDICT REACH JUDGE: SWAN, JEFFERY 74
4S3917786943019-1-00687-69/21/2022JTRIALED; GUILTY CNT 1; GUILTY CNT-2; CRT JUDGE: HARTHCOCK, GAYLE M 11
5S3917786943019-1-00687-69/21/2022JTRIALJUDGE: TUTSCH, ELISABETH M
6S3917786943019-1-00687-69/21/2022JTRIALREPORTED BY J.MOORE (WICKES / CHAM
7S3917786943019-1-00687-69/21/2022JTRIAL. THNKD JRY AND THEY WERE RELEASED;
8S3917786943019-1-00687-69/20/2022JTRIALAN DELIBERATIONS; REPORTED BY J. MO
9S3917786943019-1-00687-69/20/2022JTRIAL(BM) CRT. READ JURY INSTRUCTIONS; C
10S3917786943019-1-00687-69/20/2022JTRIALJUDGE: TUTSCH, ELISABETH M
11S3917786943019-1-00687-69/20/2022JTRIALORE (WIICKES / CHAMBERS) SC2
12S3917786943019-1-00687-69/20/2022JTRIALRT. HRD CLOSING ARGUMETNS; JURY BEG
13S3917786943019-1-00687-69/19/2022JTRIALAMBERS) SC2
14S3917786943019-1-00687-69/19/2022JTRIAL(BM) CRT. HRD TESTMNY; STATE RESTS;
15S3917786943019-1-00687-69/19/2022JTRIALCRT. HRD DEF TESTMNY; DEFENSE REST
16S3917786943019-1-00687-69/19/2022JTRIALJUDGE: TUTSCH, ELISABETH M
17S3917786943019-1-00687-69/19/2022JTRIALS; REPORTED BY J.MOORE (WICKES / CH
18S3917786943019-1-00687-69/16/2022JTRIAL(BM) CRT. HRD TESTMNY; REPORTED BY
19S3917786943019-1-00687-69/16/2022JTRIALJ.MOORE (WICKES / CHAMBERS) SC2
20S3917786943019-1-00687-69/16/2022JTRIALJUDGE: TUTSCH, ELISABETH M
21S3917786943019-1-00687-69/15/2022JTRIAL(BM) CRT. HRD TESTMNY; REPORTED BY
22S3917786943019-1-00687-69/15/2022JTRIALJ.MOORE (WICKES / CHAMBERS) SC2
23S3917786943019-1-00687-69/15/2022JTRIALJUDGE: TUTSCH, ELISABETH M
24S3917786943019-1-00687-69/14/2022JTRIAL(BM) CRT. HRD TESTMNY; REPORTED BY
25S3917786943019-1-00687-69/14/2022JTRIALJ.MOORE (WICKES / CHAMBERS) SC2
26S3917786943019-1-00687-69/14/2022JTRIALJUDGE: TUTSCH, ELISABETH M
27S3917786943019-1-00687-69/13/2022JTRIALALLNGES; JURY EMPANELLED; REPORTED
28S3917786943019-1-00687-69/13/2022JTRIAL(BM) CRT. HRD HARDSHIPS; PEREMPT CH
29S3917786943019-1-00687-69/13/2022JTRIALBY J.MOORE (WICKES / CHAMBERS) SC2
30S3917786943019-1-00687-69/13/2022JTRIALJUDGE: TUTSCH, ELISABETH M
31S3917786943019-1-00687-609/12/2022JTRIAL(BM) JURY SELECTION BEGAN; HARDSHIP
32S3917786943019-1-00687-609/12/2022JTRIALHRD (WICKES / CHAMBERS) REPORTED B
33S3917786943019-1-00687-609/12/2022JTRIALJUDGE: TUTSCH, ELISABETH M
34S3917786943019-1-00687-609/12/2022JTRIALY J.MOORE; SC2
35S3917735880419-1-00048-78/31/2022JTRIAL(BM) JURY RESUMED DELIBERATIONS; VE
36S3917735880419-1-00048-78/31/2022JTRIALC2
37S3917735880419-1-00048-78/31/2022JTRIALJ.MOORE; JEREMY CHAMBERS INTERP; S
38S3917735880419-1-00048-78/31/2022JTRIALJUDGE: TUTSCH, ELISABETH M
39S3917735880419-1-00048-78/31/2022JTRIALPLUS AGGRIVATERS; SENT 10/12; ORD
40S3917735880419-1-00048-78/31/2022JTRIALRDICT REACHED; GUILTY ON ALL COUNTS
41S3917735880419-1-00048-78/31/2022JTRIALSIGND (HOLBROOK/OAKLEY) REPORTED BY
42S3917735880419-1-00048-78/30/2022JTRIAL(BM) CRT. READ JURY INSTRUCTIONS; C
43S3917735880419-1-00048-78/30/2022JTRIALDELIBERATIONS (HOLBROOK / OAKLEY)
44S3917735880419-1-00048-78/30/2022JTRIALJUDGE: TUTSCH, ELISABETH M
45S3917735880419-1-00048-78/30/2022JTRIALNTERP; SC2
46S3917735880419-1-00048-78/30/2022JTRIALREPORTED BY J.MOORE; DORA ORNELAS I
47S3917735880419-1-00048-78/30/2022JTRIALRT. HRD CLOSING ARGMNTS; JURY BEGAN
48S3917735880419-1-00048-78/29/2022JTRIALAKLEY) REPORTED BY J.MOORE; DORA OR
49S3917735880419-1-00048-78/29/2022JTRIAL(BM) CRT. HRD TESTMNY (HOLBROOK / O
50S3917735880419-1-00048-78/29/2022JTRIALJUDGE: TUTSCH, ELISABETH M
51S3917735880419-1-00048-78/29/2022JTRIALNELAS INTERP; SC2
52S3917735880419-1-00048-78/26/2022JTRIALAKLEY) REPORTED BY J. MOORE; INTERP
53S3917735880419-1-00048-78/26/2022JTRIAL(BM) CRT HRD. TESTMNY (HOLBROOK / O
54S3917735880419-1-00048-78/26/2022JTRIALJUDGE: TUTSCH, ELISABETH M
55S3917735880419-1-00048-78/26/2022JTRIALRETED BY DORA ORNELAS; SC2
56S3917735880419-1-00048-78/25/2022JTRIALAKLEY) REPORTED BY J. MOORE; INTERP
57S3917735880419-1-00048-78/25/2022JTRIAL(BM) CRT HRD. TESTMNY (HOLBROOK / O
58S3917735880419-1-00048-78/25/2022JTRIALJUDGE: TUTSCH, ELISABETH M
59S3917735880419-1-00048-78/25/2022JTRIALRETED BY DORA ORNELAS SC2
60S3917735880419-1-00048-78/24/2022JTRIAL(BM) VOIR DIRE WAS HRD; JURY EMPANE
61S3917735880419-1-00048-78/24/2022JTRIALEMY CHAMBERS; SC2
62S3917735880419-1-00048-78/24/2022JTRIAL; INTERPRETED BY DORA ORNELAS & JER
63S3917735880419-1-00048-78/24/2022JTRIALJUDGE: TUTSCH, ELISABETH M
64S3917735880419-1-00048-78/24/2022JTRIALLED; CRT. HRD OPENING STAMNTS (HOLB
65S3917735880419-1-00048-78/24/2022JTRIALROOK / OAKLEY) REPORTED BY J. MOORE
66S3917735880419-1-00048-78/23/2022JTRIAL(BM) JRY SELECTION; PRIVATE INTERVS
67S3917735880419-1-00048-78/23/2022JTRIALJUDGE: TUTSCH, ELISABETH M
68S3917735880419-1-00048-78/23/2022JTRIALS CHAVEZ & JEREMY CHAMBERS; SC2
69S3917735880419-1-00048-78/23/2022JTRIALTED BY J. MOORE; INTERPRTED BY JESU
70S3917735880419-1-00048-78/23/2022JTRIALWERE HRD (HOLBROOK / OAKLEY) REPOR
71S3917735880419-1-00048-78/22/2022JTRIAL2
72S3917735880419-1-00048-78/22/2022JTRIAL(BM) JRY SELECTION; HARDSHIP HRD (H
73S3917735880419-1-00048-78/22/2022JTRIAL(BM) JURY SELECTION BEGAN (HOLBROOK
74S3917735880419-1-00048-78/22/2022JTRIALCHAVEZ INTERP; SC2
75S3917735880419-1-00048-78/22/2022JTRIALJUDGE: TUTSCH, ELISABETH M
76S3917735880419-1-00048-78/22/2022JTRIAL/ OAKLEY) REPORTED BY J.MOORE; J.
77S3917735880419-1-00048-78/22/2022JTRIALOLBROOK / OAKLEY) REPORTED BY J. MO
78S3917735880419-1-00048-78/22/2022JTRIALORE; INTERPRTED BY JESUS CHAVEZ; SC
79S3917992914320-1-01217-908/05/2022JTRIALERED; EXHIBITS ENTERED / SWORN TEST
80S3917992914320-1-01217-908/05/2022JTRIALFTRSC2)
81S3917992914320-1-01217-908/05/2022JTRIALIMONY; ROBERTS/STATE; CASE/DEFENSE;
82S3917992914320-1-01217-908/05/2022JTRIALJUDGE: SWAN, JEFFERY
83S3917992914320-1-01217-908/05/2022JTRIALJURY TRIAL; VERDICT NOT GUILTYREND
84S3917992914320-1-01217-908/05/2022JTRIAL(SAR; G/S ORDER ON ACQUITTAL. 4 DAY
85S3918077930921-1-00621-56/27/2022JTRIALJUDGE: SWAN, JEFFERY
86S3918077930921-1-00621-56/27/2022JTRIAL(MM) WRITTEN MINUTES
87S3918179470922-1-00238-26/21/2022JTRIALJUDGE: TUTSCH, ELISABETH M
88S3918179470922-1-00238-26/21/2022JTRIAL(MM) WRITTEN MINUTES
89S3918111595621-1-01172-306/07/2022JTRIAL(BM/MM) WRITTEN MINUTES
90S3918111595621-1-01172-306/07/2022JTRIALJUDGE: HARTHCOCK, GAYLE M
91S3917937749420-1-00262-905/09/2022JTRIALJUDGE: SWAN, JEFFERY
92S3917937749420-1-00262-905/09/2022JTRIAL(MM) WRITTEN MINUTES
93S3917670471818-1-01653-94/18/2022JTRIAL(BM) CRT HRD TESTMNY (BARRETT / SCO
94S3917670471818-1-01653-94/18/2022JTRIALJUDGE: SWAN, JEFFERY
95S3917670471818-1-01653-94/18/2022JTRIALTT) REPORTED BY J.MOORE; SC2
96S3917670471818-1-01653-94/15/2022JTRIAL(BARRETT / SCOTT) REPORTED BY J.MO
97S3917670471818-1-01653-94/15/2022JTRIAL(BM) CRT HRD TESTMNY FROM WITNESSES
98S3917670471818-1-01653-94/15/2022JTRIALJUDGE: SWAN, JEFFERY
99S3917670471818-1-01653-94/15/2022JTRIALORE; SC2
100S3917670471818-1-01653-94/14/2022JTRIAL(BARRETT / SCOTT) REPORTED BY J.MO
101S3917670471818-1-01653-94/14/2022JTRIAL(BM) CRT HRD TESTMNY FROM WITNESSES
102S3917670471818-1-01653-94/14/2022JTRIALJUDGE: SWAN, JEFFERY
103S3917670471818-1-01653-94/14/2022JTRIALORE; SC2
104S3917670471818-1-01653-94/13/2022JTRIAL(BARRETT / SCOTT) REPORTED BY J.MO
105S3917670471818-1-01653-94/13/2022JTRIAL(BM) CRT HRD TESTMNY FROM WITNESSES
106S3917670471818-1-01653-94/13/2022JTRIALJUDGE: SWAN, JEFFERY
107S3917670471818-1-01653-94/13/2022JTRIALORE; SC2
Data
Cell Formulas
RangeFormula
G2:G4G2=UNIQUE(FILTER(F2:F107,LEFT(F2:F107,5)="judge"))
H2:H4H2=COUNTIF(F:F,G2)
I2:I4I2=COUNT(UNIQUE(FILTER($B$2:$B$1000,$F$2:$F$1000=G2)))
Dynamic array formulas.
 
Upvote 0
Solution
Power Query Solution

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Grouped Rows" = Table.Group(Source, {"Sub Docket Desc Text"}, {{"Count", each Table.RowCount(_), Int64.Type}})
in
    #"Grouped Rows"

Book5
ABCDEFGHI
1Case Court InitialsCase KeyCase NumberDocket DateDocket CodeSub Docket Desc TextSub Docket Desc TextCount
2S3917786943019-1-00687-69/21/2022JTRIALBERS) SC2 BERS) SC2 1
3S3917786943019-1-00687-69/21/2022JTRIAL(BM) JRY DELIBERATED; VERDICT REACH (BM) JRY DELIBERATED; VERDICT REACH 1
4S3917786943019-1-00687-69/21/2022JTRIALED; GUILTY CNT 1; GUILTY CNT-2; CRT ED; GUILTY CNT 1; GUILTY CNT-2; CRT 1
5S3917786943019-1-00687-69/21/2022JTRIALJUDGE: TUTSCH, ELISABETH M JUDGE: TUTSCH, ELISABETH M 17
6S3917786943019-1-00687-69/21/2022JTRIALREPORTED BY J.MOORE (WICKES / CHAM REPORTED BY J.MOORE (WICKES / CHAM 1
7S3917786943019-1-00687-69/21/2022JTRIAL. THNKD JRY AND THEY WERE RELEASED; . THNKD JRY AND THEY WERE RELEASED; 1
8S3917786943019-1-00687-69/20/2022JTRIALAN DELIBERATIONS; REPORTED BY J. MO AN DELIBERATIONS; REPORTED BY J. MO 1
9S3917786943019-1-00687-69/20/2022JTRIAL(BM) CRT. READ JURY INSTRUCTIONS; C (BM) CRT. READ JURY INSTRUCTIONS; C 2
10S3917786943019-1-00687-69/20/2022JTRIALJUDGE: TUTSCH, ELISABETH M ORE (WIICKES / CHAMBERS) SC2 1
11S3917786943019-1-00687-69/20/2022JTRIALORE (WIICKES / CHAMBERS) SC2 RT. HRD CLOSING ARGUMETNS; JURY BEG 1
12S3917786943019-1-00687-69/20/2022JTRIALRT. HRD CLOSING ARGUMETNS; JURY BEG AMBERS) SC2 1
13S3917786943019-1-00687-69/19/2022JTRIALAMBERS) SC2 (BM) CRT. HRD TESTMNY; STATE RESTS; 1
14S3917786943019-1-00687-69/19/2022JTRIAL(BM) CRT. HRD TESTMNY; STATE RESTS; CRT. HRD DEF TESTMNY; DEFENSE REST 1
15S3917786943019-1-00687-69/19/2022JTRIALCRT. HRD DEF TESTMNY; DEFENSE REST S; REPORTED BY J.MOORE (WICKES / CH 1
16S3917786943019-1-00687-69/19/2022JTRIALJUDGE: TUTSCH, ELISABETH M (BM) CRT. HRD TESTMNY; REPORTED BY 3
17S3917786943019-1-00687-69/19/2022JTRIALS; REPORTED BY J.MOORE (WICKES / CH J.MOORE (WICKES / CHAMBERS) SC2 3
18S3917786943019-1-00687-69/16/2022JTRIAL(BM) CRT. HRD TESTMNY; REPORTED BY ALLNGES; JURY EMPANELLED; REPORTED 1
19S3917786943019-1-00687-69/16/2022JTRIALJ.MOORE (WICKES / CHAMBERS) SC2 (BM) CRT. HRD HARDSHIPS; PEREMPT CH 1
20S3917786943019-1-00687-69/16/2022JTRIALJUDGE: TUTSCH, ELISABETH M BY J.MOORE (WICKES / CHAMBERS) SC2 1
21S3917786943019-1-00687-69/15/2022JTRIAL(BM) CRT. HRD TESTMNY; REPORTED BY (BM) JURY SELECTION BEGAN; HARDSHIP 1
22S3917786943019-1-00687-69/15/2022JTRIALJ.MOORE (WICKES / CHAMBERS) SC2 HRD (WICKES / CHAMBERS) REPORTED B 1
23S3917786943019-1-00687-69/15/2022JTRIALJUDGE: TUTSCH, ELISABETH M Y J.MOORE; SC2 1
24S3917786943019-1-00687-69/14/2022JTRIAL(BM) CRT. HRD TESTMNY; REPORTED BY (BM) JURY RESUMED DELIBERATIONS; VE 1
25S3917786943019-1-00687-69/14/2022JTRIALJ.MOORE (WICKES / CHAMBERS) SC2 C2 1
26S3917786943019-1-00687-69/14/2022JTRIALJUDGE: TUTSCH, ELISABETH M J.MOORE; JEREMY CHAMBERS INTERP; S 1
27S3917786943019-1-00687-69/13/2022JTRIALALLNGES; JURY EMPANELLED; REPORTED PLUS AGGRIVATERS; SENT 10/12; ORD 1
28S3917786943019-1-00687-69/13/2022JTRIAL(BM) CRT. HRD HARDSHIPS; PEREMPT CH RDICT REACHED; GUILTY ON ALL COUNTS 1
29S3917786943019-1-00687-69/13/2022JTRIALBY J.MOORE (WICKES / CHAMBERS) SC2 SIGND (HOLBROOK/OAKLEY) REPORTED BY 1
30S3917786943019-1-00687-69/13/2022JTRIALJUDGE: TUTSCH, ELISABETH M DELIBERATIONS (HOLBROOK / OAKLEY) 1
31S3917786943019-1-00687-69/12/2022JTRIAL(BM) JURY SELECTION BEGAN; HARDSHIP NTERP; SC2 1
32S3917786943019-1-00687-69/12/2022JTRIALHRD (WICKES / CHAMBERS) REPORTED B REPORTED BY J.MOORE; DORA ORNELAS I 1
33S3917786943019-1-00687-69/12/2022JTRIALJUDGE: TUTSCH, ELISABETH M RT. HRD CLOSING ARGMNTS; JURY BEGAN 1
34S3917786943019-1-00687-69/12/2022JTRIALY J.MOORE; SC2 AKLEY) REPORTED BY J.MOORE; DORA OR 1
35S3917735880419-1-00048-78/31/2022JTRIAL(BM) JURY RESUMED DELIBERATIONS; VE (BM) CRT. HRD TESTMNY (HOLBROOK / O 1
36S3917735880419-1-00048-78/31/2022JTRIALC2 NELAS INTERP; SC2 1
37S3917735880419-1-00048-78/31/2022JTRIALJ.MOORE; JEREMY CHAMBERS INTERP; S AKLEY) REPORTED BY J. MOORE; INTERP 2
38S3917735880419-1-00048-78/31/2022JTRIALJUDGE: TUTSCH, ELISABETH M (BM) CRT HRD. TESTMNY (HOLBROOK / O 2
39S3917735880419-1-00048-78/31/2022JTRIALPLUS AGGRIVATERS; SENT 10/12; ORD RETED BY DORA ORNELAS; SC2 1
40S3917735880419-1-00048-78/31/2022JTRIALRDICT REACHED; GUILTY ON ALL COUNTS RETED BY DORA ORNELAS SC2 1
41S3917735880419-1-00048-78/31/2022JTRIALSIGND (HOLBROOK/OAKLEY) REPORTED BY (BM) VOIR DIRE WAS HRD; JURY EMPANE 1
42S3917735880419-1-00048-78/30/2022JTRIAL(BM) CRT. READ JURY INSTRUCTIONS; C EMY CHAMBERS; SC2 1
43S3917735880419-1-00048-78/30/2022JTRIALDELIBERATIONS (HOLBROOK / OAKLEY) ; INTERPRETED BY DORA ORNELAS & JER 1
44S3917735880419-1-00048-78/30/2022JTRIALJUDGE: TUTSCH, ELISABETH M LED; CRT. HRD OPENING STAMNTS (HOLB 1
45S3917735880419-1-00048-78/30/2022JTRIALNTERP; SC2 ROOK / OAKLEY) REPORTED BY J. MOORE 1
46S3917735880419-1-00048-78/30/2022JTRIALREPORTED BY J.MOORE; DORA ORNELAS I (BM) JRY SELECTION; PRIVATE INTERVS 1
47S3917735880419-1-00048-78/30/2022JTRIALRT. HRD CLOSING ARGMNTS; JURY BEGAN S CHAVEZ & JEREMY CHAMBERS; SC2 1
48S3917735880419-1-00048-78/29/2022JTRIALAKLEY) REPORTED BY J.MOORE; DORA OR TED BY J. MOORE; INTERPRTED BY JESU 1
49S3917735880419-1-00048-78/29/2022JTRIAL(BM) CRT. HRD TESTMNY (HOLBROOK / O WERE HRD (HOLBROOK / OAKLEY) REPOR 1
50S3917735880419-1-00048-78/29/2022JTRIALJUDGE: TUTSCH, ELISABETH M 21
51S3917735880419-1-00048-78/29/2022JTRIALNELAS INTERP; SC2 (BM) JRY SELECTION; HARDSHIP HRD (H 1
52S3917735880419-1-00048-78/26/2022JTRIALAKLEY) REPORTED BY J. MOORE; INTERP (BM) JURY SELECTION BEGAN (HOLBROOK 1
53S3917735880419-1-00048-78/26/2022JTRIAL(BM) CRT HRD. TESTMNY (HOLBROOK / O CHAVEZ INTERP; SC2 1
54S3917735880419-1-00048-78/26/2022JTRIALJUDGE: TUTSCH, ELISABETH M / OAKLEY) REPORTED BY J.MOORE; J. 1
55S3917735880419-1-00048-78/26/2022JTRIALRETED BY DORA ORNELAS; SC2 OLBROOK / OAKLEY) REPORTED BY J. MO 1
56S3917735880419-1-00048-78/25/2022JTRIALAKLEY) REPORTED BY J. MOORE; INTERP ORE; INTERPRTED BY JESUS CHAVEZ; SC 1
57S3917735880419-1-00048-78/25/2022JTRIAL(BM) CRT HRD. TESTMNY (HOLBROOK / O ERED; EXHIBITS ENTERED / SWORN TEST 1
58S3917735880419-1-00048-78/25/2022JTRIALJUDGE: TUTSCH, ELISABETH M FTRSC2) 1
59S3917735880419-1-00048-78/25/2022JTRIALRETED BY DORA ORNELAS SC2 IMONY; ROBERTS/STATE; CASE/DEFENSE; 1
60S3917735880419-1-00048-78/24/2022JTRIAL(BM) VOIR DIRE WAS HRD; JURY EMPANE JUDGE: SWAN, JEFFERY 7
61S3917735880419-1-00048-78/24/2022JTRIALEMY CHAMBERS; SC2 JURY TRIAL; VERDICT NOT GUILTYREND 1
62S3917735880419-1-00048-78/24/2022JTRIAL; INTERPRETED BY DORA ORNELAS & JER (SAR; G/S ORDER ON ACQUITTAL. 4 DAY 1
63S3917735880419-1-00048-78/24/2022JTRIALJUDGE: TUTSCH, ELISABETH M (MM) WRITTEN MINUTES 3
64S3917735880419-1-00048-78/24/2022JTRIALLED; CRT. HRD OPENING STAMNTS (HOLB (BM/MM) WRITTEN MINUTES 1
65S3917735880419-1-00048-78/24/2022JTRIALROOK / OAKLEY) REPORTED BY J. MOORE JUDGE: HARTHCOCK, GAYLE M 1
66S3917735880419-1-00048-78/23/2022JTRIAL(BM) JRY SELECTION; PRIVATE INTERVS (BM) CRT HRD TESTMNY (BARRETT / SCO 1
67S3917735880419-1-00048-78/23/2022JTRIALJUDGE: TUTSCH, ELISABETH M TT) REPORTED BY J.MOORE; SC2 1
68S3917735880419-1-00048-78/23/2022JTRIALS CHAVEZ & JEREMY CHAMBERS; SC2 (BARRETT / SCOTT) REPORTED BY J.MO 3
69S3917735880419-1-00048-78/23/2022JTRIALTED BY J. MOORE; INTERPRTED BY JESU (BM) CRT HRD TESTMNY FROM WITNESSES 3
70S3917735880419-1-00048-78/23/2022JTRIALWERE HRD (HOLBROOK / OAKLEY) REPOR ORE; SC2 3
71S3917735880419-1-00048-78/22/2022JTRIAL2
72S3917735880419-1-00048-78/22/2022JTRIAL(BM) JRY SELECTION; HARDSHIP HRD (H
73S3917735880419-1-00048-78/22/2022JTRIAL(BM) JURY SELECTION BEGAN (HOLBROOK
74S3917735880419-1-00048-78/22/2022JTRIALCHAVEZ INTERP; SC2
75S3917735880419-1-00048-78/22/2022JTRIALJUDGE: TUTSCH, ELISABETH M
76S3917735880419-1-00048-78/22/2022JTRIAL/ OAKLEY) REPORTED BY J.MOORE; J.
77S3917735880419-1-00048-78/22/2022JTRIALOLBROOK / OAKLEY) REPORTED BY J. MO
78S3917735880419-1-00048-78/22/2022JTRIALORE; INTERPRTED BY JESUS CHAVEZ; SC
79S3917992914320-1-01217-98/5/2022JTRIALERED; EXHIBITS ENTERED / SWORN TEST
80S3917992914320-1-01217-98/5/2022JTRIALFTRSC2)
81S3917992914320-1-01217-98/5/2022JTRIALIMONY; ROBERTS/STATE; CASE/DEFENSE;
82S3917992914320-1-01217-98/5/2022JTRIALJUDGE: SWAN, JEFFERY
83S3917992914320-1-01217-98/5/2022JTRIALJURY TRIAL; VERDICT NOT GUILTYREND
84S3917992914320-1-01217-98/5/2022JTRIAL(SAR; G/S ORDER ON ACQUITTAL. 4 DAY
85S3918077930921-1-00621-56/27/2022JTRIALJUDGE: SWAN, JEFFERY
86S3918077930921-1-00621-56/27/2022JTRIAL(MM) WRITTEN MINUTES
87S3918179470922-1-00238-26/21/2022JTRIALJUDGE: TUTSCH, ELISABETH M
88S3918179470922-1-00238-26/21/2022JTRIAL(MM) WRITTEN MINUTES
89S3918111595621-1-01172-36/7/2022JTRIAL(BM/MM) WRITTEN MINUTES
90S3918111595621-1-01172-36/7/2022JTRIALJUDGE: HARTHCOCK, GAYLE M
91S3917937749420-1-00262-95/9/2022JTRIALJUDGE: SWAN, JEFFERY
92S3917937749420-1-00262-95/9/2022JTRIAL(MM) WRITTEN MINUTES
93S3917670471818-1-01653-94/18/2022JTRIAL(BM) CRT HRD TESTMNY (BARRETT / SCO
94S3917670471818-1-01653-94/18/2022JTRIALJUDGE: SWAN, JEFFERY
95S3917670471818-1-01653-94/18/2022JTRIALTT) REPORTED BY J.MOORE; SC2
96S3917670471818-1-01653-94/15/2022JTRIAL(BARRETT / SCOTT) REPORTED BY J.MO
97S3917670471818-1-01653-94/15/2022JTRIAL(BM) CRT HRD TESTMNY FROM WITNESSES
98S3917670471818-1-01653-94/15/2022JTRIALJUDGE: SWAN, JEFFERY
99S3917670471818-1-01653-94/15/2022JTRIALORE; SC2
100S3917670471818-1-01653-94/14/2022JTRIAL(BARRETT / SCOTT) REPORTED BY J.MO
101S3917670471818-1-01653-94/14/2022JTRIAL(BM) CRT HRD TESTMNY FROM WITNESSES
102S3917670471818-1-01653-94/14/2022JTRIALJUDGE: SWAN, JEFFERY
103S3917670471818-1-01653-94/14/2022JTRIALORE; SC2
104S3917670471818-1-01653-94/13/2022JTRIAL(BARRETT / SCOTT) REPORTED BY J.MO
105S3917670471818-1-01653-94/13/2022JTRIAL(BM) CRT HRD TESTMNY FROM WITNESSES
106S3917670471818-1-01653-94/13/2022JTRIALJUDGE: SWAN, JEFFERY
107S3917670471818-1-01653-94/13/2022JTRIALORE; SC2
Sheet1
 
Upvote 0
another way:
Book1
HIJKLMNOP
1Case Court InitialsCase KeyCase NumberDocket DateDocket CodeSub Docket Desc TextJudge
2S3917786943019-1-00687-644825JTRIALJUDGE: TUTSCH, ELISABETH M JUDGE: TUTSCH, ELISABETH M 3
3S3917786943019-1-00687-644824JTRIALJUDGE: TUTSCH, ELISABETH M JUDGE: SWAN, JEFFERY 4
4S3917786943019-1-00687-644823JTRIALJUDGE: TUTSCH, ELISABETH M JUDGE: HARTHCOCK, GAYLE M 1
5S3917786943019-1-00687-644820JTRIALJUDGE: TUTSCH, ELISABETH M
6S3917786943019-1-00687-644819JTRIALJUDGE: TUTSCH, ELISABETH M
7S3917786943019-1-00687-644818JTRIALJUDGE: TUTSCH, ELISABETH M
8S3917786943019-1-00687-644817JTRIALJUDGE: TUTSCH, ELISABETH M
9S3917786943019-1-00687-644816JTRIALJUDGE: TUTSCH, ELISABETH M
10S3917735880419-1-00048-744804JTRIALJUDGE: TUTSCH, ELISABETH M
11S3917735880419-1-00048-744803JTRIALJUDGE: TUTSCH, ELISABETH M
12S3917735880419-1-00048-744802JTRIALJUDGE: TUTSCH, ELISABETH M
13S3917735880419-1-00048-744799JTRIALJUDGE: TUTSCH, ELISABETH M
14S3917735880419-1-00048-744798JTRIALJUDGE: TUTSCH, ELISABETH M
15S3917735880419-1-00048-744797JTRIALJUDGE: TUTSCH, ELISABETH M
16S3917735880419-1-00048-744796JTRIALJUDGE: TUTSCH, ELISABETH M
17S3917735880419-1-00048-744795JTRIALJUDGE: TUTSCH, ELISABETH M
18S3917992914320-1-01217-944778JTRIALJUDGE: SWAN, JEFFERY
19S3918077930921-1-00621-544739JTRIALJUDGE: SWAN, JEFFERY
20S3918179470922-1-00238-244733JTRIALJUDGE: TUTSCH, ELISABETH M
21S3918111595621-1-01172-344719JTRIALJUDGE: HARTHCOCK, GAYLE M
22S3917937749420-1-00262-944690JTRIALJUDGE: SWAN, JEFFERY
23S3917670471818-1-01653-944669JTRIALJUDGE: SWAN, JEFFERY
24S3917670471818-1-01653-944666JTRIALJUDGE: SWAN, JEFFERY
25S3917670471818-1-01653-944665JTRIALJUDGE: SWAN, JEFFERY
26S3917670471818-1-01653-944664JTRIALJUDGE: SWAN, JEFFERY
Sheet1
Cell Formulas
RangeFormula
H2:M26H2=FILTER(A2:F107,ISNUMBER(SEARCH("*Judge*",F2:F107)))
O2:O4O2=UNIQUE(FILTER(F2:F107,ISNUMBER(SEARCH("Judge",F2:F107))*COUNTIF(F2:F107,F2:F107)))
P2:P4P2=SUMPRODUCT(($M$2:$M$26=$O2)*(($I$2:$I$26<>"")/COUNTIF($I$2:$I$26,$I$2:$I$26&"")))
Dynamic array formulas.
 
Upvote 0
It took me a minute to figure out how to apply this to my sheet as blank cells in Column F were throwing me off. Additionally, you had only accounted for the first 1000 rows as opposed to all 22,525 rows. after I figured that out, it was clear!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,210
Members
453,023
Latest member
alabaz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top