Hej Brian,
Kender du til VBA?
Denne kode ændrer alle forekomster af celler med 12 karakterer i E2 og nedefter, til MAC-formatet.
Sub FormaterMAC()
Dim FormatMAC As String
If IsEmpty(Range("E2")) Then Exit Sub
For Each ImportMAC In Range("E2:E" & Range("E2").End(xlDown).Row)
If Len(ImportMAC) = 12 Then
FormatMAC = Left(ImportMAC, 2) _
& ":" & Mid(ImportMAC, 3, 2) _
& ":" & Mid(ImportMAC, 3, 2) _
& ":" & Mid(ImportMAC, 3, 2) _
& ":" & Mid(ImportMAC, 3, 2) _
& ":" & Right(ImportMAC, 2)
ImportMAC.Value = FormatMAC
End If
Next ImportMAC
End Sub