I don't think you can do this with a custom number format. Put the following function in a module: Function FormatMAC(varMAC) As String Dim i As Long For i = 1 To Len(varMAC) 2 FormatMAC = Mid(varMAC, Len(varMAC) + 1 - 2. i, 2) & ':' & FormatMAC Next i If FormatMAC ' Then FormatMAC = Left(FormatMAC, Len(FormatMAC) - 1) End If End Function With MAC addresses in A1:A100, you can enter =FormatMAC(A1) in cell B1 and fill down. If you'd rather update the values themselves, select the range with MAC addresses and run the following macro (which uses the FormatMAC function): Sub FormatMACSelection Dim rng As Range Application.ScreenUpdating = False For Each rng In Selection rng.Value = FormatMAC(rng.Value) Next rng Application.ScreenUpdating = True End Sub Regards, Hans Vogelaar. I don't think you can do this with a custom number format. Put the following function in a module: Function FormatMAC(varMAC) As String Dim i As Long For i = 1 To Len(varMAC) 2 FormatMAC = Mid(varMAC, Len(varMAC) + 1 - 2.
Excel for Mac 2016 includes the Solver and Data Analysis add-in built-in. You do not need to install and run the 3rd Party Solver or Data Analysis add-in. Install Solver Add-in for Excel for Mac 2016. Open Excel for Mac 2016. Go to the Tools menu, select 'Add-ins' Check 'Solver Add-in' and 'Analysis ToolPak' then click OK.
i, 2) & ':' & FormatMAC Next i If FormatMAC ' Then FormatMAC = Left(FormatMAC, Len(FormatMAC) - 1) End If End Function With MAC addresses in A1:A100, you can enter =FormatMAC(A1) in cell B1 and fill down. If you'd rather update the values themselves, select the range with MAC addresses and run the following macro (which uses the FormatMAC function): Sub FormatMACSelection Dim rng As Range Application.ScreenUpdating = False For Each rng In Selection rng.Value = FormatMAC(rng.Value) Next rng Application.ScreenUpdating = True End Sub Regards, Hans Vogelaar. Ok figured out how to add a module.
Alt - F11 opens the VBA side. But in Excel 2007 there is NOTHING in any of the menus there that indicates this, i had to find out from reading articles. So i copied/pasted the function, and saved it, but in the spreadsheet if i try to enter a function =FormatMAC(a1) then hit enter, it, the cell, says 'Name?' As if it cannot find it at all.
When powering on the computer today and opening up that file, it had a warning message that a macro is there from a source that cannot be verified, enable macros anyway? So it looks like Excel at least found it, but in the worksheet it will not let me use it. Ok, got it to work, i added it again as a module as this time it saw it. So the module as written, when trying to use formatmac(a1) it says syntax error, but formatmac produces 11:22:33:44:55 ok. Now it totally works.
Instead of me typing in the cell, a1, i clicked on the cell and it highlighted and did whats expected. After doing just 1 cell, moving the mouse around to the lower right corner it turned into a plus sign, i clicked on the finished cell and dragged or drug downward and it filled in the rest of them just fine. (i was probably trying too hard to make that happen before). I tried this with the upper function and it also worked; works with alpha and numeric thanks again Hans! Brad R Windows and Mobile platform Developer California USA.
By Office Add-ins aren’t the only ones that you can use to extend Excel 2016’s built-in features in some way. You can also use built-in add-ins created by Microsoft or third-party Excel add-ins that you can purchase from a wide variety of vendors. Before you can use any Excel add-in program, the add-in must be installed in the proper folder on your hard drive, and then you must select the add-in in the Add-Ins dialog box. There are two different types of Excel add-in programs immediately available that you can use to extend the features in Excel 2016:. Excel Add-ins: This group of add-ins (also known as automation add-ins) is designed to extend the data analysis capabilities of Excel.
These include Analysis ToolPak, Euro Currency Tools, and Solver. COM Add-ins: COM (Component Object Model) add-ins are designed to extend Excel’s capability to deal with and analyze large amounts of data in data models (collections of related database tables). These include Inquire, Microsoft Office PowerPivot for Excel, and Power View. When you first install Excel 2016, the add-in programs included with Excel are not loaded and therefore are not yet ready to use. To load any or all of these add-in programs, you follow these steps:. Click the File menu button, click Excel Options or press Alt+FT to open the Excel Options dialog box, and then click the Add-Ins tab.
The Add-Ins tab lists all the names, locations, and types of the add-ins to which you have access. (Optional) In the Manage drop-down list box at the bottom, Excel Add-Ins is selected by default.
If you want to activate one or more of your COM add-ins, select COM Add-Ins from the Manage drop-down list. Select the Go button. If Excel Add-Ins was selected in the Manage drop-down list box, Excel opens the Add-Ins dialog box (similar to the one shown), showing all the names of the built-in add-in programs you can load.
If COM Add-Ins was selected, the COM Add-Ins dialog box appears instead. Click the check boxes for each add-in program that you want loaded in the Add-Ins or COM Add-Ins dialog box. Click the name of the add-in in the Add-Ins Available list box to display a brief description of its function at the bottom of this dialog box. Click the OK button to close the Add-Ins or COM Add-Ins dialog box.
Activating built-in Excel add-ins in the Add-Ins dialog box. When you first install Excel 2016, the program automatically loads all four add-ins (Analysis ToolPak, Analysis ToolPak – VBA, Euro Currency Tools, and Solver Add-In) displayed in the Add-Ins Available list box.
The tools in the two Analysis ToolPaks are added as special functions to the Function Library group and the Euro Currency tools to a Solutions group on the Formulas tab. The Solver add-in appears in the Analysis group on the Data tab.
Excel add-in programs are saved in a special file format identified with the.XLL or.XLAM (for Excel Add-in) filename extension. These files are normally saved inside the Library folder (sometimes in their own subfolders) that is located in the Office16 folder. The Office16 folder, in turn, is located in your Microsoft Office folder inside the Program Files folder on your hard drive (often designated as the C: drive). In other words, the path is c:Program FilesMicrosoft OfficeOffice16Library After an add-in program has been installed in the Library folder, its name then appears in the list box of the Add-Ins dialog box. If you ever copy an XLAM add-in program to a folder other than the Library folder in the Office16 folder on your hard drive, its name won’t appear in the Add-Ins Available list box when you open the Add-Ins dialog box. You can, however, activate the add-in by clicking the Browse button in this dialog box and then selecting the add-in file in its folder in the Browse dialog box before you click OK.
Managing the standard Excel add-ins Whether you know it or not, you already have a group of add-in programs waiting for you to use. The following Excel add-in programs are loaded when you install Excel 2016. Analysis ToolPak: Adds extra financial, statistical, and engineering functions to Excel’s pool of built-in functions. Analysis ToolPak – VBA: Enables VBA programmers to publish their own financial, statistical, and engineering functions for Excel. Euro Currency Tools: Enables you to format worksheet values as euro currency and adds a EUROCONVERT function for converting other currencies into euros. To use these tools, click the Euro Conversion or Euro Formatting buttons that appear on the Ribbon in the Solutions group at the end of the Formulas tab.
Solver Add-In: Calculates solutions to what-if scenarios based on cells that both adjust and constrain the range of values. To use the Solver add-in, click the Solver button that appears on the Ribbon in the Analysis group at the end of the Data tab. To use one of the additional statistical or financial functions added as part of the Analysis ToolPak add-in, you don’t access the Add-Ins tab.
Instead, click the Function Wizard button on the Formula bar, select either Financial or Statistical from the Select a Category drop-down list, and then locate the function to use in the Select a Function list box below. Managing Excel COM add-ins The following COM add-in programs are included when you install Excel 2016:. Inquire: Facilitates the review of workbooks to understand their design, function, inconsistencies, formula errors, and broken links. You can also use Inquire to compare two workbooks to reveal their differences. Microsoft Power Map for Excel: Enables you to map geographic data on an interactive 3D globe. Microsoft Power Pivot for Excel: Enables you to build complex data models using large amounts of data.
It also facilitates data queries using DAX (Data Analysis Expressions) functions. Microsoft Power View for Excel: Provides the means for the interactive data exploration and visual presentation of the data in your Excel data models, encouraging ad-hoc (on-the-spot) data queries. Keep in mind that you readily manage your COM add-ins using the COM Add-Ins button in the Add-Ins group on the Developer tab. (To display the Developer tab in Excel 2016, choose File→Options→Customize Ribbon Alt+FTC and then select the check box in front of Developer in the Main Tabs list box before you click OK.) When you select the COM Add-Ins button, Excel opens the COM Add-Ins dialog box that shows all of the COM add-ins that are installed and activated. Here, you can activate and deactivate individual add-ins as needed.
Purchasing third-party add-ins The add-ins included with Excel are not the only Excel add-ins that you can lay your hands on. Many third-party vendors sell Excel add-ins that you can often purchase online and then immediately download onto your hard drive. To find third-party vendors and get information on their add-ins, open your web browser and search for Excel add-ins. Even before you do a web search, you may want to visit the. This online outfit offers a wide variety of useful Excel add-ins. One example is the Name Splitter that automatically splits full names that have been entered into single cells into individual first name, middle name or initial, and last name cells (so that the list can then be better sorted and filtered by parts of the names).
Note that you can expect to pay Add-Ins.com between $25 and $50 for add-in programs such as these (really reasonably priced if you consider how many hours it would take to split up names into separate cells in huge worksheets).