The fastest way to select an entire line (row) in Microsoft Excel is Shift+Spacebar on Windows or Shift+Spacebar on Mac. In Microsoft Word, to select a full line of text, press Ctrl+Shift+Down Arrow (Windows) or Cmd+Shift+Down Arrow (Mac) to extend the selection to the end of the line, or Ctrl+Shift+Home to select from the cursor to the start of the line. This article explains these shortcuts in detail, including variations for selecting multiple lines, entire columns, and lines in other applications.
Why Line Selection Shortcuts Matter
Selecting an entire line is one of the most frequent actions in spreadsheet and document editing. Doing it with the mouse—clicking and dragging across a row or dragging through a paragraph—is slow and imprecise, especially when working with large datasets or long documents. Keyboard shortcuts let you select exactly what you need without lifting your hands from the keyboard, reducing strain and increasing speed. For Excel users, selecting a row is often the first step before formatting, deleting, or copying data. In Word, line selection is essential for moving or styling text. Mastering these shortcuts can save hours over a career.
Excel: Selecting a Row (Line) with the Keyboard
In Excel, a “line” is typically a row. The primary shortcut is Shift+Spacebar. This selects the entire row of the active cell. If you have a cell selected in row 5, pressing Shift+Spacebar highlights all of row 5 from column A to the last column with data (or the entire worksheet row, depending on your settings).
To select multiple consecutive rows, do the following:
- Select the first row using Shift+Spacebar.
- Hold down Shift and press Up Arrow or Down Arrow to extend the selection to adjacent rows.
Alternatively, you can select a range of rows by clicking on a row number and dragging, but the keyboard method is faster for large jumps.
For selecting an entire column (the vertical equivalent), use Ctrl+Spacebar (Windows) or Cmd+Spacebar (Mac). Note: On some Mac keyboards, Cmd+Spacebar is reserved for Spotlight search; if that happens, you can change the shortcut in System Preferences or use the menu path: click on a column letter to select it.
Word: Selecting a Line of Text
In Microsoft Word, selecting a “line” means selecting a horizontal line of text within a paragraph. The most direct method is to use the mouse: move the cursor to the left margin until it becomes a right-pointing arrow, then click once to select that line. But for keyboard-only users, the shortcut is Ctrl+Shift+Down Arrow on Windows (or Cmd+Shift+Down Arrow on Mac). This selects from the cursor position to the end of the current line. If you press it again, it extends to the end of the next line, and so on.
To select the entire line from the beginning to the cursor, use Ctrl+Shift+Home (Windows) or Cmd+Shift+Home (Mac). To select the entire line from the cursor to the end, use Ctrl+Shift+End (Windows) or Cmd+Shift+End (Mac).
For selecting an entire paragraph (which is often what people actually want when they say “line”), use Ctrl+Click anywhere in the paragraph (Windows) or Cmd+Click (Mac). Or use the keyboard: place the cursor at the start of the paragraph and press Ctrl+Shift+Down Arrow repeatedly until the whole paragraph is selected.
Selecting Lines in Google Sheets and Other Apps
Google Sheets uses the same shortcut as Excel: Shift+Spacebar to select a row. This works in a browser on both Windows and Mac. For Google Docs, the line selection shortcuts are similar to Word: Ctrl+Shift+Down Arrow (Windows) or Cmd+Shift+Down Arrow (Mac) to select to the end of the line.
In text editors like Notepad++ or Sublime Text, you can often select a line by pressing Ctrl+L (Windows) or Cmd+L (Mac). This selects the entire line, including the newline character. In many IDEs (like Visual Studio Code), Ctrl+L also selects the current line. However, be aware that in some applications, Ctrl+L might do something else (like in browsers, it focuses the address bar).
How to Choose the Right Shortcut
Choosing between the row selection (Shift+Spacebar) and column selection (Ctrl+Spacebar) depends on what you need to do. If you want to format an entire record (row) in a database, use Shift+Spacebar. If you want to apply formatting to a field across all records (column), use Ctrl+Spacebar. For text documents, decide whether you need the whole line or just from a certain point. The shortcuts that extend from the cursor (Ctrl+Shift+Arrow) are more flexible because they let you select partial lines.
- Shift+Spacebar – Selects entire row in Excel/Sheets.
- Ctrl+Spacebar – Selects entire column in Excel/Sheets.
- Ctrl+Shift+Down Arrow – Selects from cursor to end of line in Word/Docs.
- Ctrl+L – Selects entire line in many code editors.
Common Problems and Misconceptions
A common misconception is that Ctrl+Spacebar in Excel selects the entire worksheet. It does not; it selects the current column. To select the entire worksheet, press Ctrl+A twice (first press selects the current data range, second press selects the whole sheet). Another issue: in Excel, if you have merged cells, Shift+Spacebar may select only the merged region, not the entire row. To avoid this, unmerge cells or use the row number click method.
In Word, pressing Ctrl+Shift+Down Arrow might select more than one line if your cursor is at the beginning of a line and the next line is short. This is because it selects to the end of the paragraph, not just the visual line. To select only the visual line, use the mouse method (click in the left margin).
Frequently Asked Questions
Q: How do I select an entire row in Excel without using the mouse?
Press Shift+Spacebar with any cell in that row active. This works in Excel for Windows, Mac, and Google Sheets.
Q: What is the shortcut to select a line in Word on a Mac?
Use Cmd+Shift+Down Arrow to select from the cursor to the end of the line, or Cmd+Shift+Home to select from the cursor to the beginning of the line.
Q: Does Ctrl+L work in Microsoft Word to select a line?
No, in Word, Ctrl+L left-aligns the paragraph. Use the mouse or the Shift+Arrow shortcuts instead.
Q: How do I select multiple lines in Excel at once?
Select the first row with Shift+Spacebar, then hold Shift and press Up or Down Arrow to extend the selection to adjacent rows.
Q: Why does Shift+Spacebar not work in Google Sheets?
It should work, but if you are on a Mac, ensure that the browser hasn’t captured the shortcut. Try clicking on a cell first, then press Shift+Spacebar. If it still doesn’t work, check your browser’s shortcut settings.
Summary of Essential Shortcuts
Here is a quick reference table for the most common line-selection shortcuts:
- Excel/Sheets – Select Row: Shift+Spacebar
- Excel/Sheets – Select Column: Ctrl+Spacebar (Cmd on Mac)
- Word/Docs – Select to End of Line: Ctrl+Shift+Down Arrow (Cmd on Mac)
- Word/Docs – Select to Start of Line: Ctrl+Shift+Home (Cmd on Mac)
- Code Editors – Select Entire Line: Ctrl+L (Cmd on Mac)
Memorize the ones you use most often. With practice, these shortcuts become second nature and will significantly speed up your editing workflow.
Related
- C Type Battery Cell: Sizes, Uses, and Buying Guide
- How to Generate a Random Number in Python
- Shortcut for Center in Excel: Quick Ways to Center Data
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Keyboard Shortcuts to Switch Between Worksheet TabsIn Excel for Microsoft 365 on Windows, press Ctrl+Page Down to move to the next sheet tab, or…
- Delete a Microsoft Excel Spreadsheet or a WorksheetTo delete an entire Excel spreadsheet file on Windows, close it, find it in File Explorer, right-click the…
- How to Use Absolute References in Excel for MacTo make a cell reference stay fixed when you copy a formula in Excel for Mac, add dollar…
- Microsoft Excel CSV Import: Steps, Settings, and FixesTo import a CSV file into Microsoft Excel for Microsoft 365 on Windows, select Data > From Text/CSV,…
- How to Copy Large Data in Excel Safely and QuicklyTo copy a large data range in Excel, select only the cells you need, press Ctrl+C, click the…
- Remove Data Validation Restrictions in ExcelTo remove data validation restrictions in Excel for Microsoft 365 on Windows, select the affected cell or range,…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.