Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / August 2006

Tip: Looking for answers? Try searching our database.

How to format a cell to reflect a NIC's MAC Address ? (put in dash

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jfen - 17 Aug 2006 20:35 GMT
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 - 17 Aug 2006 20:45 GMT
what about to use =substitute(a2,"-","")

hth
Signature

regards from Brazil
Thanks in advance for your feedback.
Marcelo

> 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 - 17 Aug 2006 21:35 GMT
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>.)

> 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.

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.