Guidelines to create a custom number format

Modified on Sat, 28 Dec, 2024 at 11:42 AM

1. Select the cell.

2. On the Home tab, in the Number group, select the small arrow to open the Dialog box or use shortcut key (Shortcut key: Ctrl + 1).

3.When the Format Cells appear, select Custom.

4. In the Type list, copy and paste the custom number format in the box. (For custom number format references, refer to page 3).

5. Select OK.



Custom Number Format Guidelines


1. Numeric Format

Formats (with decimals and thousands separator): 

#,##0.00;[Red](#,##0.00)

Sample Output: 

A black and white text with red numbers

Description automatically generated with medium confidence


Formats (without decimals but with thousands separator): 

#,##0;[Red](#,##0)

 

Sample Output: 

        A black and white line

Description automatically generated


2. Currency Format


Formats (without decimals but with thousands separator): 

RM#,##0;[Red](RM#,##0)

 

Sample Output:

A black and white text

Description automatically generated

 

Formats (with decimals and thousand separator): 

RM#,##0.00;[Red](RM#,##0.00)

 

Sample Output:

A black and white text with red and black text

Description automatically generated


3. Accounting Format

Formats (with decimals and thousands separator): 

_-* #,##0.00_-;[Red](* #,##0.00)_-;_-* "-"??_-;_-@_-

 

Sample Output: 

A screenshot of a graph

Description automatically generated

Formats (without Decimals but with thousands separator): 

_-* #,##0_-;[Red](* #,##0)_-;_-* "-"_-;_-@_-

 

Sample Output:

A black and white text on a white background

Description automatically generated

4. Accounting Format with Currency

Formats (with decimals and thousands separator):

 _-RM* #,##0.00_-;[Red](RM* #,##0.00)_-;_-RM* "-"??_-;_-@_-

 

Sample Output:

A table with numbers and letters

Description automatically generated

 

Formats (without decimals but with thousands separator):

 _-RM* #,##0_-;[Red](RM* #,##0)_-;_-RM* "-"_-;_-@_-

 

Sample Output:

A table with black and red text

Description automatically generated






Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article