Search thru range of cells and count cells containing only positive numbers

ThomasOES

Board Regular
Joined
Aug 29, 2017
Messages
174
Hello

I have a column of data and I would like to count the number of cells containing only positive numbers. Also some cells have parentheses, brackets, less than symbols. I would like to exclude all these and only count cells with a positive number. Below is a typical column I would encounter. Its data from an aluminum analysis. I need to get a count of the amount of positive numbers. No cells with any characters other than positive numbers. For example this column should yield a count of 7. VBA code please.
Thanks for any help.
Tom

[TABLE="width: 64"]
<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64, bgcolor: transparent"]Al[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]-3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]-3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]-3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]-3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]-3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]-2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]-2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]-2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]-2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]-2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]-2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]-2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]-2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]-2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"](0.007)[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"](0.001)[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.0006[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.0009[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.0014[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.002[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.004[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.02[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]0.065[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

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