Changing Number Display Settings for Single Workbooks

by Allen Wyatt
(last updated July 2, 2016)

2

Allen is a Canadian Excel user who often downloads large amounts of statistical data from European sources, thereby experiencing the usual problems with decimals and thousands separators being reversed. This requires some fancy manipulation to change to North American style and often results in mistakes. Allen could change the settings on his entire system, but then his North American numbers (in other workbooks) are screwed up. He wonders if there is some way to change just one file at a time.

How numbers are displayed depends on the Regional Settings maintained in Windows. If you change the Regional Settings, then Excel adopts those settings and displays information differently. So, for instance, if I create a workbook here in the United States, and someone opens that workbook in a location that uses different Regional Settings, then they will see my numbers according to their Regional Settings, not according to the settings of the United States.

If this is not happening, then it could be that the person who created the workbook configured Excel to ignore the Regional Settings. You can do that in this manner:

  1. Display the Excel Options dialog box. (In Excel 2007 click the Office button and then click Excel Options. In Excel 2010 and later versions display the File tab of the ribbon and then click Options.)
  2. At the left side of the dialog box click Advanced.
  3. Scroll down until you see the Editing Options section. (See Figure 1.) (You shouldn't have to scroll far; this section is the first one in this part of the dialog box.)
  4. Figure 1. The Editing Options settings in Excel.

Note the setting of the Use System Separators check box. If this check box is selected (which it is by default), then Excel uses the settings maintained in Windows' Regional Settings area. If you clear this check box, then Excel will use whatever characters you specify in the Decimal Separator and Thousands Separator boxes.

If you want to modify the separators on a workbook by workbook basis (as Allen apparently wants to do), then the easiest way is to use a macro. For instance, the following event-handler macros, when included in the ThisWorkbook module, will change these settings whenever you make the workbook active.

Private Sub Workbook_Activate()
    Application.DecimalSeparator = ","
    Application.ThousandsSeparator = "."
    Application.UseSystemSeparators = False
End Sub
Private Sub Workbook_Deactivate()
    Application.UseSystemSeparators = True
End Sub

Note that the macro changes the decimal and thousands separators and then clears the Use System Separators setting. When the workbook is left (when a different workbook receives focus), then the Use System Separators setting is again set.

If you prefer to change information on the fly rather than automatically, you could use this quick little macro. When you assign it to the Quick Access Toolbar you can click it to switch between two different sets of separator values.

Sub ToggleSep()
    Dim bCurrent As Boolean

    bCurrent = Application.UseSystemSeparators
    If bCurrent Then
        Application.DecimalSeparator = ","
        Application.ThousandsSeparator = "."
        Application.UseSystemSeparators = False
    Else
        Application.UseSystemSeparators = True
        MsgBox "Now Using System Separators"
    End If
End Sub

The macro displays a message when it "returns" to the default of using the system separators defined within Windows.

You should note that everything discussed in this tip assumes that any cells containing numbers are not formatted with some custom format that overrides how Excel uses the separators. Any custom formats always take precedence. Thus, if you see no change after adjusting the separators used by Excel, then you'll want to check to see how the actual cells are formatted.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13453) applies to Microsoft Excel 2007, 2010, 2013, and 2016.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Setting Print Titles

Excel allows you to specify certain rows or columns that will be repeated on the pages of a printout. Here's how to set those ...

Discover More

Resizing a Text Box in a Macro

Text boxes are easy to add to a document and manually resize, as needed. If you want to resize the text box in a macro, ...

Discover More

How Operators are Evaluated

Operators are used in formulas to instruct Excel what to do to arrive at a result. Not all operators are evaluated in the ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Drawing Borders

Adding borders around cells is a common formatting task. You can make the task more intuitive by actually drawing the borders ...

Discover More

Highlighting Values in a Cell

There are many ways that Excel allows you to highlight information in a cell. This tip examines a way to highlight values ...

Discover More

Indenting Cell Contents

Excel allows you to apply several types of alignments to cells. One type of alignment allows you to indent cell contents from ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 4 + 2?

2016-07-05 20:26:06

Julie H

I wish there was a way to ensure in our worksheets that negative numbers were always shown in brackets instead of little minus sign..
We are on a Citrix/controlled network so cannot change network settings to show brackets as a default..


2016-07-03 21:25:11

Alex B

You might want to consider using Excel's Power Query to get the data.

This is able to do the conversion of both dates and currency formats to your local settings format

It also records the process so that is becomes repeatable.


Regards

Alex


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.