How to count all instances of a string

WaltABCMD

New Member
Joined
Nov 10, 2014
Messages
12
I need to count all Attorneys, Educators, Government etc., as well as each bachelor, master, Ph.D, J.D. etc. Each of these can exist alone or in combination with the others within a given cell. How can I count them, and show the results in the appropriate cells?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Use the COUNTIF function with wildcards. Something like:

=COUNTIF(A:A,"*Attorneys*")
 
Upvote 0
I need to count all Attorneys, Educators, Government etc., as well as each bachelor, master, Ph.D, J.D. etc. Each of these can exist alone or in combination with the others within a given cell. How can I count them, and show the results in the appropriate cells?
Can you provide sample data, that would help us visualise better what you are trying to achieve
 
Upvote 0
I tried countif and countifs but it seems to not like having multiple options within a cell, like Eddie with and MS AND an MBA, or Oscar who works in Governemnt as well as NonProfit.
Mr_Excel_Count2.png
 
Last edited:
Upvote 0
Assuming your table starts in A1, enter this in B2:

=COUNTIF(D:D,"*"&A2&"*")

copy down.

Enter this in B9:

=COUNTIF(E:E,"*"&A9&"*")

copy down.
 
Upvote 0

Forum statistics

Threads
1,202,963
Messages
6,052,827
Members
444,602
Latest member
Cookaa

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