Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How to count occurence of multiple characters in a cell
Is there a way to count the occurences of multiple characters in a cell?
For example, the cell might contain: smith,john(1234), smith,mary(1234), doe,john(2345), etc etc. I would like to be able to count how many times (1234) appears in the cell. I tried using LEN, but that only counts one character. Mary-Lou |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How to count occurence of multiple characters in a cell
=(LEN(A1)-LEN(SUBSTITUTE(A1,"1234","")))/LEN("1234")
-- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "MLK" wrote in message ... Is there a way to count the occurences of multiple characters in a cell? For example, the cell might contain: smith,john(1234), smith,mary(1234), doe,john(2345), etc etc. I would like to be able to count how many times (1234) appears in the cell. I tried using LEN, but that only counts one character. Mary-Lou |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How to count occurence of multiple characters in a cell
=COUNTIF(A1:A100,"*1234*")
"MLK" wrote: Is there a way to count the occurences of multiple characters in a cell? For example, the cell might contain: smith,john(1234), smith,mary(1234), doe,john(2345), etc etc. I would like to be able to count how many times (1234) appears in the cell. I tried using LEN, but that only counts one character. Mary-Lou |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How to count occurence of multiple characters in a cell
Thanks for your response, but I did try something like this, but this is a
cell range where I only need to count the occurences in 1 cell. Thanks, Mary-Lou "Teethless mama" wrote: =COUNTIF(A1:A100,"*1234*") "MLK" wrote: Is there a way to count the occurences of multiple characters in a cell? For example, the cell might contain: smith,john(1234), smith,mary(1234), doe,john(2345), etc etc. I would like to be able to count how many times (1234) appears in the cell. I tried using LEN, but that only counts one character. Mary-Lou |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How to count occurence of multiple characters in a cell
Wonderful! This works exactly as I wanted.
Thank you very much, Mary-Lou. "Bob Phillips" wrote: =(LEN(A1)-LEN(SUBSTITUTE(A1,"1234","")))/LEN("1234") -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "MLK" wrote in message ... Is there a way to count the occurences of multiple characters in a cell? For example, the cell might contain: smith,john(1234), smith,mary(1234), doe,john(2345), etc etc. I would like to be able to count how many times (1234) appears in the cell. I tried using LEN, but that only counts one character. Mary-Lou |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
count occurence and present results | Excel Worksheet Functions | |||
Using Sumproduct to count text occurence | Excel Worksheet Functions | |||
Count the occurence of more than one condition | Excel Worksheet Functions | |||
how to count occurence of numbers separated by , in a single cell | Excel Worksheet Functions | |||
Count the occurence of multiple (4 conditions). - Need urgent help | Excel Discussion (Misc queries) |