In Excel: decide which line you mean first — a row (Ctrl+Shift+= inserts one), a border (Home ▸ Borders), the faint gridlines (View ▸ Gridlines), a second line inside one cell (Alt+Enter), or a line chart (Insert ▸ Charts ▸ Line).
On this page7
You want another record in the sheet → that is a ROW. Select the row below where it should go and press Ctrl+Shift+= (Mac: Ctrl+I), or right-click the row number ▸ Insert.
You want visible lines around cells that also print → that is a BORDER. Select the range and press Ctrl+Shift+7, or use Home ▸ Font ▸ Borders for a specific edge.
The faint lines between all cells are missing or unwanted → those are GRIDLINES. Toggle View ▸ Show ▸ Gridlines. They are per worksheet and do not print unless Page Layout ▸ Sheet Options ▸ Gridlines ▸ Print is ticked.
You want two lines of text inside one cell → that is a LINE BREAK. Double-click the cell, position the cursor and press Alt+Enter (Mac: Ctrl+Option+Enter). Wrap Text alone breaks at the column edge, not where you choose.
You want to plot values as a connected line → that is a LINE CHART. Select the data and use Insert ▸ Charts ▸ Line, or Insert ▸ Sparklines ▸ Line for a mini chart inside a single cell.
What this does
Excel has no feature called a "line". The word covers five unrelated things, and picking the wrong one is why the same instructions work for one person and not the next. A row is a horizontal band of cells with a number down the left edge. A border is a drawn edge you apply to selected cells and that prints. Gridlines are the faint guides Excel shows between all cells; they are a view setting and do not print by default. A line inside a cell is a manual line break within one cell's text. A line chart plots a series as a connected line. Each has its own control, its own shortcut, and its own failure mode. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. For “show lines in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected cells change, and only then apply the same setup to the full sheet. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That is what makes a visual that makes the number obvious at a glance useful in real work: repeatable, auditable, and not dependent on memory or luck.
A worked example
Someone asked to "add lines to the table" almost always means borders: select A1:D20 and press Ctrl+Shift+7 (Home ▸ Borders ▸ All Borders) — those lines print. If instead the sheet needs another record, that is a row: right-click row 5's number ▸ Insert, or press Ctrl+Shift+= with the row selected. If the faint lines vanished, that is the gridline toggle: View ▸ Show ▸ Gridlines. And if an address needs to sit on two lines inside cell B2, click into B2, place the cursor and press Alt+Enter (Ctrl+Option+Enter on Mac). Naming the right feature is the whole job here: once you know whether you need a row, a border, a gridline, a line break or a chart, each one is a single shortcut — and every minute lost to this question was spent applying the wrong one. A practical tip: try it on a copy of the sheet or a handful of sample rows first and check the result before you apply it to the real data. That one habit catches almost every surprise while it is still cheap to reverse.
In Google Sheets
This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. Treat “show lines in excel” as a routine rather than a one-off. Once you know which setting or command controls it, the same few steps handle every workbook where it comes up in Excel, and you can explain them to a colleague in a sentence.
Common mistakes
- Applying borders when the intent was gridlines: borders stay after the View toggle is switched off, because they are cell formatting, not a display setting.
- Expecting gridlines to appear on paper — printing them is a separate checkbox on the Page Layout tab, off by default.
- Pressing Enter to get a second line inside a cell: Enter commits the cell and moves down. Alt+Enter is the one that stays inside.
- Deleting a "line" by pressing Delete on a row: that clears the contents and leaves an empty row. Right-click ▸ Delete removes the row itself and shifts the rest up.
- Using merged cells to fake a wider line of text — merging breaks sorting, filtering and most range formulas. Wrap Text plus Alt+Enter does the same job without the damage.
Frequently asked questions
How do I add lines in Excel?
If you mean visible lines around cells, select the range and press Ctrl+Shift+7 to apply all borders. If you mean another record, insert a row with Ctrl+Shift+= . If you mean a second line of text inside one cell, press Alt+Enter where the break should go.
How do I remove lines in Excel?
Borders: select the range and press Ctrl+Shift+_ (Home ▸ Borders ▸ No Border). Gridlines: untick View ▸ Show ▸ Gridlines. A row: right-click its number ▸ Delete. Dotted lines that appeared after printing are page breaks — View ▸ Normal, then Page Layout ▸ Breaks ▸ Reset All Page Breaks.
What is the difference between gridlines and borders?
Gridlines are a display aid for the whole sheet: uniform, not printable by default, toggled in one place. Borders are formatting applied to specific cells: any colour and weight, always printed, and they survive the gridline toggle.
Why does Enter not give me a new line in a cell?
Enter confirms the entry and moves the selection down — that is by design. Use Alt+Enter (Ctrl+Option+Enter on Mac) to break the line inside the cell; Excel switches Wrap Text on for that cell automatically.
Other ways people ask this
On the way here you may have searched this as “how do i show lines in excel”, “how to show line in excel” and “how to show the lines in excel” — it is all the same task, and this page is the single, complete answer to it.
Why do people search for this in so many different ways?
Because the same task has many names. “how do i show lines in excel”, “how to show line in excel”, “how to show the lines in excel” all point at the one operation explained on this page, which is why they all lead here.