Smart Systems for Home

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

How to Draw Lines in Google Sheets

· 5 min read · Home Tech

In this article
  1. Adding lines with borders, drawings and strikethrough
  2. Which line method fits your sheet
  3. Before you start drawing lines
  4. When the line looks wrong: causes and fixes
  5. Checking your line before you rely on it

The fastest way to draw a line in Google Sheets is to use the border tool: select the cell or range, then open the Borders menu in the toolbar and pick the side where you want the line. For a line you can place anywhere, use Insert > Drawing instead.

Time 2 min · Steps 6 · Level Easy

Adding lines with borders, drawings and strikethrough

  1. Select the cell or range. Click one cell, or click and drag across a row or column where the line should appear.
  2. Open the Borders menu. In the toolbar above the sheet, click the small square icon that looks like a divided grid; the exact label can differ slightly by version.
  3. Choose the line position. Click the top, bottom, left or right edge icon to place a line on that side of the selection.
  4. Pick a line style and colour. Use the pencil icon in the same menu for solid, dashed or dotted lines, and the colour swatch to change from the default black.
  5. Insert a free line with Drawing. For a line anywhere on the sheet, open Insert > Drawing > Line, drag to draw it, then click Save and Close; drag the placed drawing to reposition it.
  6. Strike through text. To put a line through text rather than a cell edge, select the cells and press Format > Text > Strikethrough.

Which line method fits your sheet

Borders are the right choice when the line belongs to the grid: underlining a header row, separating a totals column, or boxing a summary table. The line moves and resizes with the cells, so it survives sorting, inserting rows and copy-paste.

The Drawing tool suits lines that do not align with cell edges, such as an arrow pointing at a number or a diagonal across a merged cell. The trade-off is that a drawing floats above the sheet: if you insert rows above it, you have to drag it back into place yourself.

Strikethrough is for text only, and it is the standard way to show a crossed-out item in a checklist or a removed entry in a log.

Does a line under a whole row work the same way?

Yes. Select the row by clicking its number on the left, then apply a bottom border. To extend the line across only part of a row, drag across those cells instead; the border follows exactly the selected range.

Before you start drawing lines

  • Decide whether the line is part of the table (borders) or sits on top of it (drawing) - fixing this later means deleting and redoing the line.
  • If several people edit the sheet, note that borders and drawings are visible to everyone immediately.
  • For a header line you plan to sort by, apply the border to the header row itself so it stays attached after sorting.
  • Check that the toolbar is not collapsed; if you do not see the Borders icon, widen the browser window or click the three-dot menu at the toolbar's right end.

When the line looks wrong: causes and fixes

SymptomCauseFix
No line appears after clicking a border iconLine style set to a blank/none optionReopen the Borders menu and pick a solid line from the pencil-style options
Line shows on the wrong side of the cellWrong edge icon chosen, or selection shiftedRe-select the range and apply the correct edge; remove a wrong line with the clear-borders icon
Dashed line appears without you drawing onePage break preview or a shared-sheet cursor markerIgnore it - dashed lines from other editors' cursors disappear on their own
Drawing line moved after inserting rowsDrawings float above the grid and do not follow cell changesDrag the drawing back, or delete it and use a border instead
Line prints faintly or not at allLight border colour or print settings dropping gridlinesSet the border colour to black and check File > Print preview before printing
Line disappears when pasting cellsPaste overwrote the cell's border formattingUse Edit > Paste special > Values only to keep existing borders

Checking your line before you rely on it

Zoom out to about 75% and scan the sheet: borders should sit flush with cell edges with no gaps at corners where two ranges meet. If a corner looks broken, the neighbouring cell is missing its matching border - select both cells and apply the border again.

Next, sort the range or insert a test row above the line, then undo. A border should travel with its cells; a drawing will not, and that tells you which method you actually used. Finally, open File > Print and check the preview, since a line that looks fine on screen can sit too close to a page break on paper.

Can you make a line thicker than the standard border?

Yes. In the Borders menu, the pencil-style options include a medium and a thick line. The thick option is the usual choice for a strong line under column headers or above a totals row.

How do you remove a line?

Select the same cells, reopen the Borders menu, and click the icon that clears borders (the one showing a grid with no lines). For a drawing, click it once and press Delete, or click its three-dot menu and choose Delete.

Is there a keyboard shortcut for borders?

Google Sheets has no dedicated border shortcut, so use the toolbar menu. The strikethrough text option does have a standard shortcut, but menu labels and shortcuts can differ slightly by version, so rely on the Format menu if the shortcut does nothing.