PC Review


Reply
Thread Tools Rate Thread

Counting Occurances (2003)

 
 
PeterM
Guest
Posts: n/a
 
      3rd Jan 2010
I have a cell that contains....

"2 red hat, 1 green glove, 2 red glove, 2 yellow hat"

What I need to be able to do is; count the number of items containing "2
red" and return the value 4.

And; count the number of items containing "2 yellow" and return the value 2.

I've tried using COUNTIF, FIND, SEARCH, etc. and can't come up with a way to
do it.

Thank you in advance for your help!
 
Reply With Quote
 
 
 
 
Leung
Guest
Posts: n/a
 
      3rd Jan 2010

hi
can you please put int in grid format so that i can figure it out what you
want?


"PeterM" wrote:

> I have a cell that contains....
>
> "2 red hat, 1 green glove, 2 red glove, 2 yellow hat"
>
> What I need to be able to do is; count the number of items containing "2
> red" and return the value 4.
>
> And; count the number of items containing "2 yellow" and return the value 2.
>
> I've tried using COUNTIF, FIND, SEARCH, etc. and can't come up with a way to
> do it.
>
> Thank you in advance for your help!

 
Reply With Quote
 
Dana DeLouis
Guest
Posts: n/a
 
      3rd Jan 2010
Hi. Here is one way. The 2 is the value, and the 5 is the length of "2
Red"

For "2 Yellow", you would use 2/8 (or 1/4)

=(2/5)*(LEN(A1)-LEN(SUBSTITUTE(A1,"2 red","")))

= = = = = = = = = =
HTH :>)
Dana DeLouis



On 1/3/10 12:49 AM, PeterM wrote:
> I have a cell that contains....
>
> "2 red hat, 1 green glove, 2 red glove, 2 yellow hat"
>
> What I need to be able to do is; count the number of items containing "2
> red" and return the value 4.
>
> And; count the number of items containing "2 yellow" and return the value 2.
>
> I've tried using COUNTIF, FIND, SEARCH, etc. and can't come up with a way to
> do it.
>
> Thank you in advance for your help!

 
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
counting occurances neilb514 Microsoft Excel New Users 1 3rd Sep 2008 06:57 PM
Counting occurances =?Utf-8?B?TGF1cmlT?= Microsoft Excel Misc 8 29th Mar 2007 07:34 PM
Counting Occurances =?Utf-8?B?UnVzdHk=?= Microsoft Excel Misc 5 10th Jul 2006 08:29 PM
RE: counting occurances =?Utf-8?B?Um9uIENvZGVycmU=?= Microsoft Excel Worksheet Functions 2 28th Jun 2006 01:46 AM
RE: counting occurances =?Utf-8?B?TWFyY2Vsbw==?= Microsoft Excel Worksheet Functions 0 26th Jun 2006 08:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:13 PM.