ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to format a cell to reflect a NIC's MAC Address ? (put in dash (https://www.excelbanter.com/excel-worksheet-functions/105681-how-format-cell-reflect-nics-mac-address-put-dash.html)

jfen

How to format a cell to reflect a NIC's MAC Address ? (put in dash
 
I have a long column of NIC's MAC Addresses WITHOUT the dashes between every
2 characters. Need to know how to create an excel custom format to make them
all have the dashes without manually putting in dashes.

Marcelo

How to format a cell to reflect a NIC's MAC Address ? (put in dash
 
what about to use =substitute(a2,"-","")

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"jfen" escreveu:

I have a long column of NIC's MAC Addresses WITHOUT the dashes between every
2 characters. Need to know how to create an excel custom format to make them
all have the dashes without manually putting in dashes.


Dave Peterson

How to format a cell to reflect a NIC's MAC Address ? (put in dash
 
You could insert a helper column and make it look like you want:

=if(a1="","",mid(a1,1,2)&"-"&mid(a1,3,2)&"-"&mid(a1,5,2)&"-"&mid(a1,7,2)& ...

(I got tired! Just continue until you're out of numbers! <vbg.)

jfen wrote:

I have a long column of NIC's MAC Addresses WITHOUT the dashes between every
2 characters. Need to know how to create an excel custom format to make them
all have the dashes without manually putting in dashes.


--

Dave Peterson


All times are GMT +1. The time now is 03:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com