Insert count based on word in another cell.

Rick187

New Member
Joined
Aug 29, 2018
Messages
15
Hi,


I would like to get the total count based on a word that is contained somewhere in another column.


For example:


If the value of columnA contains the word from ColumnB then insert count


If I have the following 4 values in column A


//SRS4567
//SRS456232
//QBR22221
//FRA1111


In Column B, I have the following values


SRS
QBR


In Column C, next to "SRS", I would like it to display "2" because in Column A two of the cells contain the word "SRS" somewhere in the cell. Next to QBR, I would like it to display "1" because the letters "QBR" has only been mentioned once in column A.


Does anyone know which formula is needed for this?


Any help would be appreciated.


Thanks in advance.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi, you could try this.


Excel 2013/2016
ABC
1//SRS4567SRS2
2//SRS456232QBR1
3//QBR22221
4//FRA1111
Sheet1
Cell Formulas
RangeFormula
C1=COUNTIFS(A:A,"*"&B1&"*")
 
Upvote 0
try

=COUNTIF(A:A,"*"&B1&"*")

assuming SRS etc started in B1
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,416
Members
448,960
Latest member
AKSMITH

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