Count cells whitch contanes a specific part of textl

shaggy31

New Member
Joined
May 6, 2009
Messages
49
Dear,

I would like to count cells which are containing a specific part of text.

Example, i want to count cells that are containing text from Column B in it :

A
BC (Resault)
PK5555015555
3
PK5555025555
PK5555035555
PK5556015556
1
PK5557035557
1

<tbody>
</tbody>

I suppose it is done with COUNTIF function but I don't know how to set a Criteria.

Best regards,

Shaggy
 
Last edited:

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try in C1 copied down

=COUNTIF(A$1:A$5,"*"&B1&"*")
 

shaggy31

New Member
Joined
May 6, 2009
Messages
49
Hi VoG!

That is what I tried but it doesn't work. I tried puting ?? instead * but no luck...

Shaggy
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Works here

Excel Workbook
ABC
1PK55550155553
2PK55550255553
3PK55550355553
4PK55560155561
5PK55570355571
Sheet1
 

Watch MrExcel Video

Forum statistics

Threads
1,129,683
Messages
5,637,787
Members
416,982
Latest member
lisam77

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
Top