Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Add Dotted Lines in Excel Sheets

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Dotted lines in Excel help visually separate sections, indicate boundaries for printing or scrolling, or highlight areas without using solid borders. They’re useful for drafts, templates, or when you want subtle guidance without visual clutter. No special tools or add-ins are needed—this works in all modern versions of Excel for Windows, Mac, and web.

What You'll Need

  • Microsoft Excel (2016 or later for consistent behavior)
  • A worksheet with cells you want to outline with dotted lines
  • Access to the Format Cells dialog box (via right-click or ribbon)

Step-by-Step

  1. Open your Excel workbook and select the cells you want to apply dotted lines to. You can click and drag to select a range, hold Ctrl while clicking individual cells, or click the row or column headers to select entire rows/columns.
  2. Right-click the selected cells and choose Format Cells from the context menu. Alternatively, go to the Home tab on the ribbon, find the Font group, and click the small arrow in the bottom-right corner (the Dialog Box Launcher).
  3. In the Format Cells dialog box, click the Border tab at the top.
  4. Under Line Style, scroll through the available line options until you find the dotted line—represented by a series of small circles or dots. It’s typically the fourth or fifth option from the left in the top row. Hover over each to see the preview label; it may say Dotted or appear as • • •.
  5. Click the dotted line style to select it. The preview box will update to show the dotted pattern.
  6. Use the border buttons around the preview box to apply the dotted line to specific edges: click Outline to add borders around the entire selection, or click Inside to add borders between cells in the range. You can also click individual edges (top, bottom, left, right) to apply the dotted line to just those sides.
  7. Once you’ve placed the lines where you want them, click OK to apply the formatting.
  8. Verify the result. If you see solid lines instead of dotted, you may have accidentally selected a different line style. Repeat Steps 2–6 to correct it.

Common Mistakes

  • Applying the dotted line to the wrong edge—e.g., selecting Inside when you meant to outline the group. Double-check the preview before clicking OK.
  • Using the Draw Border tool from the ribbon instead of Format Cells. The Draw Border tool only offers solid lines; dotted lines are not available there.
  • Forgetting to select cells before opening Format Cells. If no cells are selected, Excel applies the border to the entire worksheet or defaults to the last selection.
  • Confusing dotted lines with dashed lines. Dotted lines are made of small circles, dashed lines are longer gaps. If you see dashes, you selected the wrong line style.
  • Trying to apply dotted lines to merged cells. Merged cells can behave unpredictably with borders. Unmerge first, apply the dotted lines, then re-merge if needed.

Tips

  • Use dotted lines for draft layouts or temporary guides. They’re less intrusive than solid lines and won’t interfere with printing unless set as print borders.
  • To make dotted lines appear in printed output, go to Page Layout > Print Area and ensure the range is correctly set. Dotted borders print by default unless you’ve changed the print settings to hide gridlines.
  • For recurring templates, save the formatted range as a custom cell style. Go to Home > Cell Styles > New Cell Style, name it Dotted Border, and apply it later with one click.
  • If you need dotted lines across the entire sheet, select the whole sheet by clicking the triangle at the top-left corner (above row 1 and left of column A), then apply the border.
  • On Excel for Mac, the steps are nearly identical, but the ribbon layout may differ slightly. If you can’t find the Border dialog, use Format > Cells from the top menu.
  • Use the Format Painter to copy dotted borders from one range to another without re-opening the Format Cells dialog. Select the formatted range, click Format Painter (Home tab), then drag over the target cells.

Troubleshooting

  • Dotted lines don’t appear after applying: Check that you selected the correct line style. Sometimes, the dotted option is hard to distinguish from dashed. Reopen Format Cells > Border and verify the preview shows dots, not dashes.
  • Dotted lines show as solid when printed: Go to Page Layout > Sheet Options > uncheck Gridlines if you want only the dotted borders to print. Also check File > Print > Page Setup > Sheet tab and ensure Print is set to Black and White if your printer ignores color line styles.
  • Only some cells get dotted lines: You may have selected non-contiguous cells. Excel applies borders only to selected areas. Select all target cells as one continuous range, then apply the format.
  • Excel crashes when applying borders: This is rare but can happen with very large ranges or corrupted cells. Try copying the data to a new worksheet and applying the border there. Save frequently.
  • Dotted lines disappear after saving: Ensure you saved the file as .xlsx or .xlsm. If saved as .csv, borders are stripped. Always use Excel-compatible formats for formatting to persist.

Frequently Asked Questions

Can I use dotted lines to separate data for printing?

Yes. Dotted lines are ideal for indicating where sections begin or end on printed pages. They appear cleanly in print and don’t compete with solid data borders.

Why can’t I find the dotted line option in Excel Online?

Excel Online has limited formatting options. The dotted line border is not available in the web version. Use the desktop app instead, or apply a dashed line as a substitute.

Do dotted lines affect cell calculations or data?

No. Borders are purely visual formatting. They do not change cell values, formulas, or data integrity in any way.

Can I make dotted lines thicker?

No. Excel only offers one thickness for each line style. Dotted lines are fixed at standard weight. If you need a thicker visual effect, use a dashed line or add a shaded background.

How do I remove dotted lines once applied?

Select the cells, open Format Cells > Border, then click the None button in the border preview area and click OK. This removes all borders from the selection.

Can I apply dotted lines to only the bottom of a row?

Yes. In the Format Cells > Border tab, click only the bottom edge button after selecting the dotted line style. This applies the dotted line exclusively to the bottom of the selected row(s).