In Excel 2016 for MAC, I am trying to use Conditional Formatting to format the Number (currency indicator). I can only select Font, Border and Fill.
By Geetesh Bajaj, James Gordon. One of the things you might find you do frequently in Excel 2011 for Mac is change the way cells look, and you do so with options on the Home tab of the Ribbon. Nov 26, 2016 In Excel 2016 for MAC, I am trying to use Conditional Formatting to format the Number (currency indicator). I can only select Font, Border and Fill. In Windows, the options include Number, Alignment, Font, Border, Fill and Protection.
In Windows, the options include Number, Alignment, Font, Border, Fill and Protection. My use case is to change the number format of cells with the currency symbol for the user selected currency (Dollar, Euro, Yen.). Using a formula, I could say =$D2$='$' as a rule and apply the $#,##0 format for example, or $£-809#,##0 for English Pound. I have created a worksheet in Windows Excel with the formatting, and it works in MAC Excel 2016, but I can't edit the conditional formatting (says I have no format set). In Excel 2016 for MAC, I am trying to use Conditional Formatting to format the Number (currency indicator). I can only select Font, Border and Fill. In Windows, the options include Number, Alignment, Font, Border, Fill and Protection.
My use case is to change the number format of cells with the currency symbol for the user selected currency (Dollar, Euro, Yen.). Using a formula, I could say =$D2$='$' as a rule and apply the $#,##0 format for example, or $£-809#,##0 for English Pound. I have created a worksheet in Windows Excel with the formatting, and it works in MAC Excel 2016, but I can't edit the conditional formatting (says I have no format set). In Excel 2016 for MAC, I am trying to use Conditional Formatting to format the Number (currency indicator). I can only select Font, Border and Fill. In Windows, the options include Number, Alignment, Font, Border, Fill and Protection.
My use case is to change the number format of cells with the currency symbol for the user selected currency (Dollar, Euro, Yen.). Using a formula, I could say =$D2$='$' as a rule and apply the $#,##0 format for example, or $£-809#,##0 for English Pound. I have created a worksheet in Windows Excel with the formatting, and it works in MAC Excel 2016, but I can't edit the conditional formatting (says I have no format set). Excel for Mac does not have the interface for number formatting in the Conditional Format dialog.
As you observed, the Mac version does respond correctly to Conditional Formatting generated in Excel for Windows. Excel for Mac also honors Visual Basic for Applications (VBA) code regardless of whether it is generated on Excel for Mac or Windows. I recorded the actions required in Excel 2016 for Windows and got this code: Sub Macro1 Selection.NumberFormat = '0.00%' Selection.FormatConditions.Add Type:=xlExpression, Formula1:= '=IF($A$1=5,TRUE,FALSE)' Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority Selection.FormatConditions(1).StopIfTrue = False End Sub Unfortunately, it doesn't work exactly right in either Windows or Mac Excel. It requires some tweaking, but proves the point that you can do it. Also, please don't post duplicate questions in the forum. I am an unpaid volunteer and do not work for Microsoft.
'Independent Advisors' work for contractors hired by Microsoft. 'Microsoft Agents' work for Microsoft Support.
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. 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.