Help with FIND - COUNTIF formula

TheReaper

New Member
Joined
Aug 18, 2009
Messages
10
Hello guys!

I need help with a formula, hope somebody could help me.

I've been trying to figure out how to make a formula that would look for a text string and count the number of occurrences within a range of cells, but the problem is that the target cells have multiple values...

Data looks like this:

A B C
1 Process | Ocurrences | Cases
2 ACR ?? RRF, CLR, SPA
3 BUR ?? CDP, COD
4 AUR ?? GBU, CTC
5 CTR ?? CAR, SRD, RRD, BUN, BUF, BUD
6 SGR ?? RRF, CLR, SPA
7 CAR ?? CAR, SRD, RRD, BUN, BUF, BUD
moz-screenshot.png
... ... ...
... ... ...

So, I need a formula (in B2) to look for "ACR" in the whole C column and count the number of occurrences... and so on.

I don't know how to use macros neither how to create them... so, is it possible to use a standard formula with this?

Thanks in advance!
Have a nice day!
 
Using your posted structure...

This formula will count the number of cells in Col_C that contain the value
in A2:
Code:
B2: =COUNTIF($C:$C,"*"&A2&"*")

Copy that formula down as far as you need.

Using your sample data, the formula returns: 2
in B7..(there a are 2 cells that contain CAR)

Does that help?
 
Upvote 0
I came up with:

1.
This formula will count the occurrences of ACR in a cell:
=(LEN(A1)-LEN(SUBSTITUTE(A1,"ACR","")))/3

2.
Put that formula in a "helper column" - such as Column D or even column Z

3.
In B2 Sum() the "helper Column"


Note: your columns don't seem to make sense (you say Column C but the data appears in Column A in your sample data).

EDIT-I was intending to Count ACR if it was in the same cell more than once - sounds like Ron's idea is better.
 
Upvote 0

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