extract Letters between Special Characters

ravi2628

Board Regular
Joined
Dec 20, 2017
Messages
221
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
HI Every one,


i need a output in the following format could any one please help me out


InputOutput
10263AM/xbsdhbs

<tbody>
</tbody>
10263AM

<tbody>
</tbody>
075893-SE-1

<tbody>
</tbody>
075893

<tbody>
</tbody>
052263

<tbody>
</tbody>
052263

<tbody>
</tbody>

<tbody>
</tbody>


Thanks In Advance

Please Help me
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi - what are the rules for producing the output ?

Is it as simple as . . .
Search for a "/" character in the Input, and if found, output all characters to the left ?
If not, search for a "-" character in the Input, and if found, output all characters to the left ?
If not, output = input ?

If that's it, you can get that with . . .
Code:
=IFERROR(LEFT(A1,FIND("/",A1)-1),IFERROR(LEFT(A1,FIND("-",A1)-1),A1))
 
Upvote 0
We need you to clearly define that the phone are.
From the examples you posted, it looks like you want everything to the left of any "/" or "-" characters.
Is that correct? Are there any other characters we need to consider?
 
Upvote 0
To return everything in left of "/" or "-" character

=LEFT(A1,MIN(FIND({"/","-"},A1&"/-"))-1)

Regards
Bosco
 
Upvote 0
Solution

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top