View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
c8tz c8tz is offline
external usenet poster
 
Posts: 7
Default Find one character or another and display

On Jan 18, 3:54*pm, "Fred Smith" wrote:
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- Hide quoted text -


- Show quoted text -


thanks heaps for both of your help. got what i wanted.