Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Find one character or another and display


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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Find one character or another and display

How about this...

=IF(ISERROR(FIND("R",G6)),"L","R")

Of course, the usage of R and L must be confined to the characters after the last dash (where your example seems to show it has to be). If you can possibly have an R or L in one of the first two groupings of characters, then you will need a different formula.

Rick


"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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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.
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
Limited character display Steve_zsli Excel Discussion (Misc queries) 5 August 8th 07 03:35 PM
Display characters present after a specific character [email protected] Excel Discussion (Misc queries) 3 December 11th 06 03:08 AM
Character display problem importing into Excel RateTheBuilder Excel Discussion (Misc queries) 2 July 25th 06 11:45 AM
Want to input one character to cause related string to display in. Peace of Christ be with you Excel Worksheet Functions 6 February 20th 05 06:33 AM
FIND a character Brian H Excel Discussion (Misc queries) 2 January 27th 05 02:56 PM


All times are GMT +1. The time now is 12:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"