Sub topic 14
Regional Settings and Locale-Specific Formats
This chapter assumes you can apply built-in number, date, and currency formats and read a custom format code. It also assumes you know that a cell stores a value separately from how it looks. Here you will see which parts of a display come from the format and which come from the computer's regional settings.
Where locale enters the picture
A cell's display is produced from three inputs:
- The stored value, such as 1234.5 or the date serial 46353.
- The format code, such as
#,##0.00. - The locale, which supplies the separators, the date order, the day and month names, and the currency symbol conventions.
The same workbook can look different on two computers because the third input differs. The stored value never changes.
What the system regional settings control
Excel reads these settings from Windows or macOS when it starts:
- The decimal separator and the thousands separator.
- The short date and long date patterns, and so the default day, month, and year order.
- The list separator, which Excel uses between function arguments.
- The default currency symbol and the default negative-number style.
The comma in a format code is a placeholder for "thousands separator", not always a literal comma. Take the value 1234.5 with the format below.
#,##0.00The table shows what appears under different regional settings.
| Regional setting | Displayed text |
|---|---|
| English (United States) | 1,234.50 |
| German (Germany) | 1.234,50 |
| French (France) | 1 234,50 |
The French result uses a non-breaking space as the thousands separator. Excel did not rewrite the format code. It substituted the local separators when it drew the number.
Built-in formats that follow the system
In the Date category of Format Cells, entries marked with an asterisk follow the system's short or long date setting. If you apply one and then open the file on a computer with different settings, the date reorders itself. Entries without an asterisk are fixed patterns and stay the same everywhere.
Overriding the separators inside Excel
To change the separators for Excel only, go to File > Options > Advanced. Clear "Use system separators", then type the decimal and thousands separators you want. Other programs are unaffected. This is useful when you receive data in one convention and your system uses another.
Locale codes inside a format
A format can name a locale explicitly with a bracketed code. The pattern is [$symbol-LCID], where LCID is a hexadecimal language identifier. The symbol part is optional.
[$€-407] #,##0.00This shows the euro sign and tags the format with locale 407, German (Germany). The code travels with the cell, so the symbol stays the same on any computer.
Common identifiers:
| Code | Locale | Example format |
|---|---|---|
| 409 | English (United States) | `[$$-409]#,##0.00` |
| 809 | English (United Kingdom) | `[$£-809]#,##0.00` |
| 407 | German (Germany) | `[$€-407] #,##0.00` |
| 40C | French (France) | `[$€-40C] #,##0.00` |
| 411 | Japanese (Japan) | `[$¥-411]#,##0` |
In Format Cells you rarely type these. Choose Currency or Accounting, open the Symbol list, and pick an entry such as "€ German (Germany)". Excel writes the bracketed code for you.
Locale codes in date formats
In date formats the locale code selects the language of day and month names:
[$-409]dddd, mmmm d, yyyy[$-407]dddd, d. mmmm yyyyFor the date 27 November 2026, the first format shows "Friday, November 27, 2026". The second shows "Freitag, 27. November 2026". The numeric parts of a date follow the pattern you wrote. The names follow the locale code.
Two special codes mirror the system settings: [$-F800] is the system long date and [$-F400] is the system long time. Excel uses them for the built-in asterisked formats.
A locale code does not replace the system's decimal and thousands separators. A cell tagged [$€-407] on a US-configured computer still shows 1,234.50 with a euro sign. Only the symbol and, for dates, the names and calendar come from the tag.
Dates are the riskiest part
The text 03/04/2026 is March 4 under US settings and 3 April under UK or German settings. This causes two kinds of error:
- A typed date is read using the system order. If the order does not fit the text, Excel may swap day and month, or leave the entry as text when the day exceeds 12.
- A date typed correctly on one machine is shown in a different order on another if the cell uses an asterisked format.
Two habits remove the ambiguity. First, build dates with a function whose arguments are explicit:
=DATE(2024,1,1)This returns serial 45292 under every regional setting. Second, use the year-first form yyyy-mm-dd when you write dates as text, because year-first order has only one reading:
=DATEVALUE("2026-11-27")The DATEVALUE function also recognizes text in the system's own date style, so DATEVALUE("27.11.2026") works on a German-configured machine and may return #VALUE! on a US one.
Locale and the TEXT function
TEXT builds a string from a value and a format code. Unlike a cell format, the code is interpreted using the language and regional settings of the Excel installation that evaluates it.
=TEXT(A1,"yyyy-mm-dd")This works in English-language Excel. In German Excel the year code is JJJJ, the month code stays MM, and the day code is TT, so the same formula reads:
=TEXT(A1;"JJJJ-MM-TT")The semicolon is the German argument separator described below. If you open the English version in a German installation, the stored formula is translated for display, but the text inside the quotes is not. The format string may then produce odd output such as the literal letters yyyy. Number codes like 0.00 and #,##0 have a similar problem, because the decimal and thousands characters in the string follow the local separators.
Where a workbook will be used in several regions, prefer a real cell format over TEXT. A cell format is stored in a neutral form and is translated correctly for each user.
Function names and argument separators
Excel stores formulas in a neutral English form and translates them for display. Two things differ by locale:
- Function names.
SUMappears asSUMMEin German andSOMMEin French. - The argument separator. Where the decimal separator is a comma, the list separator is usually a semicolon, so
=ROUND(A1;2)replaces=ROUND(A1,2).
Format codes are not translated in the same way, which is why TEXT strings are fragile. The format codes shown in Format Cells are also displayed in your local conventions.
CSV files and the list separator
A CSV file is plain text with no format information. When Excel opens one by double-clicking, it splits columns at the system list separator and reads numbers and dates with the system settings. A file with comma-separated values and 1234.50 can open as a single column on a German-configured machine. Dates can be reordered or left as text.
For predictable imports, use Data > From Text/CSV. It lets you choose the delimiter and the file's locale before loading, so the columns and values are interpreted the way the file was written.
Practical decision guide
- Need a symbol that stays fixed for everyone? Use a currency format with a locale code, such as
[$€-407]. - Need a date that adapts to each user? Use an asterisked built-in date format.
- Need a date that looks identical everywhere? Use an explicit pattern such as
yyyy-mm-dd. - Need text with a formatted number inside? Use
TEXT, and expect to adjust the format string per language installation. - Need to read a foreign CSV? Import it with Data > From Text/CSV and set the locale.
Exercise
A colleague in Germany opens your workbook. A cell holds 1234.5 with the format #,##0.00, and another cell holds the date 2026-11-27 with an asterisked short date format. What changes on their screen, and what stays the same in the file?
Show answer
The number appears as 1.234,50 because Excel substitutes the local separators, and the date appears in German order, 27.11.2026. The stored values (1234.5 and the date serial) and the format code are unchanged. Only the rendering differs.
Exercise
Write a custom format that shows 1234.5 as a euro amount with the German locale code, and explain why the cell still shows a comma as the thousands separator on a US-configured computer.
Show answer
Use [$€-407] #,##0.00. The locale code supplies the euro symbol and the German locale tag, but the decimal and thousands separators come from the system regional settings, so a US-configured computer shows € 1,234.50.
Exercise
Why can =TEXT(A1,"yyyy-mm-dd") give a wrong result in a German installation of Excel, and what is a more portable approach?
Show answer
The format string inside TEXT is read using the installation's language, and German Excel expects JJJJ for the year and TT for the day. Instead, apply a cell number format with the pattern yyyy-mm-dd, which Excel stores neutrally and translates for each user.