D
DungFlinger
I have a sheet that keeps track of MAC to IP adresses. I've created a
formula that will output the required format for DHCP server import.
The formula was quite long and it was suggested to use the TEXT function .
Thanks to Bob Phillips and my friend LavaDude my rather legthy formula
has been reduced to the folowing, but it doesnt work correctly.
=IF(D2="","","host"&L2&IF(C2="","",".")&IF(OR(B2="",B2>30,),"",B2&"-")&C2&"{
hardware ethernet "&TEXT(D2,"00\:00\:00\:00\:00\:00")&"; fixed-address
"&M2&";}")
However the TEXT function seems to work perfectly but only on numbers
(or "value" according to help) The Alphabets causes the MAC address to
be in it's original format: AABBCC001122. The format that I need it to
be is: AA:BB:CC:00:11:22 I have accomplished this with the LEFT,RIGHT
and MID functions. It's so close there must be a way to use the TEXT
func... any help would be greatly appreciated.
df
formula that will output the required format for DHCP server import.
The formula was quite long and it was suggested to use the TEXT function .
Thanks to Bob Phillips and my friend LavaDude my rather legthy formula
has been reduced to the folowing, but it doesnt work correctly.
=IF(D2="","","host"&L2&IF(C2="","",".")&IF(OR(B2="",B2>30,),"",B2&"-")&C2&"{
hardware ethernet "&TEXT(D2,"00\:00\:00\:00\:00\:00")&"; fixed-address
"&M2&";}")
However the TEXT function seems to work perfectly but only on numbers
(or "value" according to help) The Alphabets causes the MAC address to
be in it's original format: AABBCC001122. The format that I need it to
be is: AA:BB:CC:00:11:22 I have accomplished this with the LEFT,RIGHT
and MID functions. It's so close there must be a way to use the TEXT
func... any help would be greatly appreciated.
df