ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   counting letters in excel cell (https://www.excelbanter.com/excel-discussion-misc-queries/187620-counting-letters-excel-cell.html)

kas

counting letters in excel cell
 
I have a list of first names, such as Adam, Mary, Julie, etc in column A and
I want to find out how many of a specific letter is in each cell. I have put
in =COUNTIF(A1:A17,"*a*") and it returns all the letters except doubles in
the name like in Adam it only counts one. I need to count all of the letter
'a'. Please help.

JE McGimpsey

counting letters in excel cell
 
One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=SUM(LEN(A1:A17),-LEN(SUBSTITUTE(A1:A17,"a","")))


In article ,
kas wrote:

I have a list of first names, such as Adam, Mary, Julie, etc in column A and
I want to find out how many of a specific letter is in each cell. I have put
in =COUNTIF(A1:A17,"*a*") and it returns all the letters except doubles in
the name like in Adam it only counts one. I need to count all of the letter
'a'. Please help.



All times are GMT +1. The time now is 08:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com