Excel tutorial
/

Excel basics

Beginner

Excel data types: numbers, text, dates and logical values

How Excel tells numbers, text, dates and TRUE/FALSE apart, and why “numbers stored as text” silently break SUM — with examples.

Whatever you type into a cell, Excel first decides its type: number, text, date or logical value (TRUE/FALSE). Formulas work by type: numbers are added, text is joined, dates are subtracted.

That is why two cells can look identical while one is calculated and the other is not. It is one of the most common — and most time-consuming — mistakes in Excel.

How to tell the type

Excel gives a hint through alignment (unless you set alignment yourself):

  • Numbers and dates stick to the right edge.
  • Text sticks to the left edge.
  • TRUE / FALSE are centered.
  • Errors (#N/A, #VALUE!) are centered.
Книга1 - Excel
—☐✕
B6fx125000
ABCD
1TypeValueNote
2Number125000right
3TextTashkentleft
4Date01.01.2025really a number
5LogicalИСТИНАcenter
6Number as text1250001left!
7
ГотовоСреднее: 85329Количество: 5Сумма: 170658
125000 in row 6 is text, not a number: it sticks to the left and is not included in Sum on the status bar

Checking a cell’s type — 3 ways

1

Select the cell and look at its alignment: numbers sit on the right, text on the left.

2

Select several cells and look at the status bar at the bottom. Sum and Average only use numbers, while Count counts everything. If Count is 4 but fewer values made it into Sum, there is text among them.

Книга1 - Excel
—☐✕
A2fx12000
ABCD
1Price
212000
38000
4150002
55000
6
ГотовоСреднее: 8333,3333Количество: 4Сумма: 25000
Count: 4, but Sum = 25,000 — 15000 in A4 is text, so it was not added

3

Add a helper formula: =ЕЧИСЛО(A2) returns TRUE for a number and FALSE for text. Fill it down and check a whole column in a second.

Книга1 - Excel
—☐✕
B4fx=ЕЧИСЛО(A4)
ABCD
1PriceNumber?
212000ИСТИНА
38000ИСТИНА
415000ЛОЖЬ
55000ИСТИНА
6
Готово

A date is really a number

Excel stores a date as the number of days since January 1, 1900: 01.01.2025 is 45658. Formatting only changes how it looks. That is why you can subtract dates to get the number of days between them: =B2-A2.

Time is a fraction of a day: 12:00 is 0.5, 18:00 is 0.75.

Книга1 - Excel
—☐✕
C2fx=B2-A2
ABCD
1StartEndDays
201.01.202531.01.202530
312.02.202528.02.202516
4
5
Готово
Subtract one date from another to get the days between them

Pro level: codes with leading zeros

Excel treats a product code like 00125 or a phone number as a number and drops the leading zeros. Two ways around it:

  • Type an apostrophe first: '00125 — the cell keeps 00125 (the apostrophe is hidden) and is now text.
  • If you never calculate with the code, give the column the Text format beforehand (Число group → Text).

Rule of thumb: what you calculate is a number; codes, phones and IDs are text.

Try it in the simulator

Column B has prices, but B4 holds text. Type =ЕЧИСЛО(B2) in C2 and fill it down to C5, then type =СУММ(B2:B5) in B6 and see why the result is 25000.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1ProductPriceNumber?
2Bread12000
3Milk8000
4Yogurt15000
5Eggs5000
6Total
7
8
9
10
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

4 / 154