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
- Select the cells where the line should appear.
- Right-click and choose Format Cells > Border.
- 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.
- Right-click the cell and select Format Cells.
- On the Number tab, select Custom.
- 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.
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.
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.
Reader Comments 0
Sign in with email or Google to join the discussion.