Hash Marks in Excel Cell: How to Fix and Use Them
In this article
Hash marks (####) in an Excel cell mean the column is too narrow to display the full value. The fix is simple: widen the column, or switch the cell to a format that fits. Hash marks are not an error—the underlying data is intact—but they can hide important numbers and make a sheet look broken. This guide shows you exactly how to clear them, when they appear, and how to prevent them.
What You'll Need
- Excel for Windows, Excel for Mac, or Excel for the web (steps are nearly identical; minor menu differences are noted).
- A spreadsheet containing cells that show ####.
- Basic familiarity with selecting cells and columns.
Step-by-Step
- Select the affected column(s). Click the column letter at the top of the sheet. To fix several columns at once, drag across the column headers or hold Ctrl (Windows) or Command (Mac) and click each letter.
- AutoFit the column width. On Windows, go to Home > Format > AutoFit Column Width. On Mac, use Format > Columns > AutoFit Selection. Alternatively, double-click the right edge of the column header—the cursor changes to a double arrow—and Excel resizes to the widest entry.
- Or set a specific width. Right-click the column header and choose Column Width, type a number (e.g., 20), and click OK. This is useful when you want consistent widths across a report.
- Check the cell format if widening doesn't help. A cell formatted as a date or time can still show #### if the column is too narrow for the full date/time string. Widen further, or change the format: select the cells, press Ctrl+1 (Windows) or Command+1 (Mac), and choose a shorter format such as Short Date.
- For negative numbers in date/time formats, adjust the format. Excel displays ##### for negative time values when the workbook uses the 1900 date system. Switch to the 1904 date system (File > Options > Advanced > scroll to When calculating this workbook > check Use 1904 date system) or change the cell format to a number format that allows negatives.
- Verify the data is still there. Click a cell showing #### and look at the formula bar. The full value appears there, confirming the data is intact. You can also widen the column temporarily to read it.
- Prevent future hash marks. Turn on Wrap Text for long text (Home > Wrap Text), or apply a narrower number format (e.g., reduce decimal places). For shared sheets, set a default column width that accommodates your typical values.
Common Mistakes
- Assuming the data is corrupted. Hash marks are a display issue, not data loss. Always check the formula bar before retyping.
- Widening only one cell. Column width applies to the whole column; selecting a single cell and widening does nothing. Select the column header.
- Ignoring date/time formats. A column wide enough for a number may still be too narrow for a long date like “Wednesday, September 4, 2024”. Use a shorter format or widen more.
- Using #### as a placeholder. Some users type #### intentionally, but Excel may interpret it as text. If you need a visual separator, use a border or a custom number format instead.
- Forgetting merged cells. Merged cells can show #### even when the column looks wide enough because the merged area may be narrow. Unmerge or widen the merged range.
Tips
- Quick AutoFit shortcut: Select the column and press Alt+H+O+I (Windows) to AutoFit. On Mac, there is no default shortcut; use the menu.
- Use “Shrink to Fit” for text that must stay in a narrow column: Format Cells > Alignment > Shrink to Fit. This reduces font size instead of showing ####.
- Check zoom level. At very high zoom, Excel may show #### earlier because fewer characters fit. Zoom to 100% to confirm.
- Apply a consistent number format (e.g., two decimal places) across a column to reduce width needs.
- For dashboards, set column widths before adding data to avoid last-minute adjustments.
Troubleshooting
If widening the column does not remove the hash marks, work through these checks in order:
- Confirm the cell format. Select the cell, press Ctrl+1, and check the Number tab. A date or time format with a long pattern (e.g., “dddd, mmmm d, yyyy”) needs more width than a simple number.
- Look for negative time values. If the cell contains a negative time (e.g., =B1-A1 where B1 is earlier), Excel shows ##### in the 1900 date system. Change the format to a number (e.g., General) or switch to the 1904 date system as described in Step 5.
- Check for merged cells. Select the cell; if the Merge & Center button on the Home tab is active, the cell is merged. Unmerge (Home > Merge & Center > Unmerge Cells) or widen the merged range.
- Inspect custom number formats. A custom format with many characters (e.g., repeating text) can cause #### even in a wide column. Reset to General format to test.
- Try a different view. Switch to Page Layout view (View > Page Layout) and back to Normal; this refreshes the display.
- If the file is shared, check for protected view. Files opened from the internet may open in Protected View, which can affect rendering. Click Enable Editing.
If none of these work, copy the value to a new sheet and format it there. Persistent hash marks across all columns may indicate a display driver issue; restart Excel or your computer.
Frequently Asked Questions
Why does Excel show #### instead of my number?
Because the column is too narrow to display the full value. Widen the column or apply a shorter number format.
Is my data lost when I see ####?
No. The value is still in the cell; click the cell and check the formula bar to see it.
Can I stop #### from appearing automatically?
Not entirely, but you can reduce it by using AutoFit, Wrap Text, or Shrink to Fit, and by choosing number formats that fit your typical column widths.
Why does a date cell show #### even after I widen the column?
The date format may be too long (e.g., full weekday and month names). Change to a shorter date format or widen the column further.
What does ##### mean for negative time values?
Excel cannot display negative times in the default 1900 date system. Switch to the 1904 date system or change the format to a number.
Does #### appear in Excel for the web?
Yes, the same rule applies: the column is too narrow. Use the column header menu to resize or AutoFit.