letters and numbers

coltheplumb

Well-known Member
Joined
Nov 27, 2010
Messages
731
Hi ho again :) heres another prob for you :confused: i have a list of numbers and letters all in different cells is there a way at the bottom of the list to just count the number of cell with letters in and ignore the cells with numbers in ?:confused:, ie if the list is like this each item in a different cell....1 d n 3 4 k k ..and so on so the total would be 4... hope i have explained that ok ?
Thankx

Colin X
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Try

=COUNTA(A1:A10)-COUNT(A1:A10)

COUNTA = Count of NON Blank cells (text or number)
COUNT = Count of Numbers only
So COUNTA-COUNT = Count of Text (non number)

Hope that helps.
 
Upvote 0
Na that still counts letters and numbers the same :(... i only want it to count any cell with a letter in it and to ignore blank cells or cells with numbers in them :confused:

Colin X
 
Upvote 0
Na that dont work it still counting numbers or letters ??
They both work, unless your numerical values are really entered/formatted as "Text" instead of "Numbers".

An easy way to check is using the ISNUMBER function.
Let' say that you have 1 entered in cell A1.
What does =ISNUMBER(A1) return?
If it returns FALSE, you have a text entry, not a numeric one.

You can use Text-to-Columns to correct that.
 
Upvote 0
ok so i have done the =isnumber thing and it does return False.. so as a novice how do i change it to the text-to-columns thing ??:confused:

Colin X
 
Upvote 0
If you want the count of numeric and numeric-text cells, try this regular formula
=COUNT(INDEX(1*(A1:A10&""),0))

And for the count of all other non-blank, non-numeric cells
=SUMPRODUCT(--ISERROR(INDEX(1/(A1:A10&1),0)))

Does that help?
 
Upvote 0
ok so i have done the =isnumber thing and it does return False.. so as a novice how do i change it to the text-to-columns thing ??
Highlight your column of data, select "Text to Columns" from the Data menu/ribbon. Click "Finish". This should convert your numbers to number format. Then those solutions will work.

Did you try post #4?
Aladin,
I tried your solution when the numerical values are entered as numbers, and it didn't work for me either until those entries were converted to a numeric format.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

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