Excel Number Format Codes Cheat Sheet

Custom format codes with what each one actually displays — numbers, conditional colours, dates and elapsed time.

Built in your browser when you click. No signup, free for commercial use.

Numbers

Format code1234.567 displays asUse it for
01235Whole numbers, rounded for display only
0.001234.57Two decimal places, always shown
#,##01,235Thousands separators
#,##0.001,234.57The everyday accounting look
#,##0,, "M"0 MMillions — each comma before the quote divides by a thousand
0.0%123456.7%Percentages (the value is multiplied by 100)
# ?/?1234 4/7Fractions
0.00E+001.23E+03Scientific notation

Conditional and multi-part

Format code1234.567 displays asUse it for
0;[Red]-01235Negatives in red — parts are positive;negative
0;-0;;@1235Hide zeros — the third part (zero) is left empty
0;-0;0;"n/a"1235Four parts: positive;negative;zero;text
[>=1000]#,##0,"k";01kA condition in square brackets before the format
"£"#,##0.00£1,234.57A currency symbol that does not change the value

Dates and times

Format code1234.567 displays asUse it for
dd/mm/yyyyDay first, four-digit year
mmm yyyyShort month and year, e.g. Aug 2026
ddddFull weekday name
hh:mmClock time, resets at 24 hours
[h]:mmELAPSED hours — the brackets stop it wrapping at 24
@1234.567Force text

About this sheet

A custom number format changes only what is displayed, never the stored value — which is what makes it safe, and also what makes it confusing when a cell shows 1,235 and the formula bar says 1234.567. The four-part structure (positive;negative;zero;text) explains most of the codes that look cryptic, and [h]:mm is the one people search hardest for: it is how you total more than 24 hours without the clock wrapping.

Use this on your own site

Free to use, share and republish — including commercially. Attribution isn't required, but it's what keeps these free to make, and there's one ready to paste below.

Cite it

Questions

Is this cheat sheet free?

Yes, and there is no email gate. The whole table is on this page, and the download is built in your browser when you click it.

Can I print it?

Yes — the print layout drops the navigation and page furniture and keeps the tables, so it comes out as a clean reference rather than a screenshot of a web page.

What formats can I download?

Excel (.xlsx) and CSV. Both hold exactly the rows shown on this page.

Is this reference complete?

It covers the entries people actually look up. A reference you can read in one sitting beats an exhaustive dump you scroll past — the same reason the shortcuts sheet is curated rather than a 350-row export.