Why Are There Dotted Lines on My Excel?
In this article
Dotted lines in Excel appear when page breaks are visible — they show where your data will split when printed. This is not a mistake; it’s a print layout preview feature designed to help you adjust content before printing. You can turn them off if they clutter your view, but understanding them helps avoid unintended page breaks.
What You'll Need
- Microsoft Excel (any recent version: 2016, 2019, 2021, Microsoft 365)
- A worksheet with content that extends beyond a single printed page
- Access to the View tab on the Excel ribbon
Step-by-Step
- Open your Excel workbook and select the worksheet showing the dotted lines.
- Click the View tab on the Excel ribbon at the top of the window.
- In the Workbook Views group, locate the Page Break Preview button.
- If the button is highlighted (blue or darkened), click it to exit Page Break Preview mode. This will remove the dotted lines.
- If the dotted lines remain, check if Page Layout view is active. If so, click the Normal button in the same group to return to standard view.
- To confirm the lines are gone, scroll through your worksheet — dotted blue lines should no longer appear between rows or columns.
- If you want to see the lines again later, simply click Page Break Preview or Page Layout to re-enable them.
Common Mistakes
- Thinking the dotted lines mean your data is corrupted or incomplete — they are purely visual aids for printing.
- Trying to delete or move the lines manually — they are not cell borders or shapes and cannot be edited directly.
- Using Page Layout view without realizing it’s active — this view always shows page breaks as dotted lines, even if you didn’t intentionally turn it on.
- Assuming the lines are caused by a formatting error — they appear regardless of cell borders, shading, or alignment.
- Changing printer settings thinking it will remove lines — printer settings affect output, not the on-screen preview.
Tips
- Use Page Break Preview mode intentionally to drag and adjust page break lines — this lets you control where Excel splits your printout, avoiding awkward cuts in tables or headers.
- If you're preparing a report for printing, switch to Page Layout view to see exactly how headers, footers, and margins will appear on paper.
- Press Ctrl + P to open Print Preview — this shows you the final printed layout without the dotted lines, giving you a clean preview.
- Use the Page Break Preview to identify rows or columns that are too wide and may cause data to spill onto a second page unnecessarily.
- Hold Ctrl while dragging a dotted page break line to insert a manual page break — this overrides Excel’s automatic layout.
- If you frequently print the same sheet, set your page breaks once in Page Break Preview and save the file — Excel remembers them.
Troubleshooting
- If clicking Normal view doesn’t remove the dotted lines, restart Excel. Sometimes the view settings get stuck due to temporary glitches.
- If the lines reappear every time you open the file, check whether Page Layout or Page Break Preview was saved as the active view. Go to View > Normal to reset it before saving.
- If you’re using a shared workbook and others see different view settings, remember that view preferences are local to each user — they won’t affect your view unless they change the file's saved state.
- If you’re on a Mac, the View tab may be labeled slightly differently — look for View > Page Break Preview in the menu bar.
- If Excel crashes or freezes when switching views, try disabling add-ins: go to File > Options > Add-Ins, select COM Add-ins, click Go, and uncheck all items. Restart Excel and test again.
- If you’re using Excel Online (in a browser), Page Break Preview is not available. Dotted lines do not appear there — you’ll only see print layout in the Print dialog.