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


[TABLE="width: 500"]
<tbody>[TR]
[TD]Input[/TD]
[TD]Output[/TD]
[/TR]
[TR]
[TD][TABLE="width: 150"]
<tbody>[TR]
[TD="class: xl65, width: 150"]10263AM/xbsdhbs[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 150"]
<tbody>[TR]
[TD="class: xl65"]10263AM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 150"]
<tbody>[TR]
[TD="class: xl65, width: 150"]075893-SE-1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 150"]
<tbody>[TR]
[TD="class: xl65, width: 150"]075893[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 150"]
<tbody>[TR]
[TD="class: xl65, width: 150"]052263[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 150"]
<tbody>[TR]
[TD="class: xl65, width: 150"]052263[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]


Thanks In Advance

Please Help me
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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