How to Create a Formula to Count Number of Text Items?

eirlymeyer

New Member
Joined
Nov 23, 2014
Messages
2
Excel Version: 2003
Summary: Seeking formula or function to count number of times a text appears, and to enter a count and a text reference based on specific conditions.

Details:

  1. Win Calculation: (COLUMN H) A “WIN” is when all 5 filters receive a “PASS” for that selected item.
    1. If all 5 Filters receive a “Pass”, then enter: WIN.
    2. If Column H has a “Win”, then enter a “1” into a field in Column “J”
    3. If Column H has a “Miss”, then enter a “0” into a field in Column “J”
    4. Count Wins: Is there an easier formula to count just the wins.
  2. Win Analysis Dashboard: (Column K): Pass/Fail Analyzing if the “WIN” count Passes or Fails. It “Passes” if there are 5 or more total WINS. .
  3. # of Wins: Count/Sum the total number of “Wins”
  4. Pass/Fail: If the number of Wins are 5 or more, then enter: Pass
Note: The data that will be filled in are the Filtered Data (Pass/Fail). The data that will be calculated are the number of Wins, and whether or not all 5 filter Pass which constitutes a WIN.

Concept: https://www.dropbox.com/s/5dzz61sp3trrx3x/analysis_windash_v2.xls?dl=0

Thanks for your help. Any guidance would be truly helpful.

# of WinsPass/Fail
7Pass
Ranks 1Filter 1Filter 2Filter 3Filter 4Filter 5WIN
Passes all 5
Filters
1PassPassPassPassPassWin1
2PassPassPassPassPassWin1
3FailPassPassPassPassMiss0
4PassPassPassPassPassWin1
5PassPassPassPassPassWin1
6PassPassPassPassPassWin1
7PassPassPassPassPassWin1
8PassPassPassFailPassMiss0
9PassPassFailPassPassMiss0
10PassPassPassPassPassWin1

<tbody>
</tbody>
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
If Ranks1 is in cell A3, then the "Win Passes all 5 filters" is in G3

You could put =IF(COUNTIF(B4:F4,"Pass")=5, "Win", "Miss") in G4 and drag down.
The 1/0 column is not needed

To could the number of "Win"s in column G you could use the formula =COUNTIF(G:G, "Win")

And cell I2 could hold the formula =IF(5<=COUNTIF(G:G, "Win"), "Pass","Fail")
 
Upvote 0
Outstanding! Thank you so much & thanks for responding so quickly.

One question I had was:

How to display the Rank Amount (Column A) if there's a corresponding Win (Column G), to display in Column H.
Condition: If there is a WIN (Column G), display Rank # from Column A. If there's a Miss, display 0 or nothing.

Thanks again for the guidance above. That's exactly what I needed.


A BCDEFG# of WinsPass/FailJKL
7Pass
Ranks 1Filter 1Filter 2Filter 3Filter 4Filter 5WIN
Passes all 5
Filters
1PassPassPassPassPassWin1
2PassPassPassPassPassWin2
3FailPassPassPassPassMiss0
4PassPassPassPassPassWin4
5PassPassPassPassPassWin5
6PassPassPassPassPassWin6
7PassPassPassPassPassWin7
8PassPassPassFailPassMiss0
9PassPassFailPassPassMiss0
10PassPassPassPassPassWin8

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,657
Messages
6,120,777
Members
448,991
Latest member
Hanakoro

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