Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
PCLIVE
 
Posts: n/a
Default Counting the number of times a specific character appears in a cell

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   Report Post  
Domenic
 
Posts: n/a
Default Counting the number of times a specific character appears in a cell

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   Report Post  
PCLIVE
 
Posts: n/a
Default Counting the number of times a specific character appears in a cell

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   Report Post  
Ashish Mathur
 
Posts: n/a
Default Counting the number of times a specific character appears in a cel

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to format only a specific character or number in each cell withina range of cells Colleen Excel Worksheet Functions 1 September 12th 05 05:44 PM
Counting the number of letters in a cell beefycj5 Excel Discussion (Misc queries) 2 June 1st 05 08:28 PM
Counting specific text in a cell Steve Excel Worksheet Functions 7 January 26th 05 05:51 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
Search for a specific character in a cell in an if statement mcl Excel Worksheet Functions 2 January 4th 05 09:14 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"