• Language Code Identifier (LCIDs) are 'embedded' within numberFormat.

    There is the original (being deprecated) format and the new 'locale names' format. The original format (most widely used at time of writing but being deprecated). Is an 8 digit hex number (xxyyzzzz). If the number is less than this then it is assumed to have leading 0s. The hex is broken down into 3 parts. xx - appearance of the number (see)

    Also modern Excel 365 now allows this syntax: [$-lg-CN,xxyy] where lg-CN is the language and country of the locale (replacing zzzz), and xxyy are as defined in the prior answer. Leading zeros are not needed and the whole ,xxyy part is optional. In addition, a gannen suffix -x-gannen is allowed on Japanese locale codes, which replaces a 1 value (first year of emperor reign) for e formats with 元. For example:

    Parameters

    Returns string