How to count in a column

alive15

New Member
Joined
Jul 13, 2016
Messages
33
Hello, I have a column that has different words. I need to find out how many of each word is in that column. For example, there might be 50 of the word banana, 7 of the word apple, 23 of the word orange, etc. What is an easy way to figure this or formula to use, I have over 150 cells to check. I don't want to manually count each one.

Thanks,
 

Some videos you may like

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

alive15

New Member
Joined
Jul 13, 2016
Messages
33
I figured it out using count if.

Is there a way to add some notes before my formula? For example I want to do this:[ Bananas: =countif(C:C, "banana") ], but I want the formula to show the # and keep the first word inside the brackets.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
35,542
Office Version
365
Platform
Windows
Like
="Bananas " & COUNTIF(C:C,"banana")
 

alive15

New Member
Joined
Jul 13, 2016
Messages
33
I want my cell to read like this
Bananas: 86

But I will use the countif forumla instead, and this formula should make the # 86 appear. The method you showed above does not work. I tried "Bananas: " & COUNTIF(C13:C206,"bananas"), but it did not work.
 

alive15

New Member
Joined
Jul 13, 2016
Messages
33
Also, I have a second column that tells me if the bananas are good or bad or cleanable. I want to determine how many of the first column has the word "banana", and how many of the second column has the word "bad" in one formula.

I found =COUNTIFS(C13:C206,bananas,H13:H206,"bad"), but this is not working either. Any ideas how to get this?

Thanks,
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
35,542
Office Version
365
Platform
Windows
To keep the word Bananas in the cell it would be
="Bananas: "& COUNTIFS(C13:C206,"bananas",H13:H206,"bad")
 

Forum statistics

Threads
1,089,299
Messages
5,407,452
Members
403,143
Latest member
CTremblay

This Week's Hot Topics

  • help please
    SORRY NOT ANY GOOD AT EXCEL SO HELP WOULD BE MUCH APPRECIATED this formula is in a sheet called ignore...
  • two formulas needed
    Hello, I'll try my best to explain this: First formula needed in Sheet1 cell A2: If Sheet1 cell B2 = Sheet2 cell B2 then return a 1. If not then...
  • Dynamic Counts
    Good afternoon, we are tidying up some data & the data seems to be growing quicker than we are tidying it up! What we confirm (by reviewing it...
  • Help Excel formula eliminate duplicate values and keep only 2 identical rows.
    as picture below column A has a duplicate value. but the values are not the same as the rule. sometimes 4 rows, sometimes 10 rows or 7 or 9...
  • Macro Compile Error Sub or Function not defined
    Hello, I am trying to run macros from a validation list, all macros have been created and run perfectly on there own but I'm getting a compile...
  • Last row combined with Current Region VBA
    I'm generally happy finding the last row of data through something like Lastrow = Cells(Rows.Count, "D").End(xlUp) but I don't always receive data...
Top