Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default How to count the occurences in my range with 2 characters only?

Hello There,

I am wondering how you can count the number of occurences in myRange that
contains 2 charters only?

This function does obviously not do the trick:
=SUMPRODUCT(--(ISNUMBER(SEARCH("??",myRange))))
Brgds Jen


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How to count the occurences in my range with 2 characters only?

Try this:

=SUMPRODUCT(--(LEN(myRange)=2))

Hope this helps.

Pete

On Jun 26, 12:59 pm, "Jen" wrote:
Hello There,

I am wondering how you can count the number of occurences in myRange that
contains 2 charters only?

This function does obviously not do the trick:
=SUMPRODUCT(--(ISNUMBER(SEARCH("??",myRange))))
Brgds Jen



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default How to count the occurences in my range with 2 characters only?

Hi Pete,

Thanks! WHat it needs to do...! :)


How would an array-formula look like to do the same? I tried
Ctrl+Shift+Enter on =COUNTA(LEN(myRange)=2)
but that's not it.
Jen

"Pete_UK" wrote in message
oups.com...
Try this:

=SUMPRODUCT(--(LEN(myRange)=2))

Hope this helps.

Pete

On Jun 26, 12:59 pm, "Jen" wrote:
Hello There,

I am wondering how you can count the number of occurences in myRange that
contains 2 charters only?

This function does obviously not do the trick:
=SUMPRODUCT(--(ISNUMBER(SEARCH("??",myRange))))
Brgds Jen





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How to count the occurences in my range with 2 characters only?

You could try this:

=SUM(IF(LEN(myRange)=2,1))

commit with CTRL-SHIFT-ENTER.

Hope this helps.

Pete

On Jun 26, 3:37 pm, "Jen" wrote:
Hi Pete,

Thanks! WHat it needs to do...! :)

How would an array-formula look like to do the same? I tried
Ctrl+Shift+Enter on =COUNTA(LEN(myRange)=2)
but that's not it.
Jen

"Pete_UK" wrote in message

oups.com...



Try this:


=SUMPRODUCT(--(LEN(myRange)=2))


Hope this helps.


Pete


On Jun 26, 12:59 pm, "Jen" wrote:
Hello There,


I am wondering how you can count the number of occurences in myRange that
contains 2 charters only?


This function does obviously not do the trick:
=SUMPRODUCT(--(ISNUMBER(SEARCH("??",myRange))))
Brgds Jen- Hide quoted text -


- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default How to count the occurences in my range with 2 characters only?

Hi Pete,
Yes it worked! But htat you knew already ;)

Jen

"Pete_UK" wrote in message
ps.com...
You could try this:

=SUM(IF(LEN(myRange)=2,1))

commit with CTRL-SHIFT-ENTER.

Hope this helps.

Pete

On Jun 26, 3:37 pm, "Jen" wrote:
Hi Pete,

Thanks! WHat it needs to do...! :)

How would an array-formula look like to do the same? I tried
Ctrl+Shift+Enter on =COUNTA(LEN(myRange)=2)
but that's not it.
Jen

"Pete_UK" wrote in message

oups.com...



Try this:


=SUMPRODUCT(--(LEN(myRange)=2))


Hope this helps.


Pete


On Jun 26, 12:59 pm, "Jen" wrote:
Hello There,


I am wondering how you can count the number of occurences in myRange
that
contains 2 charters only?


This function does obviously not do the trick:
=SUMPRODUCT(--(ISNUMBER(SEARCH("??",myRange))))
Brgds Jen- Hide quoted text -


- Show quoted text -







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How to count the occurences in my range with 2 characters only?

Thanks for feeding back, Jen - glad it worked for you.

Pete


On Jun 27, 7:45 am, "Jen" wrote:
Hi Pete,
Yes it worked! But htat you knew already ;)

Jen

"Pete_UK" wrote in message

ps.com...



You could try this:


=SUM(IF(LEN(myRange)=2,1))


commit with CTRL-SHIFT-ENTER.


Hope this helps.


Pete


On Jun 26, 3:37 pm, "Jen" wrote:
Hi Pete,


Thanks! WHat it needs to do...! :)


How would an array-formula look like to do the same? I tried
Ctrl+Shift+Enter on =COUNTA(LEN(myRange)=2)
but that's not it.
Jen


"Pete_UK" wrote in message


groups.com...


Try this:


=SUMPRODUCT(--(LEN(myRange)=2))


Hope this helps.


Pete


On Jun 26, 12:59 pm, "Jen" wrote:
Hello There,


I am wondering how you can count the number of occurences in myRange
that
contains 2 charters only?


This function does obviously not do the trick:
=SUMPRODUCT(--(ISNUMBER(SEARCH("??",myRange))))
Brgds Jen- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



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 number of occurences within a time range [email protected] Excel Discussion (Misc queries) 9 January 20th 13 05:54 PM
Counting occurences of characters in a cell John Excel Worksheet Functions 3 April 27th 07 03:40 PM
Count # of Occurences Sweepea Excel Discussion (Misc queries) 6 December 14th 06 02:27 AM
How do I count occurences in a date range? Jeremy Excel Worksheet Functions 2 July 8th 05 11:21 PM
How do I count the number of alpha occurences in a range? CRM Excel Worksheet Functions 2 May 30th 05 04:08 PM


All times are GMT +1. The time now is 02:30 AM.

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"