Dotted Line in Excel: How to Add One (Step by Step)
In this article
A dotted line in an Excel spreadsheet is almost always a border style rather than a line you draw freehand. To get one, select the cells, open the Home tab, click the arrow next to the Borders button, and choose More Borders, then pick the dotted style from the Style list and click the outline or inside buttons in the preview. If you are trying to remove a dotted line that appears across the whole sheet, that is a different feature (page breaks or gridlines) and is handled separately. This guide covers both, plus fill-in techniques, printing quirks and the reasons a dotted border sometimes refuses to show.
What You'll Need
- Excel on Windows, macOS or the web; the Ribbon menus are broadly the same, though the exact wording can differ slightly by version, device or region.
- A workbook with at least a few cells you want to outline.
- For printing checks, access to File > Print so you can see the preview before you commit.
Step-by-Step
Adding a dotted border
- Click the first cell, then hold Shift and click the last cell so the whole block is selected. You can also drag across the range.
- Go to the Home tab and find the Borders button in the Font group. It shows a small grid icon.
- Click the small arrow beside the Borders icon to open the border list. This drops down a menu with presets such as All Borders, Thick Box Border and Outside Borders.
- Choose More Borders at the bottom of that list. On Windows the Format Cells dialog opens on the Border tab. On macOS the same dialog appears but the tabs are laid out slightly differently.
- In the Line area on the left, choose Dotted from the Style list. Excel shows square solid, dash, dash-dot and several dot patterns; the plain dot row is the true dotted line.
- Choose a colour from the Color drop-down if the default black is too heavy for your sheet.
- In the preview on the right, click the buttons for the edges you want: Outline draws a frame around the whole selection, Inside draws the internal grid, and the individual edge buttons (top, bottom, left, right) let you place the dots on specific sides only.
- Click OK. The dots appear immediately in the selected range.
Using the quick preset
- If you want dots everywhere, the Borders drop-down does not include a dotted preset, so use the More Borders route above. Deleting and re-drawing with the paint-style Borders icon (the paintbrush-shaped one next to the drop-down arrow) is quicker for repeating the last style on new ranges: pick the cells and click the main Borders button, and Excel reapplies the last border you set.
- For a single row or column separator, select just that row or column, open More Borders, pick the dotted style, and click only the bottom edge button in the preview.
Copying a dotted style to other cells
- Select a cell that already has the dotted border you like.
- Press Ctrl+C on Windows or Command+C on macOS.
- Select the destination range.
- Right-click and choose Paste Special > Formats. This transfers the border without overwriting the numbers or formulas underneath, which is the safe choice when the destination cells already contain data.
Removing a dotted line
- Select the cells carrying the border.
- Open the Borders drop-down and choose No Border to clear all edges at once.
- If only some edges are dotted, go back into More Borders and click the offending edge buttons in the preview until they are blank, then click OK.
Getting rid of the dashed line that runs across the sheet
- That line is a page break marker, not a border. It appears after you use View > Page Break Preview or set print areas.
- Go to View and switch back to Normal. The dashed line usually disappears.
- If it stays, open File > Options > Advanced (on macOS, Excel > Preferences), scroll to the Display options for this worksheet, and clear the checkbox for page breaks. You have to do this per worksheet.
- To remove an actual manual page break, use Page Layout > Breaks > Reset All Page Breaks on the sheet.
Dots not showing on screen or in print
- Check View > Gridlines is on. Solid grey gridlines can visually swallow thin dotted borders on a small screen.
- Zoom in to 100% or more. Fine dot patterns can vanish into a solid line at very low zoom levels.
- Open File > Print and look at the preview. Some printers render very fine dot styles as continuous grey lines because of their print resolution.
- If printing is the problem, change the border to a slightly heavier dotted style or a darker colour in More Borders, and check that the cell fill colour is not too dark for a thin border to register.
Common Mistakes
The most frequent error is choosing the dash style and expecting dots. The list contains both dashed and dotted rows, and dashed reads as a short broken line while dotted is a row of fine points; look closely at the sample. Another common slip is clicking inside a cell and applying a border when a whole range was intended, which leaves one cell outlined and nothing else. Selecting the range by dragging is safer than clicking cell by cell.
People also overwrite data when copying a styled cell: a plain paste replaces the contents of the destination. Use Paste Special > Formats instead. Finally, many users apply dotted borders and then wonder why nothing prints; the sheet may have a white fill on the cells or a printer setting that hides light borders, so always check the print preview before sending a document out.
Tips
Use dotted borders sparingly. They are ideal for showing a suggested, optional or temporary area, such as a range awaiting approval, and they deliberately look lighter than solid borders. Keep dotted lines off cells that also carry thick solid outlines, or the result looks cluttered.
For a dotted line that behaves like a separator between rows, apply the border to an empty row and reduce the row height so the dots sit close to the neighbouring data. If you need the same dotted frame on many sheets, apply it to a cell, copy it, then paste formats to matching cells on the other sheets.
Remember that borders travel with the cell, not with the data, so inserting rows can leave the frame behind. If you insert frequently, apply borders to a formatted table instead so the style extends automatically. You can also use conditional formatting with a border rule to make dots appear only when a cell meets a condition, which keeps a clean sheet clean until it matters.
Troubleshooting
If the dots refuse to appear at all, confirm you clicked OK in the Format Cells dialog and did not close it with Cancel. If only part of the range shows dots, re-select it and check the preview: a selection made of two separate blocks can only take an outline around each block, not around the gap between them.
If the border shows on screen but disappears when the file is opened on another computer, the style may be a custom border colour that does not survive an older file format. Save as .xlsx rather than the older .xls format. If the whole sheet looks wrong after a paste, press Ctrl+Z or Command+Z immediately to undo.
When the dotted line will not go away despite choosing No Border, it is probably a page break or gridline issue rather than a border, so follow the page break steps above. In shared workbooks, another user may have applied the border after you cleared it; check for co-authoring changes before repeating the edit.
Frequently Asked Questions
Can I draw a freehand dotted line across a chart or cell?
Yes, but it is a shape, not a border. Use Insert > Shapes, pick a line shape, then set its outline to a dashed or dotted dash type. The line floats above the cells and does not move with data unless you anchor it.
Why does my dotted border look solid when printed?
Printer resolution is usually the cause: very fine dot patterns can fill in. Choose a heavier dotted style or a darker colour, and confirm the result in File > Print before printing a whole batch.
What is the difference between dotted and dashed borders?
Dotted uses small round points in a close row; dashed uses short line segments with visible gaps. They sit next to each other in the same Style list, so pick carefully.
Can I make a dotted border the default for new cells?
You can format a cell with the dotted border, then use it as the basis for a cell style, or use Format Painter to copy it. There is no single global setting that makes every new cell dotted.
Do dotted borders carry over when I export to PDF?
Yes, borders are part of the cell formatting and are preserved in a PDF export. The dots may render slightly finer than on screen, so check the exported file.
Why do the dots disappear when I change zoom level?
At very low zoom, thin borders are rounded to the nearest pixel and fine dots can merge into a solid line or vanish. View the sheet at 100% to see the true result.