Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
Is there a function that I can use to determine the number of times the
letter "Y" appears in a single cell? Thanks, Paul |
#2
![]() |
|||
|
|||
![]()
Try...
=LEN(A1)-LEN(SUBSTITUTE(A1,"Y","")) ....which is case-sensitive. If you don't want it to be case-sensitive, try the following instead... =LEN(A1)-LEN(SUBSTITUTE(UPPER(A1),"Y","")) or =LEN(A1)-LEN(SUBSTITUTE(UPPER(A1),UPPER(B1),"")) ....where B1 contains the letter of interest. Hope this helps! In article , "PCLIVE" wrote: Is there a function that I can use to determine the number of times the letter "Y" appears in a single cell? Thanks, Paul |
#3
![]() |
|||
|
|||
![]()
Works great!
Thanks, Paul "Domenic" wrote in message ... Try... =LEN(A1)-LEN(SUBSTITUTE(A1,"Y","")) ...which is case-sensitive. If you don't want it to be case-sensitive, try the following instead... =LEN(A1)-LEN(SUBSTITUTE(UPPER(A1),"Y","")) or =LEN(A1)-LEN(SUBSTITUTE(UPPER(A1),UPPER(B1),"")) ...where B1 contains the letter of interest. Hope this helps! In article , "PCLIVE" wrote: Is there a function that I can use to determine the number of times the letter "Y" appears in a single cell? Thanks, Paul |
#4
![]() |
|||
|
|||
![]()
Hi,
You may try the following array formula (Ctrl+Shift+Enter) =COUNT(IF(MID($C$4,ROW(1:20),1)="y",1)) $C$4 isthe cell containing the word in which you want to count the y's Regards, Ashish Mathur "PCLIVE" wrote: Is there a function that I can use to determine the number of times the letter "Y" appears in a single cell? Thanks, Paul |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to format only a specific character or number in each cell withina range of cells | Excel Worksheet Functions | |||
Counting the number of letters in a cell | Excel Discussion (Misc queries) | |||
Counting specific text in a cell | Excel Worksheet Functions | |||
inserting data from a row to a cell, when the row number is specified by a formula in a cell | New Users to Excel | |||
Search for a specific character in a cell in an if statement | Excel Worksheet Functions |