Why Excel Shows ##### in a Cell
By ExcelReady TeamUpdated 5 min read
The short answer
Excel shows ##### when a number, date or time is too wide for its column. Double-click the right edge of the column header to widen it, and the value appears. If ##### stays however wide the column is, the cell holds a negative date or time, such as an end time before a start time. Fix that formula instead.
Key takeaways
is not an error: the value is still there, it just doesn't fit the column.
- Double-click the right edge of the column header to AutoFit the width.
- Numbers and dates never spill into the next cell, so they show ##### instead; text does spill over.
- A negative date or time shows ##### at any width; check the formula's order.
- For times that cross midnight, use =MOD(end-start,1) instead of end-start.
On this page+
When Excel is showing hashtags (#####) in a cell, it's telling you the value doesn't fit. Usually the column is too narrow for the number or date in its current format, and widening the column fixes it in one double-click. If the hashes stay no matter how wide the column is, the cell holds a negative date or time, and the formula needs a fix.
What do the ##### symbols mean in Excel?#
is a display problem, not an error. The cell's value is still there, and any formula that uses it still gets the
right number. Click the cell and the formula bar shows the real value.
Excel uses hashes because it refuses to show a number that's cut off. Showing 1,25 of 1,250,000 would be
misleading, so it shows ##### until the whole number fits. In the General format, Excel first tries rounding the
decimals to make a number fit; once it can't shorten it any further, or when the cell has a fixed format such as
currency, comma style or a date, you see hashes.
Text behaves differently: long text spills into the empty cells to its right, or is cut off at the edge if the next cell has something in it. Numbers and dates never spill over, which is why only they turn into hashes.
Fix 1: widen the column (AutoFit)#
The quickest fix is to let Excel size the column to fit its contents.
- Move the mouse to the column header row, onto the right edge of the column's letter (between C and D, for column C). The pointer becomes a double arrow.
- Double-click. The column resizes to fit its widest value.
This works the same on Windows and Mac. To fit several columns at once, select their headers first, then double-click any of the edges.
From the ribbon, use Home > Format > AutoFit Column Width. On Windows, the ribbon keys are Alt, H, O, I. You can also drag the edge to any width you like, or set an exact width with Home > Format > Column Width.
Fix 2: make the value shorter instead#
Sometimes you can't widen the column, for example in a printed report with a fixed layout. Make the value take less space instead:
- Use a shorter number format.
1,250,000.00needs more room than1,250,000. Remove decimals with Decrease Decimal on the Home tab. A long date like Wednesday, October 30, 2026 fits better as 10/30/2026. Our guide to formatting numbers, currency, percent and dates shows the options. - Shrink to fit. Press Ctrl+1 (⌘1 on a Mac) to open Format Cells, go to Alignment and tick Shrink to fit. Excel reduces the font size until the value fits.
- Use a smaller font for the whole column.
A date format on a number#
If a cell that should show a small number like 14 shows hashes or a strange date, it may have a date format by
mistake. Reset it to the General format with Ctrl+Shift+~ on Windows or Control+Shift+~ on a Mac. The
More formatting lesson walks through exactly this fix.
Fix 3: negative dates and times show ##### at any width#
If you widen the column and the hashes stay, the cell holds a negative date or time. Hover over the cell and Excel shows a tip saying that negative or too-large dates and times show as #####.
Why negative? Excel stores dates as numbers: days counted from January 1, 1900. Times are fractions of a day, so 6:00 AM is 0.25. There's no date before day 1, so a negative result can't be shown as a date or time. Our guides to why Excel stores dates as numbers and the how Excel stores dates lesson explain the system.
The two usual causes:
| Formula | Problem | Fix |
|---|---|---|
=B2-C2 (start date minus end date) | Earlier minus later is negative | =C2-B2, the later date first |
=C2-B2 for a shift from 10 PM to 6 AM | 6 AM is a smaller number than 10 PM | =MOD(C2-B2,1) |
Times that cross midnight#
A night shift from 22:00 to 06:00 is 8 hours, but =C2-B2 gives 0.25 − 0.9167 = −0.6667, which shows as #####.
=MOD(C2-B2,1)MOD with a divisor of 1 keeps only the fraction of a day and adds a whole day when the result is negative. The answer
is 0.3333, which is 8 hours. Format the cell as time (h:mm) to see 8:00, or multiply by 24 to get the
number of hours: =MOD(C2-B2,1)*24.
Other things that look like#
A few other displays are easy to confuse with the column-width problem:
- #VALUE!, #REF!, #NAME? and other errors start with
#but end with!or?. Those are real errors in the formula. - A formula that shows as text, like
=SUM(B2:B9)appearing in the cell, is a different problem: the cell is formatted as Text, or Show Formulas is on. See Excel shows the formula instead of the result. - Dates that show as numbers like 45663 need a date format, not a wider column. The DATE, YEAR, MONTH and DAY guide covers building and reading dates.
If a total is wrong rather than hidden, look for a formula that includes its own cell; our guide to circular reference warnings shows how to find one.
A quick checklist when you see#
- Click the cell. Does the formula bar show a sensible value? Then it's only width.
- Double-click the column edge to AutoFit.
- Still hashes? It's a negative date or time. Check the order of the subtraction.
- For times across midnight, use
=MOD(end-start,1). - Can't widen? Shorten the number format or use Shrink to fit.
Practise it#
Try the night-shift exercise on this page. Then use the More formatting lesson to practise number and date formats, and the DATE, YEAR, MONTH and DAY lesson to see how Excel turns dates into numbers.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
A night shift starts at 10 PM (B2) and ends at 6 AM (C2). =C2-B2 gives a negative time, which Excel shows as #####. In D2, use MOD to get the shift length: =MOD(C2-B2,1). The result, 0.333, is 8 hours as a fraction of a day.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Length | ||||
| 2 | |||||
| 3 | |||||
| 4 | |||||
| 5 | |||||
| 6 |
Tip: MOD(number, 1) keeps the fraction of a day and turns a negative time into the right positive one.
Practise this in a lesson
Frequently asked questions
Why is Excel showing hashtags instead of numbers?
The column is too narrow to show the number or date in its current format. Widen the column by double-clicking the right edge of its header, and the value appears.
Is ##### an error in Excel?
No. The cell's value is fine and formulas that use it still work. Only the display is cut off; click the cell and the formula bar shows the real value.
Why does a cell still show ##### after I widen the column?
The cell holds a negative date or time, which Excel can't display. This usually comes from subtracting a later date or time from an earlier one.
How do I calculate hours for a night shift without #####?
Use =MOD(end-start,1). MOD adds a day when the end time is on the next morning, so 10 PM to 6 AM gives 8 hours instead of a negative time.
How do I stop ##### without changing the column width?
Use a shorter number format, such as fewer decimals or a short date, make the font smaller, or turn on Shrink to fit in Format Cells > Alignment.