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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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! :LOL:) 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,215,404
Messages
6,124,715
Members
449,184
Latest member
COrmerod

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