Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Limited character display | Excel Discussion (Misc queries) | |||
Display characters present after a specific character | Excel Discussion (Misc queries) | |||
Character display problem importing into Excel | Excel Discussion (Misc queries) | |||
Want to input one character to cause related string to display in. | Excel Worksheet Functions | |||
FIND a character | Excel Discussion (Misc queries) |