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).
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. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. For “removing lines from 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. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.
In Google Sheets
Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. If you take one thing from this page on “removing lines from excel”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.
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.