Function to Remove Special Characters

bcarey1

New Member
Joined
Jul 12, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am trying to build a spreadsheet that will convert MAC addresses into different formats. I have figured out how to take the 12 character address and format into the groupings I need with a specified delimiter. What I am stuck on is, trying to convert a MAC address with special characters, primarily : . -, into just numbers and letter. Find and Replace works, but is a clunky solution. Is there a function to remove just special characters?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Assuming your MAC address is in cell A1, does this formula do what you want..

=TEXTSPLIT(A1,{":","-","."})
 
Upvote 0
I think like this :

=TEXTJOIN(,,TEXTSPLIT(A1,{":","-","."}))
 
Upvote 0
Solution
I think like this :

=TEXTJOIN(,,TEXTSPLIT(A1,{":","-","."}))
That worked perfectly. With just TEXTSPLIT there were spaces left over, but with the TEXTJOIN added I got just what I was looking for. Thanks!
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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