Excel Custom Number Formats: Display Numbers, Dates, and Text Cleanly

Excel Custom Number Formats: Keep Values Intact, Make Displays Clean

In Excel, you can use cell formatting and custom number formats to keep values unchanged while changing only how they appear. This guide covers the four-section structure (positive; negative; zero; text), number, date, and text codes, and practical reporting patterns with examples.

Quick Fix — 1-Minute Tip

Select a range → Ctrl+1 → Number → Custom as needed.

How It Works

Formatting does not affect calculations; it only changes what appears on screen.

Custom Number Format Structure

positive_format;negative_format;zero_format;text_format
  • Example: #,##0;[Red](#,##0);0;@
  • Example: [>=1000000]0.0,,"M";[>=1000]0,"K";0
  • Example: 0;-0;;@ (hides zeros)

Number Examples

#,##0" won"
#,##0;[Red](#,##0);0;@
[>=1000000]#,##0,,"M";[>=1000]#,##0,"K";0

Date/Time Examples

yyyy-mm-dd
yyyy" year" m" month" d" day"
[h]:mm:ss

Text/Code Examples

00000           'fixed number of digits (ZIP Code)
0" items"       'suffix
"No. "0000      'prefix
*.-              'fill character

Troubleshooting

IssueCauseSolution
Hiding zeros affects totalsChanged to “”Use 0;-0;;@ to hide only the display
Date/time confusionDifferent interpretations of m/mm/mmmCheck the preview and context
K/M abbreviation misunderstandingUnclear basisState 1K=1000 in the legend

Related Articles


Reference: Microsoft Support — Create a custom number format, Format numbers as dates or times

Leave a Reply

Your email address will not be published. Required fields are marked *