Help: I need to return a list of all cells (will be multiple) containing a specific text string

usmcellis

New Member
Joined
Sep 30, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Mobile
First time poster here and I need help completing my softball pitching signals worksheet. The table below is recreated with weighted averages every time the sheet is recalculated (F9). You read the chart horizontal then down (ie; 132 = go over to 13, then down to 2 = DB).

1696100024617.png


I'd like to have a coaches' cheat sheet on a separate tab that will list all of the 3 digit numbers by pitch. For example:

FB
121, 131, 141, 221....

CH
111, 112, 123....

DB
132, 142, 223....

I'd like to have it recalculate every time I hit F9 to repopulate the signal card, but can't figure out how. If someone can help me create a list of every cell reference that includes "CH", "FB", "DB", etc, I can probably figure out how to combine them into the 3 digit numbers.

*I've also though of naming each cell to correspond to the signal: _111, _212, etc., if that will make it easier.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
First time poster here and I need help completing my softball pitching signals worksheet. The table below is recreated with weighted averages every time the sheet is recalculated (F9). You read the chart horizontal then down (ie; 132 = go over to 13, then down to 2 = DB).

View attachment 99539

I'd like to have a coaches' cheat sheet on a separate tab that will list all of the 3 digit numbers by pitch. For example:

FB
121, 131, 141, 221....

CH
111, 112, 123....

DB
132, 142, 223....

I'd like to have it recalculate every time I hit F9 to repopulate the signal card, but can't figure out how. If someone can help me create a list of every cell reference that includes "CH", "FB", "DB", etc, I can probably figure out how to combine them into the 3 digit numbers.

*I've also though of naming each cell to correspond to the signal: _111, _212, etc., if that will make it easier.
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
I got this far...I rearranged your data to make it easier to INDEX and MATCH. This does not include your weighted averaging. Weighted averaging is possible, but I cannot think of how to incorporate it at the moment. I am out of time to look it up with google...;)
Book1
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJ
1COLROWCOMBPITCHCELLFBCELLCHCELLDBCELLRBCELLFB51.6%
2111111CH$C$4113$C$6111$C$4132$E$5134$E$7CH23.4%
311121314212223243132333441424344112112CH$C$5121$D$4112$C$5142$F$5234$I$7DB9.4%
41CHFBFBFBCHFBCHCHDBFBFBFBFBFBFBFB113113FB$C$6122$D$5114$C$7223$H$6312$K$5RB15.6%
52CHFBDBDBFBFBFBFBRBDBRBCHDBRBFBRB114114CH$C$7131$E$4123$D$6311$K$4314$K$7
63FBCHFBFBFBDBFBCHFBCHCHFBRBFBFBFB121121FB$D$4133$E$6124$D$7322$L$5332$M$5
74CHCHRBCHFBFBRBFBRBFBRBFBCHRBFBCH122122FB$D$5141$F$4144$F$7412$O$5334$M$7
8123123CH$D$6143$F$6211$G$4413$O$6
9124124CH$D$7212$G$5231$I$4422$P$5
10131131FB$E$4213$G$6241$J$4424$P$7
11132132DB$E$5214$G$7243$J$6442$R$5
12133133FB$E$6221$H$4323$L$6
13134134RB$E$7222$H$5333$M$6
14141141FB$F$4224$H$7342$N$5
15142142DB$F$5232$I$5414$O$7
16143143FB$F$6233$I$6444$R$7
17144144CH$F$7242$J$5
18211211CH$G$4244$J$7
19212212FB$G$5313$K$6
20213213FB$G$6321$L$4
21214214FB$G$7324$L$7
22221221FB$H$4331$M$4
23222222FB$H$5341$N$4
24223223DB$H$6343$N$6
25224224FB$H$7344$N$7
26231231CH$I$4411$O$4
27232232FB$I$5421$P$4
28233233FB$I$6423$P$6
29234234RB$I$7431$Q$4
30241241CH$J$4432$Q$5
31242242FB$J$5433$Q$6
32243243CH$J$6434$Q$7
33244244FB$J$7441$R$4
34311311DB$K$4443$R$6
35312312RB$K$5
36313313FB$K$6
37314314RB$K$7
38321321FB$L$4
39322322DB$L$5
40323323CH$L$6
41324324FB$L$7
42331331FB$M$4
43332332RB$M$5
44333333CH$M$6
45334334RB$M$7
46341341FB$N$4
47342342CH$N$5
48343343FB$N$6
49344344FB$N$7
50411411FB$O$4
51412412DB$O$5
52413413RB$O$6
53414414CH$O$7
54421421FB$P$4
55422422RB$P$5
56423423FB$P$6
57424424RB$P$7
58431431FB$Q$4
59432432FB$Q$5
60433433FB$Q$6
61434434FB$Q$7
62441441FB$R$4
63442442RB$R$5
64443443FB$R$6
65444444CH$R$7
Sheet1
Cell Formulas
RangeFormula
V2:V65V2=T2&U2
W2W2=INDEX($C$4:$R$7,$U2,MATCH($T2,$C$3:$R$3,0))
X2:X65X2=ADDRESS($U2+3,MATCH($T2,$C$3:$R$3,0)+2)
W3:W65W3=INDEX($C$4:$R$7,U3,MATCH($T3,$C$3:$R$3,0))
Z2:AA34,AF2:AG11,AD2:AE7,AB2:AC16Z2=FILTER(CHOOSE({1,2},$V$2:$V$65,$X$2:$X$65),$W$2:$W$65=Z$1)
AJ1AJ1=COUNTA(INDEX(Z2#,,1))/64
AJ2AJ2=COUNTA(INDEX(AB2#,,1))/64
AJ3AJ3=COUNTA(INDEX(AD2#,,1))/64
AJ4AJ4=COUNTA(INDEX(AF2#,,1))/64
Dynamic array formulas.

Hope that helps,

Doug
 
Upvote 0
Solution
Wristband Creator.xlsx
ABCDE
12024 Cyclones Pitch Card #9676
2#PitchDesired %CumulativeActual %
31FB50%0.0041%
42CH30%0.5031%
53CV0%0.800%
64DB10%0.809%
75SB0%0.900%
86RB10%0.9019%
Entry
Cell Formulas
RangeFormula
E1E1=RAND()*10000
D3:D8D3=SUM(D2,C2)
E3:E8E3=COUNTIF('Wrist Bands'!$B$3:$J$11,B3)/64
Named Ranges
NameRefers ToCells
_111='Wrist Bands'!$B$3E3:E8
Cumulative=Entry!$D$3:$D$10D4
Pitches=Entry!$B$3:$B$8E3
 
Upvote 0
Upvote 0
@Herakles and @duggie33,

I've the first post above is the "input" worksheet where I put the weights for my pitches, or the total percentage each pitch should fill the card.

The secon post is the actual card with the pitches.

I'm wanting a third sheet that will give me every cell that each pitch is located. In this particular card, FB would be listed as 141, 112, etc. I just need to know how to produce the list of cell addresses and can create a VLOOKUP table to convert to the 141, 112, etc.
 
Upvote 0
My example shows how to get the cell addresses and return a list for each pitch. You will have to adjust for the layout of your data.

Doug
 
Upvote 0
My example shows how to get the cell addresses and return a list for each pitch. You will have to adjust for the layout of your data.

Doug
Got it to work. Thank you, very much!
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,963
Members
449,094
Latest member
Anshu121

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