Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
finding words in the cell | Excel Worksheet Functions | |||
Finding 2 or more words in excel | Excel Discussion (Misc queries) | |||
Finding Repeated Words | Excel Worksheet Functions | |||
Finding Arabic words in lists in Excel 2007 | Excel Discussion (Misc queries) | |||
problem in finding words into cells of a column | Excel Discussion (Misc queries) |