Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Search for instances of X in a sheet

Where X is unknown.
I have 47,881 rows.

I have used =COUNTIF(A1:A47881,"*"&"search phrase"&"*")
with success.

However, this is suggesting I know what "search phrase" is.

The cell could contain any number of medical diagnoses, so I want to run a search the most common matches.

Example, I want to see how many times HYPERTENSION appears in ANY of the cells, or ASTHMA, or even DIABETES.

Since the number of searchable cells is so large, using =SUMPRODUCT((A1:A47881)/COUNTIF(A1:A47881,A1:A47881&"") takes way too long to even see if it works.

What I would love, if possible, is to be able to see the top 100 most commonly used words within the sheet. There is only one column that is being searched so there's nothing else to compare it to except another A column.

Thanks in advance...
an over-zealous excell user

----- EDIT -----
I should probably clarify that the cells in column A could have up to a whole paragraph of unformatted text.

EXAMPLE OF CELL Ax:

HYPERTENSION #401.9
LOW BACK PAIN #724.2
PREGNANCY #V22.2
PPD-NOS
CONT MEDICATION

[END EXAMPLE]
Of course in Excel the format would look more like
Code:
//ansi/rtf0//HYPERTENSION #401.9 [p][/p]LOW BACK PAIN
...etc.

Doc

Last edited by ThaPCdoc : November 9th 05 at 07:41 PM
  #2   Report Post  
CLR
 
Posts: n/a
Default Search for instances of X in a sheet

Have you considered usint the feature Data Filter
AutoFilter?..........seems like it's made to order for what you
want...........

Vaya con Dios,
Chuck, CABGx3



"ThaPCdoc" wrote:


Where X is unknown.
I have 47,881 rows.

I have used *=COUNTIF(A1:A47881,"*"&"search phrase"&"*")*
with success.

However, this is suggesting I know what "search phrase" is.

The cell could contain any number of medical diagnoses, so I want to
run a search the most common matches.

Example, I want to see how many times HYPERTENSION appears in ANY of
the cells, or ASTHMA, or even DIABETES.

Since the number of searchable cells is so large, using
*=SUMPRODUCT((A1:A47881)/COUNTIF(A1:A47881,A1:A47881&"")* takes way too
long to even see if it works.

What I would love, if possible, is to be able to see the top 100 most
commonly used words within the sheet. There is only one column that is
being searched so there's nothing else to compare it to except another A
column.

Thanks in advance...
an over-zealous excell user


--
ThaPCdoc

  #3   Report Post  
DOR
 
Posts: n/a
Default Search for instances of X in a sheet

Your first formula implies that the search phrase could be wrapped by other
text in the cells to be searched. But your second formula seems to imply
that the search phrase exists alone in each cell since you seem to be trying
to count how many times the contents of each cell exists in the entire column
- your formula didn't seem to work on a short array, so I wonder if you left
something out of it.

Without knowing which situation exists, it is hard to suggest an aproach.

"ThaPCdoc" wrote:


Where X is unknown.
I have 47,881 rows.

I have used *=COUNTIF(A1:A47881,"*"&"search phrase"&"*")*
with success.

However, this is suggesting I know what "search phrase" is.

The cell could contain any number of medical diagnoses, so I want to
run a search the most common matches.

Example, I want to see how many times HYPERTENSION appears in ANY of
the cells, or ASTHMA, or even DIABETES.

Since the number of searchable cells is so large, using
*=SUMPRODUCT((A1:A47881)/COUNTIF(A1:A47881,A1:A47881&"")* takes way too
long to even see if it works.

What I would love, if possible, is to be able to see the top 100 most
commonly used words within the sheet. There is only one column that is
being searched so there's nothing else to compare it to except another A
column.

Thanks in advance...
an over-zealous excell user


--
ThaPCdoc

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
AUTO FILTER NOT CHANGING RESULTS Dejan Excel Discussion (Misc queries) 25 October 6th 05 02:01 PM
Index/Contents Sheet philiphales Excel Discussion (Misc queries) 2 September 9th 05 08:58 AM
Search a worksheet, extract rows using a list from another sheet bobf Excel Discussion (Misc queries) 9 August 31st 05 04:56 AM
Impoting data from Sheet 1 to Sheet 2 a-leano Excel Discussion (Misc queries) 1 April 20th 05 01:05 AM
Search for a Sheet Chance224 Excel Discussion (Misc queries) 3 December 14th 04 12:29 AM


All times are GMT +1. The time now is 09:52 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"