Skip to content

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 typeExcel storesThe cell shows
2,400the number 24002,400
8%the number 0.088%
00318the number 318318
'00318the text 0031800318
3/4a date, March 44-Mar
Excel stores what an entry means, so 8% goes in as 0.08 and 00318 as 318. An apostrophe keeps an entry as text, exactly as typed.
The amount in B4 is text, so it sits on the left and SUM skips it. The total is $1,250 short. In B7, =SUM(B2:B6) returns $4,195.40.

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

Start practicing
  1. Not started

    1. Add a supplier, each entry the right kind

    Editing · medium

  2. Not started

    2. Find the amount stored as text

    Selection · medium

  3. Not started

    3. Which entries become dates

    Quiz · easy