Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Add a Dotted Line in Excel

Add a dotted bottom border to an Excel form, or use a custom format to fill the space after text with dots or underscores.

Table of Contents

For a dotted line that shows even when a cell is empty, apply a dotted bottom border. If you want dots directly after a label, such as Name followed by a line, use a custom text format instead.

Add a dotted border to an empty space

  1. Select the cells where the line should appear.
  2. Right-click and choose Format Cells > Border.
  3. Choose a dotted line style, apply it to the bottom edge in the preview, and select OK.

For a solid horizontal line, choose a solid border style. Use Excel Print Preview to check the result before printing the form.

Fill the space after text with dots

Enter a text label in the cell you want to format. Make the column wide enough for the label and the dotted area. In a display-only form you can also merge blank cells to create one wider field. Keep cells separate in a data table you need to sort or filter.

How to create dotted line in Excel Picture 1

How to create dotted line in Excel Picture 2

  1. Right-click the cell and select Format Cells.

    How to create dotted line in Excel Picture 3

  2. On the Number tab, select Custom.

    How to create dotted line in Excel Picture 4

  3. In Type, enter @*. and select OK. The @ stands for the cell’s text, while *. repeats the period across the remaining space. See Microsoft’s guide to custom format codes.

    How to create dotted line in Excel Picture 5

The dots are part of the display. Editing the cell still shows the underlying text. If the line needs to remain visible in a genuinely empty cell, use the border method above.

How to create dotted line in Excel Picture 6

How to create dotted line in Excel Picture 7

Use underscores instead of dots

Enter @*_ in the same Type field to repeat underscores after a label. Use a solid bottom border if you want a continuous line regardless of the text or font.

How to create dotted line in Excel Picture 8

How to create dotted line in Excel Picture 9

Video walkthrough

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.