Hash Marks in Excel: Fix Wide Columns Fast
In this article
Hash marks in Excel (the ##### symbols that replace cell contents) mean one thing: the column is too narrow to display the value. Excel does not hide the number or corrupt it — the value is still there, and widening the column or reducing the font size makes it reappear. The fix takes seconds, but the cause matters: a date, a currency amount, or a long number needs more horizontal space than the current column width allows.
What You'll Need
- Excel for Windows, Mac, or the web app (steps are nearly identical; menu labels can differ slightly by version and platform).
- The workbook containing the affected cells.
- No add-ins or special settings — this is a built-in display behavior.
Step-by-Step
- Confirm it is a width problem, not an error. Click the cell and look at the formula bar. If the formula bar shows the real value (a date, a number, a formula result), the cell is fine — only the display is truncated. If the formula bar shows an error like #VALUE! or #DIV/0!, that is a different issue and widening will not help.
- Widen the column manually. Move the pointer to the right edge of the column header until it becomes a double-headed arrow, then drag right. Or double-click that edge to auto-fit the column to its widest entry — the fastest fix for a single column.
- Auto-fit several columns at once. Select the columns by dragging across their headers, then double-click any boundary between two selected headers. All selected columns resize to fit their contents.
- Use the ribbon for an exact width. Select the column, then go to Home > Format > Column Width (in the Cells group) and type a number. This is useful when you want consistent widths across a table rather than auto-fit widths.
- Shrink the font instead of the column. Select the cells and go to Home > Format > Format Cells > Alignment tab, then tick Shrink to fit. Excel reduces the font size until the value fits. This keeps column widths stable but can make text small, so use it sparingly.
- Reduce decimal places for currency and percentages. A value like 1234.5678 needs more room than 1234.57. Select the cells and use the Decrease Decimal button on the Home tab (in the Number group) until the display fits.
- Switch to a shorter date format. Dates are a common cause because Excel stores them as serial numbers and displays them in a long format. Select the date cells, go to Home > Number Format, and choose Short Date, or open Format Cells > Number > Date and pick a shorter style.
- Check merged cells. If a cell is merged across several columns, auto-fit will not work on it — Excel cannot resize merged cells automatically. Either unmerge (Home > Merge & Center) and widen normally, or set a manual column width.
- Verify the fix. After resizing, click each affected cell and confirm the displayed value matches the formula bar. If hashes persist in one cell but not others, that cell likely has a different format or a much longer value.
Common Mistakes
- Assuming the data is lost. Hash marks are a display issue only; the underlying value is intact. Do not retype the data.
- Widening the wrong column. If a cell contains a formula referencing another sheet, the hash marks appear in the formula cell, not the source. Widen the column where the hashes actually show.
- Ignoring merged cells. Auto-fit silently fails on merged cells, so people conclude auto-fit is broken. Unmerge first or set width manually.
- Using Shrink to fit everywhere. It can make numbers unreadably small in printed reports; prefer widening for tables you will print.
- Confusing hashes with a custom number format. A custom format that repeats a character can look similar. Check Format Cells > Number > Custom to rule this out.
Tips
- Double-clicking the column boundary is the single fastest fix and works on multiple selected columns at once.
- If you need a fixed layout for printing, set explicit column widths via Home > Format > Column Width rather than auto-fitting.
- For dashboards, keep number formats short (fewer decimals, short dates) so columns stay narrow and more data fits on screen.
- When pasting data from elsewhere, use Paste Special > Values to avoid carrying over number formats that force wide displays.
- Freeze panes (View > Freeze Panes) so you can widen columns without losing track of headers in large sheets.
Troubleshooting
Hashes remain after widening. Check whether the cell is merged; if so, unmerge and resize. Also confirm the cell is not set to a format with many decimal places — reduce decimals.
Only one cell shows hashes. That cell probably holds a longer value or a different format than its neighbors. Compare its formula bar contents and number format with a neighboring cell.
Auto-fit does nothing. This happens with merged cells, with cells containing line breaks in wrapped text, or when the column is part of a protected sheet. Unprotect the sheet (Review > Unprotect Sheet) if you have permission, then resize.
Hashes appear after changing the font. A larger font needs more width. Either widen the column or reduce the font size for those cells.
Hashes appear in a printed PDF but not on screen. Print scaling can compress columns. Check Page Layout > Scale to Fit and set it to Automatic or adjust the width setting.
Nothing works and the value looks wrong. If the formula bar shows an error rather than a value, the problem is the formula, not the width. Trace precedents (Formulas > Trace Precedents) to find the source.
Frequently Asked Questions
Do hash marks mean my data is corrupted?
No. They only mean the column is too narrow to display the value. The data is unchanged and reappears when you widen the column.
Why do only some cells show hashes?
Cells with longer values, more decimal places, or longer date formats need more width. Neighboring cells with shorter displays fit in the same column.
Can I stop hash marks from appearing at all?
Not with a single setting. The reliable approach is to size columns for your longest expected values and keep number formats compact, especially for dates and currency.
Does auto-fit work on merged cells?
No. Excel cannot auto-fit merged cells. Unmerge them, resize, then merge again if needed.
Why do hashes appear only when printing?
Print scaling compresses the sheet. Adjust the scale settings under Page Layout so columns keep enough width on paper.
Are hash marks the same as a # error?
No. Error values like #VALUE! or #REF! indicate a formula problem. Hash marks are purely a display width issue.