Sub topic 6
What Is Stored Versus What Is Shown
This chapter assumes you can type into a cell, press Enter, and tell numbers, text, and dates apart by how Excel aligns them. It covers how a cell's stored value can differ from the text you see, why that matters for formulas, and how to check what is really in a cell.
Two values in every cell
Every cell holds two separate things:
- The stored value (or underlying value). This is what Excel keeps and what formulas use.
- The displayed value. This is what the cell shows, produced by applying a number format to the stored value.
The formula bar shows the stored contents of the active cell. The cell itself shows the displayed result. For a formula, the formula bar shows the formula text, and the stored value is the formula's current result.
A number format changes only the display. It never changes the stored value.
Type 3.14159 in A1
Format A1 with 2 decimal places
A1 shows: 3.14
Formula bar: 3.14159
=A1*2 returns: 6.28318 (shown as 6.28 if the result cell is formatted the same way)How the pipeline works
When you commit an entry, Excel parses it, stores a value, and then formats that value for display. Changing the format later re-runs only the last step.
Formulas always read the stored value. If A1 stores 0.256 and displays 26%, then =A1*100 returns 25.6, not 26.
Common cases where the two differ
| You type | Format applied | Cell shows | Stored value |
|---|---|---|---|
| 3.14159 | Number, 2 decimals | 3.14 | 3.14159 |
| 0.256 | Percentage, 0 decimals | 26% | 0.256 |
| 1234567 | Currency, 0 decimals | $1,234,567 | 1234567 |
| 2026-11-27 | Short Date | 11/27/2026 | 46353 (a serial number) |
| 12:00 | Time | 12:00 PM | 0.5 |
| 0.5 | Fraction | 1/2 | 0.5 |
The exact serial number for a date depends on the date. What matters is that dates and times are stored as numbers. A date is a count of days, and a time is a fraction of a day. Formatting turns that number into something readable.
Rounding in the display
Display rounding is the most frequent source of surprise. Suppose A1 stores 0.4 and A2 stores 0.4, and both are formatted with no decimals, so each shows 0. Then =A1+A2 returns 0.8 and shows 1 if it has the same format. A column of values that each show 0 can add up to a total that shows 1.
Printed reports and screenshots then look wrong, even though Excel is calculating correctly from the stored values.
Column width and hash signs
A number that does not fit in the column shows as ####. The stored value is unchanged. Widen the column, or reduce the decimal places, and the display returns. Very large or very small numbers in a General-format cell may display in scientific notation, such as 1.23E+11, while the stored value keeps its digits.
The 15-digit limit
Excel stores numbers with about 15 significant digits of precision. If you type a 16-digit number such as a card or account number, Excel keeps the first 15 digits and replaces the rest with zeros. That change is to the stored value, not only the display, so it cannot be undone by reformatting.
The fix is to enter such identifiers as text. This is the same technique used for leading zeros. Format the cell as Text before typing, or type an apostrophe first.
'1234567890123456The apostrophe tells Excel to store the entry as text. It does not appear in the cell, but it does appear in the formula bar.
Text that looks like a number
Text and numbers can display identically while being different stored types. A text "123" is aligned left by default, and a number 123 is aligned right. Formulas treat them differently. SUM ignores text values in a range, so a column of text-numbers can produce a total of 0.
Excel often flags these cells with a small green triangle in the corner. Selecting the cell shows a warning icon with an option to convert the entry to a number.
You can test the stored type with functions:
=ISNUMBER(A1)
=ISTEXT(A1)
=VALUE("123")ISNUMBER returns TRUE when A1 stores a number, and ISTEXT returns TRUE when it stores text. VALUE converts text that looks like a number into an actual number.
A leading-zero entry made with =TEXT(A1,"00000") gives text. The displayed result looks like 00123, and the stored value is the text 00123, not a number with a format.
This is different from applying the custom number format 00000 to a numeric cell. In that case the stored value stays 123, the display shows 00123, and formulas still see a number. Which approach is right depends on whether you need to calculate with the value or only show it.
Seeing the stored value
Several routes show what a cell really holds.
- Formula bar. Select the cell and read the formula bar. This shows the full precision of a number and the formula behind a result.
- Show Formulas. On the Formulas tab, choose Show Formulas, or press Ctrl+` (the grave accent key). Every cell then shows its formula. Dates and times appear as serial numbers in some cases. Toggle it off the same way.
- Change to General. Select a cell and apply the General number format. A date then shows its serial number, and a time shows a decimal fraction. Undo to restore the previous format.
- Increase Decimal. Adding decimal places reveals more of the stored digits, up to the limit of precision.
Making the display match the stored value
Sometimes you want the stored value itself to be rounded, not only the display. Use a function:
=ROUND(A1,2)This returns a stored value rounded to two decimal places. Totals that depend on it then match what readers see.
There is also a workbook option, Set precision as displayed (File, Options, Advanced). It permanently changes stored values in the workbook to match their displayed values. Excel warns that data will lose accuracy, and the change cannot be reversed. Prefer ROUND in formulas, because it limits the change to the cells you choose and keeps the original data.
Dates are numbers too
Because dates are stored as serial numbers, date arithmetic works directly. If A1 holds a start date and B1 holds an end date, =B1-A1 returns the number of days between them. That result may display as a date if Excel copies the date format to the formula cell. If you see something like 1/14/1900, change the result cell to General or Number.
A cell that appears to hold a date may actually hold text, for example if the entry was not recognized as a date. A real date aligns right and responds to date formatting. A text date does not change when you apply a different date format.
Common errors
- Totals that do not match visible values. Cause: display rounding. Use
ROUNDwhere the stored value should match. - Sums that return 0. Cause: numbers stored as text. Convert with the warning icon,
VALUE, or Text to Columns. - Trailing digits turned to zeros. Cause: the 15-digit limit. Enter long identifiers as text before typing them.
- A number shows as
####. Cause: the column is too narrow. Widen it. - A date shows as a five-digit number. Cause: the cell has General format. Apply a date format.
- Format change does nothing. Cause: the cell holds text.
Summary
The formula bar shows what is stored, and the cell shows what the number format produces. Formulas use the stored value. When a result looks wrong, compare the two, check the stored type with ISNUMBER, and use ROUND when you need the stored value to match the display.
Exercise
Cell A1 holds the number 2.678 and is formatted with one decimal place. B1 contains =A1*10. What does A1 display, what does B1 return, and which function would make B1 return exactly 27 using A1's displayed value?
Show answer
A1 displays 2.7, but it stores 2.678. B1 returns 26.78, because formulas use the stored value. =ROUND(A1,1)*10 returns 27, because ROUND(A1,1) gives 2.7 and 2.7 times 10 is 27.
Exercise
You type the 16-digit number 1234567890123456 into a General-format cell and the cell shows 1.23457E+15. You widen the column and apply Number format with 0 decimals, and it shows 1234567890123450. Why can the original last digit not be recovered, and how should you enter it next time?
Show answer
Excel keeps only about 15 significant digits, so the 16th digit was replaced with 0 when the entry was stored. Reformatting changes only the display, so it cannot restore it. Enter the value as text, either by formatting the cell as Text first or by typing an apostrophe before the digits.