PC Review


Reply
Thread Tools Rate Thread

How to count the occurences in my range with 2 characters only?

 
 
Jen
Guest
Posts: n/a
 
      26th Jun 2007
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


 
Reply With Quote
 
 
 
 
Pete_UK
Guest
Posts: n/a
 
      26th Jun 2007
Try this:

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

Hope this helps.

Pete

On Jun 26, 12:59 pm, "Jen" <Jen.Carllson_NGM...@gmail.com> 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



 
Reply With Quote
 
Jen
Guest
Posts: n/a
 
      26th Jun 2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Try this:
>
> =SUMPRODUCT(--(LEN(myRange)=2))
>
> Hope this helps.
>
> Pete
>
> On Jun 26, 12:59 pm, "Jen" <Jen.Carllson_NGM...@gmail.com> 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

>
>



 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      27th Jun 2007
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" <Jen.Carllson_NGM...@gmail.com> 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" <pashu...@auditel.net> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > Try this:

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

>
> > Hope this helps.

>
> > Pete

>
> > On Jun 26, 12:59 pm, "Jen" <Jen.Carllson_NGM...@gmail.com> 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 -



 
Reply With Quote
 
Jen
Guest
Posts: n/a
 
      27th Jun 2007
Hi Pete,
Yes it worked! But htat you knew already

Jen

"Pete_UK" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <Jen.Carllson_NGM...@gmail.com> 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" <pashu...@auditel.net> wrote in message
>>
>> news:(E-Mail Removed)...
>>
>>
>>
>> > Try this:

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

>>
>> > Hope this helps.

>>
>> > Pete

>>
>> > On Jun 26, 12:59 pm, "Jen" <Jen.Carllson_NGM...@gmail.com> 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 -

>
>



 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      27th Jun 2007
Thanks for feeding back, Jen - glad it worked for you.

Pete


On Jun 27, 7:45 am, "Jen" <Jen.Carllson_NGM...@gmail.com> wrote:
> Hi Pete,
> Yes it worked! But htat you knew already
>
> Jen
>
> "Pete_UK" <pashu...@auditel.net> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > 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" <Jen.Carllson_NGM...@gmail.com> 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" <pashu...@auditel.net> wrote in message

>
> >>news:(E-Mail Removed)...

>
> >> > Try this:

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

>
> >> > Hope this helps.

>
> >> > Pete

>
> >> > On Jun 26, 12:59 pm, "Jen" <Jen.Carllson_NGM...@gmail.com> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count occurences over range if a certain criteria met Richhall Microsoft Excel New Users 6 31st Dec 2009 06:41 AM
Count occurences of text in range only when Yes appears in other c eliyahuz Microsoft Excel Worksheet Functions 9 26th Oct 2009 05:23 PM
Count number of occurences within a time range zebulebu@gmail.com Microsoft Excel Misc 5 10th Sep 2006 06:48 AM
How do I count occurences in a date range? =?Utf-8?B?SmVyZW15?= Microsoft Excel Worksheet Functions 2 8th Jul 2005 11:21 PM
How do I count the number of alpha occurences in a range? =?Utf-8?B?Q1JN?= Microsoft Excel Worksheet Functions 2 30th May 2005 04:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:31 PM.