Split strange symbol (like strikethrough) out of text.

S.H.A.D.O.

Well-known Member
Joined
Sep 6, 2005
Messages
1,915
Good evening,

I have a long list that looks like this:

[TABLE="width: 447"]
<tbody>[TR]
[TD]VPN—Virtual Private Network
[/TD]
[/TR]
[TR]
[TD]VPU—Visual Processing Unit
[/TD]
[/TR]
[TR]
[TD]WAN—Wide Area Network
[/TD]
[/TR]
[TR]
[TD]WAP—Wireless Access Point
[/TD]
[/TR]
[TR]
[TD]WAP—Wireless Application Protocol
[/TD]
[/TR]
[TR]
[TD]WINS—Windows Internet Name Service
[/TD]
[/TR]
[TR]
[TD]WLAN—Wireless Local Area Network

I want to split each cell into two columns, basically without what looks like the extended minus sign, hyphen. I have tried text-to-columns and formulas such as...

Code:
=LEFT(B738,FIND("-",B738)-1)
=RIGHT(B738,LEN(B738)-FIND("-",B738))

... but to no avail.

Any help will be greatly appreciated.

Thanks in advance.
[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Brilliant, thanks Orionator, that worked perfectly.

I think I got to the stage where I couldn't see the wood for the trees.

Thanks again.
 
Upvote 0
In cases like this, I LOVE the KISS method. And then I often find myself face-palming when I realize what I've done.
 
Upvote 0
Hi,

That's an "em dash", glad you got it sorted out, you can also try these,

A single formula for both columns, B1 formula copied down and across to C7
Separate formulas for each column, E1 and F1 formulas copied down.


Excel 2010
ABCDEF
1VPNVirtual Private NetworkVPNVirtual Private NetworkVPNVirtual Private Network
2VPUVisual Processing UnitVPUVisual Processing UnitVPUVisual Processing Unit
3WANWide Area NetworkWANWide Area NetworkWANWide Area Network
4WAPWireless Access PointWAPWireless Access PointWAPWireless Access Point
5WAPWireless Application ProtocolWAPWireless Application ProtocolWAPWireless Application Protocol
6WINSWindows Internet Name ServiceWINSWindows Internet Name ServiceWINSWindows Internet Name Service
7WLANWireless Local Area NetworkWLANWireless Local Area NetworkWLANWireless Local Area Network
Sheet30
Cell Formulas
RangeFormula
B1=TRIM(MID(SUBSTITUTE($A1,CHAR(151),REPT(" ",100)),COLUMNS($B1:B1)*100-99,100))
E1=LEFT(A1,FIND(CHAR(151),A1)-1)
F1=MID(A1,FIND(CHAR(151),A1)+1,255)
 
Upvote 0
Thanks for the formulas and explanations jtakw, it is appreciated.

The first formula works the best because some of the cells had a space at the beggining. With the first formula it took out those spaces so I did not have to TRIM the results.

The second formula also worked but I would have to TRIM the results.

Thanks again.
 
Upvote 0
You're welcome, glad it was useful.
 
Upvote 0

Forum statistics

Threads
1,223,054
Messages
6,169,834
Members
452,284
Latest member
TKM623

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