PC Review


Reply
Thread Tools Rate Thread

Data segregation..

 
 
praveen
Guest
Posts: n/a
 
      16th Dec 2008
Hi,
I've a Spread sheet where a word comes in different part of a sentence. Is
there any way to list the find how many times the word is repeated.

Regards,
Praveen..
 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      16th Dec 2008
Praveen,

Array enter (enter using Ctrl-Shift-Enter) a formula like

=SUM(LEN(A2:A100)-LEN(SUBSTITUTE(LOWER(A2:A100),LOWER(D2),"")))/LEN(D2)

Where D2 contains the word you are looking for, and A2:A100 have the sentences.

Note that this will also look at word parts and will ignore case: if you are looking for the word
"Sheet", it will count Sheet, sheet, spreadsheet, sheets, etc.


HTH,
Bernie
MS Excel MVP


"praveen" <(E-Mail Removed)> wrote in message
news:EBA96635-A7F8-4D0D-AB90-(E-Mail Removed)...
> Hi,
> I've a Spread sheet where a word comes in different part of a sentence. Is
> there any way to list the find how many times the word is repeated.
>
> Regards,
> Praveen..



 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      16th Dec 2008
Assuming the sentence is in A1 and the word you want to count is in B1...

=SUMPRODUCT(--ISNUMBER(SEARCH(MID(A1,ROW(INDIRECT("A$1:A"&LEN(A1))),LEN($B$1)),$B$1)))

Note that the search is not case sensitive; if you need it to be, then
change SEARCH to FIND. Also note that the above will count occurrences of
your word if it appears inside another word. For example, if you wanted to
count the number of times "the" appeared in the text in A1, the above
formula would count its occurrence inside the word "mother".

--
Rick (MVP - Excel)


"praveen" <(E-Mail Removed)> wrote in message
news:EBA96635-A7F8-4D0D-AB90-(E-Mail Removed)...
> Hi,
> I've a Spread sheet where a word comes in different part of a sentence.
> Is
> there any way to list the find how many times the word is repeated.
>
> Regards,
> Praveen..


 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      16th Dec 2008
Not sure what I was thinking there... use Bernie's formula for sure.

--
Rick (MVP - Excel)


"Rick Rothstein" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Assuming the sentence is in A1 and the word you want to count is in B1...
>
> =SUMPRODUCT(--ISNUMBER(SEARCH(MID(A1,ROW(INDIRECT("A$1:A"&LEN(A1))),LEN($B$1)),$B$1)))
>
> Note that the search is not case sensitive; if you need it to be, then
> change SEARCH to FIND. Also note that the above will count occurrences of
> your word if it appears inside another word. For example, if you wanted to
> count the number of times "the" appeared in the text in A1, the above
> formula would count its occurrence inside the word "mother".
>
> --
> Rick (MVP - Excel)
>
>
> "praveen" <(E-Mail Removed)> wrote in message
> news:EBA96635-A7F8-4D0D-AB90-(E-Mail Removed)...
>> Hi,
>> I've a Spread sheet where a word comes in different part of a sentence.
>> Is
>> there any way to list the find how many times the word is repeated.
>>
>> Regards,
>> Praveen..

>


 
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
DCOUNT segregation DubboPete Microsoft Access Form Coding 2 22nd Mar 2009 09:11 PM
multivalued field segregation and re-combination =?Utf-8?B?bWJheWN1cmE=?= Microsoft Access 0 5th Jun 2007 06:50 PM
how do I get eliminate the date segregation of my messages =?Utf-8?B?QW5nZWxv?= Microsoft Outlook Discussion 2 9th Jul 2005 07:33 PM
Segregation of networks in w2k svr. Jimmy Seow Microsoft Windows 2000 Networking 4 16th Mar 2005 02:08 PM
Drives segregation Alex Microsoft Windows 2000 Hardware 3 5th Dec 2004 12:17 AM


Features
 

Advertising
 

Newsgroups
 


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