Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I would like to count the no of times a specific letter occurs in a text
string. For eg if "My name is Amit" is in cell A1. I want to count the no of times "m" occurs in A1, which is '3'. Plz help. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=LEN(A1)-LEN(SUBSTITUTE(A1,"m",""))
-- Gary''s Student - gsnu200764 "nishad" wrote: I would like to count the no of times a specific letter occurs in a text string. For eg if "My name is Amit" is in cell A1. I want to count the no of times "m" occurs in A1, which is '3'. Plz help. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try:
=LEN(C6)-LEN(SUBSTITUTE(UPPER(C6),"M","")) -- HTH Sandy In Perth, the ancient capital of Scotland and the crowning place of kings Replace @mailinator.com with @tiscali.co.uk "nishad" wrote in message ... I would like to count the no of times a specific letter occurs in a text string. For eg if "My name is Amit" is in cell A1. I want to count the no of times "m" occurs in A1, which is '3'. Plz help. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=LEN(A1)-LEN(SUBSTITUTE(LOWER(A1),"m",""))
-- David Biddulph "nishad" wrote in message ... I would like to count the no of times a specific letter occurs in a text string. For eg if "My name is Amit" is in cell A1. I want to count the no of times "m" occurs in A1, which is '3'. Plz help. |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Gives the answer 2 (not the 3 which the OP wanted) because SUBSTITUTE is
case-sensitive. You need a LOWER. -- David Biddulph "Gary''s Student" wrote in message ... =LEN(A1)-LEN(SUBSTITUTE(A1,"m","")) -- Gary''s Student - gsnu200764 "nishad" wrote: I would like to count the no of times a specific letter occurs in a text string. For eg if "My name is Amit" is in cell A1. I want to count the no of times "m" occurs in A1, which is '3'. Plz help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Count the number of times a name occurs in a column | Excel Worksheet Functions | |||
How can I count the number of times a letter repeats in a string? | Excel Worksheet Functions | |||
I would like to count the # of times a value occurs in Col B base | Excel Worksheet Functions | |||
How to count the number of times something occurs within a certain month | Excel Worksheet Functions | |||
How do I count the times a number occurs in a given criteria? | Excel Discussion (Misc queries) |