Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Finding different words in a cell

I have a spreadsheet that has several columns & rows. One column contains
the type of program the customer is on (ie., gold, silver, bronze) although
it is not spelled out that simply - it is Progam 1 Gold 09, etc. I am
trying to create a formula that will only return the words gold, silver or
bronze. I have tried using Mid & Find, but can only make that work for one
of the programs. Any help would be appreciated. thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Finding different words in a cell

Hi,

If all of the strings are the same format

Progam 1 Gold 09
Progam 1 Silver 09
Progam 1 Bronze 09

then try this formula

=MID(MID(MID(SUBSTITUTE(A1," ","^",2),1,256),FIND("^",SUBSTITUTE(A1,"
","^",2)),256),2,FIND(" ",MID(MID(SUBSTITUTE(A1,"
","^",2),1,256),FIND("^",SUBSTITUTE(A1," ","^",2)),256))-2)

Mike

"JRichardson" wrote:

I have a spreadsheet that has several columns & rows. One column contains
the type of program the customer is on (ie., gold, silver, bronze) although
it is not spelled out that simply - it is Progam 1 Gold 09, etc. I am
trying to create a formula that will only return the words gold, silver or
bronze. I have tried using Mid & Find, but can only make that work for one
of the programs. Any help would be appreciated. thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Finding different words in a cell

If all programs are of one of these types, then:

=IF(ISERROR(SEARCH("Bronze",A2)),IF(ISERROR(SEARCH ("Silver",A2)),"Gold","Silver"),"Bronze")

else, you'll have to add another if to search for Bronze and return, say, ""
if it's an error.

"JRichardson" wrote:

I have a spreadsheet that has several columns & rows. One column contains
the type of program the customer is on (ie., gold, silver, bronze) although
it is not spelled out that simply - it is Progam 1 Gold 09, etc. I am
trying to create a formula that will only return the words gold, silver or
bronze. I have tried using Mid & Find, but can only make that work for one
of the programs. Any help would be appreciated. thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Finding different words in a cell

Try this:

=LOOKUP(1E100,SEARCH({"gold","silver","bronze"},A1 ),{"gold","silver","bronze"})

Or, list the search words in a range of cells:

C1 = gold
C2 = silver
C3 = bronze

=LOOKUP(1E100,SEARCH(C$1:C$3,A1),C$1:C$3)

--
Biff
Microsoft Excel MVP


"JRichardson" wrote in message
...
I have a spreadsheet that has several columns & rows. One column contains
the type of program the customer is on (ie., gold, silver, bronze)
although
it is not spelled out that simply - it is Progam 1 Gold 09, etc. I am
trying to create a formula that will only return the words gold, silver or
bronze. I have tried using Mid & Find, but can only make that work for
one
of the programs. Any help would be appreciated. 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
finding words in the cell Igneshwara reddy[_2_] Excel Worksheet Functions 6 August 31st 09 03:27 PM
Finding 2 or more words in excel golden Excel Discussion (Misc queries) 7 August 21st 09 04:38 PM
Finding Repeated Words Té Excel Worksheet Functions 4 June 9th 09 10:54 PM
Finding Arabic words in lists in Excel 2007 علاء Excel Discussion (Misc queries) 0 October 9th 08 06:20 AM
problem in finding words into cells of a column Claudio P. Excel Discussion (Misc queries) 3 January 25th 06 10:10 PM


All times are GMT +1. The time now is 05:29 PM.

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"