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 / New Users / July 2007

Tip: Looking for answers? Try searching our database.

Cell Formated for MAC address

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob - 10 Jul 2007 17:50 GMT
Hi,

Is there a way to format a cell to display twelve alphanumeric characters to
look like a MAC address?

For example, if the cell contents are:  0003FF411153
I want it to display like this:  00-03-FF-41-11-53

If a MAC address were all numeric's, the following would work::
##"-"##"-"##"-"##"-"##"-"##
But because MAC addresses have characters A-F, this won't work for me.

I tired using:  @-@-@-@-@-@   but that didn't work either.
Any thoughts?

Thanks!

---
Bob
Dave Peterson - 10 Jul 2007 19:28 GMT
Maybe you can use a helper column and a formula to format it pretty.  Format
column A (say) as Text and then:

=left(a1,2)&"-"&mid(a1,3,2)&"-"&mid(a1,5,2)&"-"& .....

> Hi,
>
[quoted text clipped - 15 lines]
> ---
> Bob

Signature

Dave Peterson

Bob - 10 Jul 2007 20:35 GMT
That works!  I never would have thought of it.

Thanks Dave!

---
Bob

Rate this thread:






 
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.