Count a specific letter/number combination?

ntech

New Member
Joined
Oct 7, 2017
Messages
21
wVcYqwX.jpg
[/IMG]

This is an example of a formula I would like to house in the AD4 cell that will count only the cells that contain the following number/”C” combination such as:

0-9C
10-99C
100-999C

I would like the formula to exclude the “CO” code along with values that do not have a "C" on the end.
 
[table="width:, class:grid"][tr][td="bgcolor:#c0c0c0"][/td][td="bgcolor:#c0c0c0"]
a​
[/td][td="bgcolor:#c0c0c0"]
b​
[/td][td="bgcolor:#c0c0c0"]
c​
[/td][/tr][tr][td="bgcolor:#c0c0c0"]
1​
[/td][td]abc[/td][td="bgcolor:#e5e5e5"]
4​
[/td][td]b1: =countif(a1:a4, "*c/*c") + countif(a1:a4, "*c")[/td][/tr]
[tr][td="bgcolor:#c0c0c0"]
2​
[/td][td]10c[/td][td][/td][td][/td][/tr]
[tr][td="bgcolor:#c0c0c0"]
3​
[/td][td]abd[/td][td][/td][td][/td][/tr]
[tr][td="bgcolor:#c0c0c0"]
4​
[/td][td]10c/11c[/td][td][/td][td][/td][/tr]
[/table]
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Thank you kindly sir!

[TABLE="class: grid"]
<tbody>[TR]
[TD="bgcolor: #c0c0c0"][/TD]
[TD="bgcolor: #c0c0c0"]
a​
[/TD]
[TD="bgcolor: #c0c0c0"]
b​
[/TD]
[TD="bgcolor: #c0c0c0"]
c​
[/TD]
[/TR]
[TR]
[TD="bgcolor: #c0c0c0"]
1​
[/TD]
[TD]abc[/TD]
[TD="bgcolor: #e5e5e5"]
4​
[/TD]
[TD]b1: =countif(a1:a4, "*c/*c") + countif(a1:a4, "*c")[/TD]
[/TR]
[TR]
[TD="bgcolor: #c0c0c0"]
2​
[/TD]
[TD]10c[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #c0c0c0"]
3​
[/TD]
[TD]abd[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #c0c0c0"]
4​
[/TD]
[TD]10c/11c[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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