Counting the number of cells with a number in a column

RachelBrown

New Member
Joined
Jul 6, 2017
Messages
11
I have a column in a spreadsheet that uses the =Left() function, what I end up with is rather: H, A, or a number. What I want to do is just count the number of cells with a number. I've tried a variety of things that I've seen from my Googling adventures, but haven't had any luck. Please help!

Here is a screenshot of what my column looks like:
The formula in A64 is =Left(D64,1) and changes respectively to the row
mmv05c.jpg
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Welcome to the board.

Try
=COUNTA(A:A)-SUM(COUNTIF(A:A,{"A","H"}))

Logic is Count how many non blanks there are COUNTA
Then subtract how many contain A or H.
Result must be how many contain a number.
 
Upvote 0
Welcome to the board.

Try
=COUNTA(A:A)-SUM(COUNTIF(A:A,{"A","H"}))

Logic is Count how many non blanks there are COUNTA
Then subtract how many contain A or H.
Result must be how many contain a number.

Thank you for your reply! Your formula did give me something besides zero, but it is still not right. The correct value should be 13 and I got 164 (and that's not even the sum of the values! :laugh:) Any other suggestions?
 
Upvote 0
In column B, put in the code:

=if(iserror(Value(column A)), 0,1)

This will return a 0 if the value is a letter, a 1 if the value is a number. Then just sum up the 1's.
 
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