![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 30
|
I'm scratching my head over this one.
In a cell, I have this text: XXX-XXX I want to use the FIND function to determine the position of the '-'. I can do that OK. The problem I have is, the character I'm looking for will not always be the same. It will be either a space, a dash (-) or a slash (/). Can I use the FIND function with multiple criteria to do this? (Lotus 123 did this very simply with the #OR# function) Regards, Andrew. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
=FIND("-",SUBSTITUTE(A1,"/","-"))
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 30
|
Thanks for trying, but I don't want to alter the original data.
I want a single FIND formula to return 5 if any of the three examples below are tested. XXXX XXXX, or, XXXX-XXXX, or, XXXX/XXXX, |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
This formula doesn't "alter the original data"!!! |
|
|
|
|
|
|
#5 | ||
|
New Member
Join Date: Apr 2002
Posts: 30
|
Quote:
I've since tried your revised solution and that does work. Thank you. |
||
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|