Ինչպե՞ս ձևափոխել mac հասցեները բջիջներում ՝ Excel- ում ավելացնելով հաստ աղիքի խորհրդանիշ:
Ենթադրելով, որ դուք ստացել եք աշխատաթերթ, պարունակում է թվերի ցուցակ, և այժմ դուք պետք է ձևափոխեք այս բոլոր համարները որպես Mac հասցեներ ՝ ավելացնելով հաստ աղիքի խորհրդանիշը, ինչպես ցույց է տրված նկարում: Ի՞նչ կարող ես անել դրան հասնելու համար: Խնդիրը լուծելու համար կարող եք փորձել այս ձեռնարկի մեթոդը:
Ձևաչափեք mac հասցեները բջիջներում ՝ բանաձևով ավելացնելով հաստ աղիք
Ձևաչափեք mac հասցեները բջիջներում ՝ VBA- ով ավելացնելով հաստ աղիք
Հեշտությամբ ձևաչափեք Mac հասցեները բջիջներում `Excel- ի համար Kutools- ով ավելացնելով երկու կետ
Ձևաչափեք mac հասցեները բջիջներում ՝ բանաձևով ավելացնելով հաստ աղիք
Ստորև բերված բանաձևը կօգնի ձեզ ձևաչափել համարը որպես Mac հասցե ՝ ավելացնելով երկու կետ: Խնդրում եմ արեք հետևյալ կերպ.
1. Ընտրեք դատարկ բջիջ, բանաձևը մուտքագրեք այն Ֆորմուլա Բար, ապա սեղմել կոճակը Մտնել բանալի. Տեսեք,
=LEFT(A2,2)&":"&MID(A2,3,2)&":"&MID(A2,5,2)&":"&MID(A2,7,2)&":"&MID(A2,9,2)&":"&RIGHT(A2,2)
ՆշումԲանաձևում A2- ն այն բջիջն է, որը պարունակում է այն համարը, որը դուք ձևաչափելու եք որպես mac ձևաչափ:
2. Ընտրեք առաջին արդյունքի բջիջը, ներքև քաշեք Լրացնելու բռնակը ներքևում ՝ mac ձևաչափի բոլոր համարները ստանալու համար: Տեսեք,
Հեշտությամբ ձևաչափեք Mac հասցեն բջիջներում ՝ ավելացնելով կետեր.
The Ավելացրեք տեքստ օգտակարությունը Excel- ի համար նախատեսված գործիքներ կարող է օգնել ձեզ հեշտությամբ ավելացնել նշաններ ընտրված բջիջի նշված դիրքերում ՝ համարը ձևավորելու համար որպես Mac հասցեի ձևաչափ: Տեսեք, Ներբեռնեք և փորձեք հիմա: (30- օր անվճար երթուղի)
Ձևաչափեք mac հասցեները բջիջներում ՝ VBA- ով ավելացնելով հաստ աղիք
Ստորև ներկայացված VBA կոդով դուք կարող եք Excel- ում միանգամից ձևաչափել մի շարք շարք որպես Mac հասցեներ: Խնդրում եմ արեք հետևյալ կերպ.
1. Սեղմեք ալտ + F11 ստեղները միաժամանակ բացելու համար Microsoft Visual Basic հավելվածների համար պատուհան.
2. Մեջ Microsoft Visual Basic հավելվածների համար պատուհանը, սեղմեք Տեղադրել > Մոդուլներ, Դրանից հետո պատճենեք ներքևում գտնվող VBA կոդը ծածկագրի պատուհանում:
VBA կոդ. Բջիջներում ձևաչափեք թվերը որպես Mac հասցեներ
Sub FormatMAC()
Dim I As Long
Dim xRg As Range
Dim xCell As Range
Dim xVal As String
Dim xStr As String
On Error Resume Next
Set xRg = Application.InputBox("Please select range:", "Kutools for Excel", Selection.Address, , , , , 8)
If xRg Is Nothing Then Exit Sub
For Each xCell In xRg
xVal = xCell.Value
If InStr(xVal, ":") > 0 Then
xVal = Replace(xVal, ":", "")
If Left(xVal, 1) = "0" Then xVal = Right(xVal, Len(xVal) - 1)
End If
For I = 1 To Int(Len(xVal) / 2)
xStr = Mid(xVal, Len(xVal) + 1 - 2 * I, 2) & " " & xStr
Next
xStr = "0" & Mid(xVal, 1, 1) & " " & xStr
xCell.Value = Left(Replace(xStr, " ", ":"), Len(xStr) - 1)
xStr = ""
Next
End Sub
3. In the opening Kutools for Excel dialog box, please select the cells with numbers you will format as mac addresses, and then click the OK button.

Then you can see all selected numbers are formatted as mac addresses as below screenshot shown.

Easily format mac addresses in cells by adding colon with Kutools for Excel
This section will introduce the Add Text utility of Kutoos for Excel. With this utility, you can quickly add colons to cells at specified positions. Please do as follows.
Before applying Kutools for Excel, please download and install it firstly.
1. Select the cells you need to format as mac addresses. And then click Kutools > Text > Add Text.

2. In the Add Text dialog box, please type a colon into the Text box, select the Specify option, and then enter the specified position numbers into the box. And finally click the OK button.
Note: In this case, I need to add colons after every two numbers in cells, so I enter 2, 4, 6, 8 and 10 and separate them by commas. See screenshot:

If you want to have a free trial (30-day) of this utility, please click to download it, and then go to apply the operation according above steps.
Related articles:
- How to add text in middle of selected cells in Excel?
- How to add comma at end of cell/text in Excel?
- How to add a character before each word in a cell in Excel?
The Best Office Productivity Tools
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
- Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
- Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
- Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
- Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
- Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
- Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
- Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
- Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
- More than 300 powerful features. Supports Office / Excel 2007-2021 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!