Format Numbers Dates in Excel: Full Guide
In this article
To format numbers and dates in Excel, select the cells, open the Format Cells dialog (Ctrl+1), and choose a category like Number, Currency, or Date, then pick or customize the format. This controls how values are displayed without changing the underlying data, so a date still stores as a serial number and a number keeps its full precision.
Why Formatting Matters
Excel stores dates as serial numbers (1 = January 1, 1900) and times as fractional days. Numbers are stored as binary values with up to 15 significant digits. Formatting only changes how these values appear on screen or in print. Without formatting, a date like 44562 might show as a number, and a large number might show in scientific notation. Proper formatting improves readability, prevents misinterpretation (e.g., 03/04/2025 could be March 4 or April 3 depending on locale), and is essential for charts, reports, and data analysis.
How to Open the Format Cells Dialog
The Format Cells dialog is the central tool for all number and date formatting. You can open it in several ways:
- Select cells, then press Ctrl+1 (Windows) or Cmd+1 (Mac).
- Right-click the selected cells and choose Format Cells.
- On the Home tab, click the small arrow in the bottom-right corner of the Number group.
In the dialog, you'll see tabs: Number, Alignment, Font, Border, Fill, and Protection. The Number tab is where you control formatting.
Number Format Categories
The Number tab offers several built-in categories, each with its own options:
- General: Default format; shows numbers as typed, with no special symbols.
- Number: Adds decimal places, thousands separators, and negative number styles (e.g., -1,234.56).
- Currency: Adds a currency symbol (like $ or €), thousands separators, and aligns decimals. You can choose the symbol and number of decimals.
- Accounting: Similar to Currency but aligns currency symbols and decimal points in a column, and shows zeros as dashes.
- Percentage: Multiplies the cell value by 100 and adds a % sign (e.g., 0.25 becomes 25%).
- Fraction: Shows numbers as fractions (e.g., 0.5 as 1/2). Useful for measurements.
- Scientific: Shows numbers in exponential notation (e.g., 1.23E+05).
- Text: Treats the cell content as text, even if it looks like a number or date. Prevents automatic conversion.
- Special: Formats numbers like zip codes, phone numbers, or social security numbers.
- Custom: Create your own format codes (explained below).
Date and Time Formatting
Excel offers many built-in date and time formats. In the Format Cells dialog, under the Date category, you'll see examples like:
- 3/14/2025
- 14-Mar-25
- March 14, 2025
- 14-Mar
Time formats include:
- 1:30 PM
- 13:30
- 1:30:45 PM
You can also combine date and time in one cell, e.g., 3/14/25 1:30 PM. If the built-in formats don't match your needs, use the Custom category to create a format like dddd, mmmm d, yyyy to display "Friday, March 14, 2025".
Custom Format Codes
Custom format codes give you full control. They consist of up to four sections separated by semicolons: positive; negative; zero; text. Each section uses placeholders:
- 0 – Always display a digit, even if it's zero (e.g., 0.00 shows 2 decimals).
- # – Display a digit only if it's significant (e.g., #.## shows 1.5, not 1.50).
- ? – Add a space for insignificant zeros to align decimals.
- . – Decimal point.
- , – Thousands separator.
- % – Multiply by 100 and show %.
- E+ – Scientific notation.
- @ – Text placeholder.
For dates, use codes like:
- d – Day (1-31)
- dd – Day (01-31)
- ddd – Abbreviated day (Mon)
- dddd – Full day (Monday)
- m – Month (1-12)
- mm – Month (01-12)
- mmm – Abbreviated month (Jan)
- mmmm – Full month (January)
- yy – Two-digit year (25)
- yyyy – Four-digit year (2025)
For times:
- h – Hour (1-12)
- hh – Hour (01-12)
- m – Minute (0-59) – note: use m after h to mean minutes, not months.
- s – Second
- AM/PM – 12-hour clock; omit for 24-hour.
Example: dddd, mmmm d, yyyy "at" h:mm AM/PM displays "Friday, March 14, 2025 at 1:30 PM".
Common Formatting Problems and Fixes
- Date shows as a number: The cell is formatted as General or Number. Apply a Date format. If the value is a real date, it will display correctly.
- Number shows as #####: The column is too narrow. Widen the column or change the format to a shorter one.
- Leading zeros disappear: Excel drops leading zeros. Use a custom format like
00000for zip codes, or format as Text before entering. - Large numbers show as 1.23E+05: Apply a Number format with no scientific notation.
- Date is text, not a real date: If a date is left-aligned, it's likely text. Use the DATEVALUE function or Text to Columns to convert it.
- Negative numbers in parentheses: Use the Number or Currency format and choose the negative style with parentheses.
Formatting Tips and Best Practices
- Use Accounting for financial reports to align currency symbols.
- Use Custom formats for things like phone numbers:
(###) ###-####. - To format a whole column, click the column header first.
- Use the Format Painter (Home tab) to copy formatting from one cell to another.
- Remember that formatting does not change the underlying value. Calculations use the full precision.
- For international dates, be aware of locale. Excel's date formats depend on your system's regional settings. A format like
dd/mm/yyyyvsmm/dd/yyyycan cause confusion. - If you need to display a date as text (e.g., in a concatenation), use the TEXT function:
=TEXT(A1,"mmmm d, yyyy").
Frequently Asked Questions
Why is my date showing as a number?
Excel stores dates as serial numbers. If the cell is formatted as General or Number, the serial number is displayed. Select the cells, press Ctrl+1, and choose a Date format. If the value is a valid date, it will display correctly. If the value is text, you'll need to convert it first.
How do I keep leading zeros in a number?
Excel removes leading zeros by default. To keep them, you can format the cells as Text before typing, or use a custom number format like 00000 (for 5-digit numbers). The custom format will display the zeros without changing the underlying value.
What does ##### mean in Excel?
It means the column is too narrow to display the full formatted number. Widen the column by double-clicking the right edge of the column header, or reduce the number of decimal places in the format.
How do I change the date format from US to UK?
Select the cells, open Format Cells (Ctrl+1), go to the Date category, and choose a format that uses day/month/year order, such as dd/mm/yyyy. If you don't see one, go to Custom and type dd/mm/yyyy directly. Note that the actual date value is the same; only the display changes.
Can I use conditional formatting to highlight dates?
Yes. Select the date cells, go to Home > Conditional Formatting > New Rule, and choose "Use a formula to determine which cells to format." For example, to highlight dates older than 30 days, use the formula =A1<TODAY()-30 and set a fill color.
How do I convert text to a real date?
Use the DATEVALUE function: =DATEVALUE("3/14/2025") returns the serial number, which you can then format as a date. Alternatively, use Text to Columns (Data tab) and select "Date" as the column data format.