ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   formatting MAC Addresses (https://www.excelbanter.com/excel-discussion-misc-queries/175566-formatting-mac-addresses.html)

cygnussphere

formatting MAC Addresses
 
I get mac addresses that are like this.

001B24E0382C 001B24E0382D

I need to format or convert them via formula to this.

00:1B:24:E0:38:2C|00:1B:24:E0:38:2D

Any help would be greatly appreciated.

Thanks!

Roger Govier[_3_]

formatting MAC Addresses
 
Hi

One way
=MID(A1,1,2)&":"&MID(A1,3,2)&":"&MID(A1,5,2)&":"&M ID(A1,7,2)
&":"&MID(A1,9,2)&":"&MID(A1,11,2)&"|"&MID(A1,14,2) &":"&
MID(A1,16,2)&":"&MID(A1,18,2)&":"&MID(A1,20,2)&":"
&MID(A1,22,2)&":"&MID(A1,24,2)

--
Regards
Roger Govier

"cygnussphere" wrote in message
...
I get mac addresses that are like this.

001B24E0382C 001B24E0382D

I need to format or convert them via formula to this.

00:1B:24:E0:38:2C|00:1B:24:E0:38:2D

Any help would be greatly appreciated.

Thanks!



cygnussphere

formatting MAC Addresses
 
This works for me. Thanks!

"Roger Govier" wrote:

Hi

One way
=MID(A1,1,2)&":"&MID(A1,3,2)&":"&MID(A1,5,2)&":"&M ID(A1,7,2)
&":"&MID(A1,9,2)&":"&MID(A1,11,2)&"|"&MID(A1,14,2) &":"&
MID(A1,16,2)&":"&MID(A1,18,2)&":"&MID(A1,20,2)&":"
&MID(A1,22,2)&":"&MID(A1,24,2)

--
Regards
Roger Govier

"cygnussphere" wrote in message
...
I get mac addresses that are like this.

001B24E0382C 001B24E0382D

I need to format or convert them via formula to this.

00:1B:24:E0:38:2C|00:1B:24:E0:38:2D

Any help would be greatly appreciated.

Thanks!





All times are GMT +1. The time now is 08:39 PM.

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