Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
lee lee is offline
external usenet poster
 
Posts: 184
Default HOW TO COUNT INSIDE A CELL

If the cell contains - r1, r2, r3 count=3 i.e r 3 times
if the cell contains d11,d12,d78.d56- I want to count number of times d
appears a cell.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default HOW TO COUNT INSIDE A CELL

Try these:

=LEN(A1)-LEN(SUBSTITUTE(UPPER(A1),UPPER("R"),""))

=LEN(A1)-LEN(SUBSTITUTE(UPPER(A1),UPPER("D"),""))

--
Biff
Microsoft Excel MVP


"Lee" wrote in message
...
If the cell contains - r1, r2, r3 count=3 i.e r 3 times
if the cell contains d11,d12,d78.d56- I want to count number of times d
appears a cell.



  #3   Report Post  
Posted to microsoft.public.excel.misc
lee lee is offline
external usenet poster
 
Posts: 184
Default HOW TO COUNT INSIDE A CELL



"Lee" wrote:

If the cell contains - r1, r2, r3 count=3 i.e r 3 times
if the cell contains d11,d12,d78.d56- I want to count number of times d
appears a cell.


Thanks for the quick response. It works wonderfully. Much appreciate it
Lee
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default HOW TO COUNT INSIDE A CELL

On Tue, 14 Jul 2009 18:22:01 -0700, Lee wrote:

If the cell contains - r1, r2, r3 count=3 i.e r 3 times
if the cell contains d11,d12,d78.d56- I want to count number of times d
appears a cell.



First, create a Named Formula
Names in Workbook: Seq
Refers to: =ROW(INDEX($1:$65536,1,1):INDEX($1:$65536,255,1))

A1: your data
B1: letter to find (e.g. d)
C1: =SUMPRODUCT(--(MID(A1,seq,1)=B1))
--ron
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default HOW TO COUNT INSIDE A CELL

On Tue, 14 Jul 2009 18:22:01 -0700, Lee wrote:

If the cell contains - r1, r2, r3 count=3 i.e r 3 times
if the cell contains d11,d12,d78.d56- I want to count number of times d
appears a cell.


Ignore my response. It works, but I was in another world when I composed it
:-)
--ron


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default HOW TO COUNT INSIDE A CELL

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Lee" wrote in message
...


"Lee" wrote:

If the cell contains - r1, r2, r3 count=3 i.e r 3 times
if the cell contains d11,d12,d78.d56- I want to count number of times d
appears a cell.


Thanks for the quick response. It works wonderfully. Much appreciate it
Lee



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
Count days inside 2 dates Call me Ana, Ana Pego New Users to Excel 2 October 20th 08 12:46 AM
Entering digits in a cell with numbers already inside cell [email protected] Excel Worksheet Functions 4 August 18th 08 10:34 PM
How to Count values inside a cell when refered elsewhere? littlejess22 Excel Worksheet Functions 4 August 21st 07 01:43 PM
Right-click inside of a cell mimi Excel Worksheet Functions 3 May 12th 06 07:28 PM
Macro Inside Cell dah Excel Discussion (Misc queries) 3 January 23rd 06 09:08 PM


All times are GMT +1. The time now is 04:24 AM.

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

About Us

"It's about Microsoft Excel"