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 “draw a line 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. 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
If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top, the tool proves it, and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. The short version of “draw a line in excel”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.
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
This is also commonly searched as “draw line in excel”, “how do i draw a line in excel”, “how to draw line excel” and “how do you draw a line in excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.
Why do people search for this in so many different ways?
Because the same task has many names. “draw line in excel”, “how do i draw a line in excel”, “how to draw line excel” all point at the one operation explained on this page, which is why they all lead here.