Counting texts in a cell

lousydull

New Member
Joined
Aug 7, 2018
Messages
7
I'm interested to count only "Mad" or "Mid" in a cell. Meaning either of the two are present will only count as one. Please can someone help to come up with a formula for excel? Example Cell A1 texts are: Mad, Mud, Mod, Med, Mid Result: Both "Mad" and "Mid" are present but will only count as 1


Mud, Mod, Med, Mid
Result: "Mad" is absent but "Mid" present thus, will count as 1


Mad, Mud, Mod, Med
Result: "Mad" is present but "Mid" absent thus, will count as 1


Mud, Mod, Med
Result: Both "Mad" and "Mid" are absent thus, will count as 0
 

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 such data is possible, what count should it be for
a) Mad, Mud, Mod, Med, Mid, Mad, Mod, Mid, Mid
b) Old, Modern, Humid
 
Upvote 0
.. otherwise try

Excel Workbook
AB
1Mad, Mud, Mod, Med, Mid1
2Mud, Mod, Med, Mid1
3Mad, Mud, Mod, Med1
4Mud, Mod, Med0
Count



If the text should not be case-sensitive then use SEARCH in place of FIND
 
Upvote 0

Forum statistics

Threads
1,223,247
Messages
6,171,004
Members
452,374
Latest member
keccles

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