How to Get Rid of Dotted Lines in Excel
Learn practical, Excel-friendly steps to remove dotted lines from gridlines, borders, and page breaks. This step-by-step guide helps you clean worksheets for on-screen clarity and print-ready reports.

You can remove dotted lines in Excel by toggling gridlines, clearing cell borders, and resetting conditional formatting. Start with a quick screen-only fix (View > Gridlines) and then review borders and page-break settings for printing. This guide delivers practical steps, examples, and best practices for a clean, professional worksheet.
What dotted lines in Excel actually signify
Dotted lines can feel mysterious until you learn what they represent in Excel. In most cases, you’re looking at one of these phenomena: gridlines that appear by default on a worksheet screen; borders applied to cells that create a dashed outline; or page-break indicators that show where a sheet will split when printed. The exact cause depends on your current view mode and formatting rules. If you’ve been wondering how to get rid of dotted lines in excel, start by identifying which of these sources is active in your workbook. According to XLS Library analysis, most lines originate from three places: gridlines (view options), cell borders (formatting), or page-break markers (Page Layout/Print Preview). Understanding the source saves you from overhauling the entire sheet and helps you keep only the elements you truly need.
Quick checks: identify the source of lines
Before you start changing settings, run a quick diagnostic. Toggle the visibility of gridlines (View > Gridlines) to see if they disappear on screen. Inspect cells for borders (Home > Font > Borders) and remove any that look excessive or inconsistent. Review conditional formatting rules that use dotted patterns or border emphasis; these can create the illusion of stray lines even when gridlines are off. Finally, check Page Layout view or Print Preview to determine if the lines belong to the print grid rather than the on-screen canvas. Keep a simple log of what you changed so you can revert if a result isn’t what you expected. This focused approach helps you pinpoint the exact source without disturbing legitimate formatting elsewhere in your workbook.
Turn off gridlines for a clean on-screen view
Gridlines are a visual aid; turning them off does not affect data or formatting. To remove them temporarily, go to the View tab and uncheck Gridlines (or use the Excel options to disable gridlines by default). On some platforms, you may need to adjust the preferences in the View section of the Ribbon. After turning gridlines off, re-check any charts, tables, or notes that relied on their presence, because some visuals appear to rely on the grid as a baseline. If your goal is a clean screenshot or a presentation-ready sheet, hiding gridlines is often the simplest first step.
Remove borders and outlines from selected cells
Borders are a common cause of dotted lines when the wrong border style is applied. Select the affected range, then choose No Border (or delete borders) from the Borders drop-down in the Home tab. If you want a cleaner look across a larger area, consider applying a uniform border style only where needed. After clearing borders, test again in both Normal and Page Break Preview views to ensure lines aren’t reappearing due to residual formatting. The key is to differentiate between structural gridlines and decorative borders.
Clear conditional formatting that creates dotted patterns
Conditional formatting can introduce dotted outlines or dashed markers that resemble gridlines. Open Conditional Formatting > Manage Rules to review rules applied to the active worksheet, then disable or delete any that create border-like effects. If a rule highlights alternating rows or columns with borders, replace it with a simpler rule or adjust the format to avoid drawing borders. After updating rules, recalculate the worksheet (e.g., press F9 or re-open the file) to ensure the effect is removed.
Manage page breaks and print settings
Page breaks appear as dotted lines in Page Break Preview. If your goal is to remove these lines for screen work, switch away from Page Break Preview (View > Normal) or hide the page-break indicators by adjusting print options. In Print Preview, verify scaling, margins, and paper size; sometimes a line sits at the edge of the printable area. If you frequently prepare print-ready sheets, consider creating a template with gridlines and borders turned off by default and only enabling what you need for printing.
Investigate charts, shapes, and drawing objects
Items such as charts, shapes, or drawing objects can introduce lines that look like dotted gridlines. Click each object to inspect its border or line style; set to No Line where appropriate. If a chart has gridlines turned on, disable them in the chart's layout options. For complex workbooks with many objects, use the Selection Pane to manage visibility and confirm no floating line is left behind. This step helps you separate data lines from decorative elements.
Best practices for clean worksheets and templates
Adopt a minimal, consistent formatting policy to avoid dotted lines reappearing. Create a simple template with Gridlines turned off for display-only copies, and save it as a template (.xltx). Document your border rules in a quick guide so teammates apply the same standards. Use named ranges for consistency, and review Print Settings before distributing copies. Regularly audit a sample of worksheets to ensure formatting doesn’t creep back in.
Authority sources
To support these guidelines, consult authoritative references:
- Microsoft Support: Show or hide gridlines and gridline headers in Excel (https://support.microsoft.com/en-us/office/show-hide-gridlines-and-gridline-headers-in-excel)
- Microsoft Docs: Borders in Excel and cell styles (https://docs.microsoft.com/en-us/office/vba/api/excel.borders)
- U.S. Department of Education (ED.gov) for general best practices in document formatting and presentation (https://www.ed.gov)
Troubleshooting advanced scenarios
In some rare cases, dotted lines can crop up due to workbook corruption, add-ins, or regional settings affecting display. If you’ve exhausted standard fixes, try the following: 1) open the workbook in Safe Mode or a new Excel profile; 2) disable add-ins and re-enable one by one to identify conflicts; 3) export data to a fresh workbook and reapply formatting from scratch. When all else fails, copying content to a new workbook with a clean template often resolves anomalies without losing data.
Authority sources (continued)
For more in-depth reading, refer to official publications and trusted educational resources: https://support.microsoft.com, https://docs.microsoft.com, https://www.ed.gov
Tools & Materials
- A computer with Excel installed(Prefer latest version (Excel 2016+ recommended))
- Blank worksheet or test workbook(Use a copy to avoid editing originals)
- Access to View/Print settings(Needed for gridlines, borders, and page breaks checks)
- Borders tool (Home > Font > Borders)(Essential for removing or applying borders quickly)
- Conditional Formatting manager(Used to review and adjust border-related rules)
Steps
Estimated time: 20-45 minutes
- 1
Identify the source of lines
Open the target sheet and determine whether dotted lines come from gridlines, cell borders, conditional formatting, or page breaks. This helps you apply the correct fix without overhauling unrelated formatting.
Tip: Use a separate copy of the sheet to test each source in isolation. - 2
Hide gridlines for screen clarity
Navigate to the View tab and uncheck Gridlines. Verify on-screen results in Normal view first before touching printing options.
Tip: If you need gridlines later, re-enable them per worksheet basis rather than globally. - 3
Clear unnecessary borders
Select the affected area and choose No Border from the Borders dropdown. Re-check in both Normal and Page Break Preview modes to confirm lines are gone.
Tip: Use the Format Painter to apply consistent border rules elsewhere after cleaning. - 4
Review conditional formatting rules
Open Conditional Formatting > Manage Rules and disable or modify rules that draw borders or patterns. Recalculate the sheet to ensure changes take effect.
Tip: Aim for minimal, non-border-based highlighting to avoid reintroducing lines. - 5
Check page breaks and print settings
Switch from Page Break Preview to Normal view. Inspect where dotted lines appear in Print Preview and adjust margins, scale, and paper size if needed.
Tip: Create a print-ready template that suppresses non-essential borders and gridlines. - 6
Inspect charts and shapes
Click each object to review border settings. Set borders to No Line where appropriate and disable gridlines within charts if needed.
Tip: Use the Selection Pane to quickly locate and modify clustered objects. - 7
Test in a clean workbook
Copy data into a new workbook and apply only the essential formatting. This ensures you’re not carrying over hidden styles.
Tip: If issues reappear, re-create the sheet structure from scratch with a clean template. - 8
Document your formatting rules
Create a brief guide outlining when to enable/disable gridlines, borders, and page breaks. Save as a template for future use.
Tip: Having a reference reduces rework for teammates.
People Also Ask
What causes dotted lines to appear in Excel worksheets?
Dotted lines can come from gridlines, borders, conditional formatting, or page breaks. Identifying the source is the first step to removing them without disrupting essential formatting.
Dotted lines usually come from gridlines, borders, conditional formatting, or page breaks. Start by checking each area to see which one is active in your sheet.
How do I remove gridlines only for viewing, not printing?
Go to the View tab and uncheck Gridlines. This hides them on screen but does not affect data or printing settings.
In the View tab, turn off Gridlines to hide them on screen while keeping your data intact.
How can borders cause problems after removing gridlines?
Borders can persist even when gridlines are off. Select affected cells and choose No Border, then verify in Page Break Preview to ensure no stray lines remain.
Borders can linger after gridlines are hidden; clear them on the affected cells and check the page layout.
What should I do if dotted lines appear again after saving?
It may be due to conditional formatting or a template. Revisit rules, save to a fresh workbook, and test with a copy to confirm persistence.
Dotted lines reappearing after save usually means a lingering rule or template; review and test changes in a copy.
Is it safe to reset all formatting in a workbook to fix this?
Resetting all formatting can remove needed styles. Instead, target specific gridlines, borders, and rules, then reapply as needed.
Resetting everything is risky; fix specific sources and reapply styles carefully.
Can this issue affect printing and page layout?
Yes. Page breaks and print settings can produce dotted markers. Check Print Preview and adjust margins, scaling, and paper size.
Yes—print settings can cause dotted markers; verify with Print Preview and adjust accordingly.
Watch Video
The Essentials
- Identify line sources before changing formatting
- Hide gridlines for clean on-screen reviews
- Clear unnecessary borders and review conditional formatting
- Check page breaks and print settings regularly
