View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Jambruins
 
Posts: n/a
Default Find text within text

Ron,
That works great except I should have added another row as some of the
rows do not have the @ symbol. Here is an example of a row without the @
symbol: 05/08/2005 Seattle L 4-6 R. Franklin (R) W. Miller (R) -140/10u
-125 L/P

How would I change the formula? Thanks for your help.



"Ron Coderre" wrote:

Try something like this:

D1: =TRIM(MID(LEFT(A1,MIN(SEARCH({" W "," L "},A1&" W L
"))-2),SEARCH("@",A1)+2,255))

Notice the spaces before and after the W's and the L's

Copy that formula down as far as you need.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Jambruins" wrote:

I have the following in cells A1:A4:

04/03/2005 @ NY Yankees L 2-9 D. Wells R. Johnson 180/8.5o -120 L/O
04/05/2005 @ NY Yankees L 3-4 M. Clement C. Pavano 140/9.5o -125 L/U
04/06/2005 @ NY Yankees W 7-3 T. Wakefield M. Mussina 151/10o -115 W/P
04/08/2005 @ Toronto W 6-5 B. Arroyo D. Bush -130/10o -120 W/O

I would like cells D1:D4 to find the team in cells A1:A4 and enter that into
D1:D4. Any idea how to do this? Thanks.