Sub topic 17
Troubleshooting common format problems
This chapter assumes you know the difference between a stored value and its displayed format, and that you can open Format Cells. Most format problems come from a mismatch between what a cell holds and what it shows.
Start by checking what the cell holds
Select the cell and look at the formula bar. The formula bar shows the stored value, and the cell shows the formatted result. Then check the alignment. By default, numbers and dates align right, and text aligns left.
Cells that show ####
Excel shows #### when the formatted result does not fit the column width. It also shows #### when a date or time value is negative, because the 1900 date system has no dates before serial number 1. Widen the column first. If the cell still shows ####, check whether a subtraction of times produced a negative result.
Numbers stored as text
Signs of text: left alignment, a green triangle, and SUM ignoring the cell. Setting the format to Number afterward does not fix this, because the cell already holds text. Try these fixes:
- Select the cells, click the warning icon, and choose Convert to Number.
- Use Data > Text to Columns and finish with the General format.
- Use a formula such as
=VALUE(A1)or=A1*1in another column, then paste values back.
Stray spaces or non-breaking spaces from imported data also block conversion. Remove them with =TRIM(A1) and =SUBSTITUTE(A1,CHAR(160),"").
Dates that stay text
A date such as 2026-11-27 may be text if your regional settings expect a different order. Convert it to a serial number, then apply a date format:
=DATEVALUE("2026-11-27")DATEVALUE accepts text that Excel can parse under your regional settings. If a day and month are swapped, such as 03/04, the settings are the cause. Rebuild the date with =DATE(year, month, day) instead.
Leading zeros disappear
A number cell cannot keep leading zeros, because 00042 and 42 are the same value. If the zeros are part of the display, such as a five-digit code, apply the custom format 00000. If the entry is an identifier you never calculate with, format the cells as Text before typing.
Displayed value differs from the real value
A cell formatted with two decimals may show 0.13 while holding 0.125. Totals then look off by a cent. A format changes only the display. To change the stored value, use =ROUND(A1,2).
TEXT results that break
=TEXT(A1,"yyyy-mm-dd") returns text, so you cannot use it in date arithmetic. Format codes inside TEXT can also depend on the language of the Excel installation. For example, a German installation expects JJJJ for the year.
Exercise
A cell contains 1234.567 and is formatted to show 1234.57. A second cell holds =A1*100 and shows 123456.7. A coworker expected 123457. What explains this, and what formula would give the coworker's result?
Show answer
The format only changes the display. The stored value is still 1234.567, so multiplying by 100 gives 123456.7. To get 123457, use =ROUND(A1,2)*100, which rounds first to 1234.57 and then gives 123457.