Formula to count partial colored font using wildcards

jMz

New Member
Joined
Feb 21, 2024
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
Good morning,

I am having a problem counting colored font while using a wildcard for a partial search in a cell. The font color I want to count is "Green" which only appears once in each column to show a winner's name a long with the winning number. Ex: "5. Stephen". The number and name have to stay together, which is where my problem falls, a player can pick multiple numbers in one column but there can only be one winning number and name.
When I type a name "Stephen" in column E3 the formula should count Stephen one time in each column that the name appears as green and over looking the number at the beginning.

I have attached an example. Any ideas would be appreciated, thank you.

Jim

Book1.xlsm
ABCDEFGHIJKLMNO
1NUMBER OF*** Total Spins ***12345
2SpinsWinsPicksPlayer51. Austin Rowe1. Chris Leiter1. Stephen Gross1. Stephen Gross1. Stephen Gross
34#NAME?15Stephen Gross2. Rick Conte2. Daniel Branco2. Daniel Branco2. Daniel Branco2. Stephen Gross
4Function Called3. Rick Conte3. Aaron Burris3. Calvin VanRiper3. Stephen Gross3. Stephen Gross
54. Shane Fair4. Shane Fair4. Shane Fair4. Shane Fair4. John Alger
65. Stephen Gross5. Chris Leiter5. Calvin VanRiper5. Stephen Gross5. Stephen Gross
76. Shane Fair6. Shane Fair6. Shane Fair6. Shane Fair6. Shane Fair
87. Tim and Kim Taylor7. Daniel Branco7. Calvin VanRiper7. Stephen Gross7. Stephen Gross
98. Randy Czapla8. Daniel Branco8. Daniel Branco8. Daniel Branco8. John Alger
109. Shane Fair9. Shane Fair9. Shane Fair9. Shane Fair9. Shane Fair
1110. Stephen Gross10. Sandie Smith10. Sandie Smith10. Sandie Smith10. Calvin VanRiper
1211. Lee Clyde11. Tim and Kim Taylor11. Stephen Gross11. Austin Rowe11. Calvin VanRiper
1312. Sandie Smith12. Daniel Branco12. Daniel Branco12. Daniel Branco12. Shane Fair
1413. Calvin VanRiper13. Lee Clyde13. John Alger13. Tim and13. Laura N
1514. Rick Conte14. Aaron Burris14. Stephen Gross14. Calvin VanRiper14. Laura N
1615. Calvin VanRiper15. Jason Easter15. Stephen Gross15. Calvin VanRiper15. Laura N
17Winning Number5112152
18
19
Feb-18
Cell Formulas
RangeFormula
J2J2=COUNT(K1:O1)
C3C3=CountCellsByFontColor(K1:O15,"*"&E3&"*")
D3D3=COUNTIF(K2:O16, "*"&E3&"*")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G6:G8Cell Value="No"textNO
G6:G14,G16:G50Cell Value="Yes"textNO
G4Cell Value="No"textNO
G4Cell Value="Yes"textNO
 
Is there a easy way to count the number of columns with a green name?

jim
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Is there a easy way to count the number of columns with a green name?
Before we start writing/rewriting code due to new requests, can you have a think if you have any other requirements to add rather than us writing it piecemeal
 
Upvote 0
Before we start writing/rewriting code due to new requests, can you have a think if you have any other requirements to add rather than us writing it piecemeal
Sure, wasn't thinking.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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