Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Trying to search a block of text for presence and frequency of terms in Excel

The problem:

I have a list of text terms and phrases in an Excel spreadsheet. I
want to check large blocks of text (paragraphs, essays, etc.) for the
presence and the frequency of these terms and phrases. Can someone
please suggest the easiest or best route? Should I be looking into SQL
and indexing functions here?

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Trying to search a block of text for presence and frequency of ter

for each cell in Range("A1:A10")
msgbox cell.value & ": " & application.Countif( _
Worksheets("Sheet1").Range("A1:Z200"),"*" & _
cell.Value & "*")
Next

Probably isn't the complete solution, but should give you some ideas.

It counts how many cells contain the searched for string (but if a cell has
it more than once, the cell is only counted once)

--
Regards,
Tom Ogilvy


" wrote:

The problem:

I have a list of text terms and phrases in an Excel spreadsheet. I
want to check large blocks of text (paragraphs, essays, etc.) for the
presence and the frequency of these terms and phrases. Can someone
please suggest the easiest or best route? Should I be looking into SQL
and indexing functions here?

Thanks!


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
Two search category & two search terms avk Excel Discussion (Misc queries) 1 June 2nd 10 01:25 PM
Search returning ans in terms of Rows & Columns Will Excel Discussion (Misc queries) 10 April 5th 07 07:53 PM
searching a large database with a long list of search terms [email protected] Excel Programming 32 January 10th 06 06:23 AM
Search files, confirm presence Ann Excel Programming 3 November 16th 05 11:32 PM
how to set up a vlookup table with 2 search terms? WendyL Excel Worksheet Functions 3 May 12th 05 01:08 PM


All times are GMT +1. The time now is 06:48 PM.

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"