Counting cell that have numbers in the string

SeniorTom

Board Regular
Joined
Jun 5, 2017
Messages
96
I'm trying to count the cell that have a number embedded in the string:


<tbody>
[TD="class: xl69"]11/10/2016[/TD]
[TD="class: xl69, width: 102"]11/14/2016[/TD]
[TD="class: xl69, width: 102"]11/17/2016[/TD]
[TD="class: xl69, width: 97"]11/21/2016[/TD]
[TD="class: xl70, width: 92"]11/24/2016[/TD]

</tbody>

<tbody>
[TD="class: xl69"]1zSMITH[/TD]
[TD="class: xl68, width: 102"]2zSMITH[/TD]
[TD="class: xl68, width: 102"]SMITH[/TD]
[TD="class: xl67, width: 97"]SMITH3[/TD]
[TD="class: xl68, width: 92"]x4zSMITH
[/TD]

</tbody>

I can count if the Number is 1st or last but am having problems when the are embedded. The date cells are not of concern.

Any thought would be appreciated.
Regards,
Tom
 
Last edited:

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Assuming your text cells are starting in A2:
=SUM(IF(ISNUMBER(SEARCH({0;1;2;3;4;5;6;7;8;9},A2:E2)),1,0))

Pressing CONTROL+SHIFT+ENTER as it's an array formula... you should see {} appear around the formula if done correctly.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
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