Type numbers, text and dates
Enter and organize data7 min
A purchasing clerk in Denver adds a new supplier to the vendor list: code 00318, a first order of $2,400 and a start date of Jan 12. The code comes out as 318, and nothing on the screen looks wrong until a lookup on that code fails.
How it works
When you press Enter, Excel decides what kind of entry you typed, and the decision sticks. A number can come with extras, as in 2,400, $2,400.00 or 8%. Excel stores the number and keeps the extras as its format, so 8% is stored as 0.08. A date typed in your computer's date order, 1/12/2027 in the US, or with the month as a word, Jan 12, 2027, is stored as a count of days, so Excel can work out the days between two dates. Everything else is text.
Numbers and dates line up on the right of a cell and text on the left, so the alignment shows what Excel decided. In a column of amounts, a number stored as text sits on the left, and a total leaves it out.
Two kinds of entry catch people out. Codes and ZIP codes that look like numbers lose their leading zeros, and numbers longer than 15 digits, such as card numbers, have every digit after the 15th turned into a zero. Type an apostrophe first, as in '00318, and Excel keeps exactly what you typed, as text; the apostrophe doesn't show in the cell. Entries such as 3/4 or 1-2 turn into dates, so type 0 3/4 for three quarters.
Example
What Excel keeps from five entries, and what one amount stored as text does to a total:
| You type | Excel stores | The cell shows |
|---|---|---|
2, | the number 2400 | 2,400 |
8% | the number 0.08 | 8% |
00318 | the number 318 | 318 |
'00318 | the text 00318 | 00318 |
3/4 | a date, March 4 | 4-Mar |
Common mistakes
- A ZIP code typed as 02134 becomes 2134. Type '02134, or format the column as Text before you type, so the whole column keeps its zeros.
- A date in another country's order turns into the wrong date or stays text. In US Excel, 3/12/2026 is March 12, and 13/3/2026 is text.
- A number stored as text has a small triangle in its corner. Select the cell, open the warning button beside it and choose Convert to Number.
In short
- Numbers and dates line up on the right, and text on the left.
- Type an apostrophe first to keep a code exactly as typed.
- Write dates in your computer's order, or with the month as a word.
Practice
3 exercises · free, no account needed