View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_] Fred Smith[_4_] is offline
external usenet poster
 
Posts: 2,389
Default Find one character or another and display

Try something like:

=if(isnumber(find("R",a1)),"R",if(isnumber(find("L ",a1)),"L","Neither"))

Regards,
Fred

"c8tz" wrote in message
...

text string: xxx-23xz-34L or can be xxx-23exv-24R0

using the formula below, how do I put it such that if it finds an R
than it puts R else if L then it puts L.

IF((MID(G6,FIND("R",G6,1),1))="R","R","L")

trying the OR function but getting confused.

and the FIND({"R","L"}.... doesn't seem to work right.

Thanks for your help