← Cheat Sheets
Spreadsheet Number and Date Format Codes
Custom formats and TEXT() codes.
# Spreadsheet Number and Date Format Codes
Custom formats and TEXT() codes.
| Code | Result for 1234.5 or a date |
|---|---|
| 0.00 | 1234.50 |
| #,##0 | 1,235 |
| #,##0.00 | 1,234.50 |
| 0% | 123450% (for 1234.5) |
| 0.0% | Percent with one decimal |
| yyyy-mm-dd | 2025-03-07 |
| dd/mm/yyyy | 07/03/2025 |
| mmm yyyy | Mar 2025 |
| dddd | Friday |
| hh:mm | 14:05 |
| h:mm AM/PM | 2:05 PM |
Use `=TEXT(A1,"yyyy-mm-dd")` to put a format inside a formula. Month `mm` vs minute `mm`: after `h` it means minutes.