Selecting Multiple Rows in Excel: All Methods Explained
In this article
To select multiple rows in Excel, click the row number of the first row, hold the Shift key and click the row number of the last row for a continuous block, or hold the Ctrl key (Cmd on Mac) and click individual row numbers for a non-adjacent selection. Selecting multiple rows allows you to apply formatting, delete data, hide information, or move entire blocks of data simultaneously rather than editing cells one by one.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- A mouse or trackpad for navigation.
- A keyboard to access modifier keys (Shift and Ctrl/Cmd).
- An open workbook containing the data you wish to manipulate.
Step-by-Step
Depending on whether the rows you need are next to each other or scattered across the sheet, you will use a different selection method. Note that menu labels and keyboard shortcuts may vary slightly depending on your version of Excel or your operating system.
Method 1: Selecting Adjacent (Continuous) Rows
- Navigate to the worksheet containing your data.
- Locate the row headers on the far left side of the screen. These are the numbers (1, 2, 3, etc.) that identify each row.
- Click once on the row number of the first row you want to include in your selection. The entire row will highlight in a light blue or gray color.
- Press and hold the Shift key on your keyboard.
- While continuing to hold Shift, click the row number of the last row in the range you want to select.
- Release the Shift key. All rows between the first and last click, inclusive, are now selected.
Method 2: Selecting Non-Adjacent (Discontinuous) Rows
- Locate the row headers on the left side of the worksheet.
- Click the row number of the first row you wish to select.
- Press and hold the Ctrl key (Windows) or the Command (Cmd) key (macOS).
- While holding the modifier key, click the row numbers of any other rows you want to include, regardless of where they are located in the sheet.
- Continue clicking individual row numbers as needed, always keeping the Ctrl or Cmd key held down.
- Release the modifier key once all desired rows are highlighted.
Method 3: Using the Click-and-Drag Technique
- Hover your mouse cursor over the row number of the first row you want to select.
- Click and hold the left mouse button.
- While holding the button down, drag your cursor vertically down or up across the row numbers.
- As you drag, Excel will automatically highlight every row your cursor passes over.
- Release the mouse button when you reach the final row of your desired range.
Method 4: Selecting All Rows in a Dataset
- Click any single cell within the data range you want to select.
- Press Ctrl + A (Windows) or Cmd + A (macOS).
- If your cursor is inside a continuous block of data, Excel will select the entire current region. If you press the shortcut a second time, it will select every row and column in the entire worksheet.
Common Mistakes
One of the most frequent errors users make is clicking within the cells of the row rather than on the row header. If you click a cell and drag, you are selecting a range of cells, not entire rows. This means that if you later try to delete the selection, you will only delete the contents of those specific cells, potentially shifting other data upward and ruining your table alignment. Always ensure you are clicking the numbers on the far left to ensure the entire horizontal span of the worksheet is selected.
Another common mistake occurs when using the Ctrl/Cmd key for non-adjacent selection. If you accidentally release the modifier key before you finish clicking all the rows you need, clicking a new row will deselect everything you had previously highlighted. You will then have to start the process over from the first row. To avoid this, ensure your finger is firmly planted on the Ctrl or Cmd key before you begin clicking the row headers.
Users also frequently confuse the Shift key and the Ctrl key. Using Shift when you intended to use Ctrl will result in a massive block of rows being selected, which can be frustrating if you only wanted two or three specific rows. Conversely, using Ctrl when you wanted a large block requires you to click the start and end points without the Shift key, which is impossible; you must use Shift for ranges.
Tips
To speed up your workflow, combine row selection with keyboard shortcuts for common tasks. For example, once you have selected multiple rows, you can press Ctrl + (plus sign) to insert new rows above your selection, or Ctrl + (minus sign) to delete the selected rows instantly. This is significantly faster than right-clicking the row headers and navigating the context menu.
If you are working with a very large dataset (thousands of rows), dragging the mouse can be tedious and imprecise. Instead, use the Name Box. The Name Box is the small input field located to the left of the formula bar. You can type a row range directly into this box—for example, typing "10:50" and pressing Enter will instantly select every row from row 10 through row 50. This eliminates the risk of over-shooting or under-shooting your target range while scrolling.
When selecting non-adjacent rows, remember that you can still use the Shift key to select a block within your non-adjacent selection. For instance, you can select row 2, hold Ctrl, select row 5, hold Shift (while still holding Ctrl), and select row 10. This allows you to pick a single row and then a block of rows simultaneously.
Troubleshooting
If you find that you cannot select multiple rows or that the selection keeps disappearing, check if your worksheet is protected. When a sheet is protected, certain selection and editing capabilities are disabled to prevent accidental changes. Go to the Review tab and check if the Unprotect Sheet option is visible. If it is, the sheet is protected; you will need the password to unlock it before you can freely select and manipulate rows.
If the Ctrl or Shift keys do not seem to be working, ensure that you do not have other software running in the background that overrides these keys (such as certain accessibility tools or third-party keyboard remappers). A quick way to test this is to try the same keys in a different application, like a web browser. If they work there but not in Excel, try restarting Excel or checking if you are in "Cell Edit Mode." If your cursor is blinking inside a cell, Excel is in edit mode, and many selection shortcuts are disabled. Press Enter or Esc to exit the cell and try selecting the rows again.
In cases where the mouse click-and-drag is behaving erratically, check if you have "Extend Selection" mode turned on. Look at the status bar at the bottom of the Excel window; if you see "Extend Selection," press F8 to turn it off. When this mode is active, Excel continues to select cells or rows even after you release the mouse button, which can lead to selecting far more data than intended.
Frequently Asked Questions
How do I select every other row in Excel?
Excel does not have a built-in "select every other row" button. The most efficient way to do this is to create a helper column with a formula like =MOD(ROW(),2), which assigns a 0 or 1 to each row. You can then filter the data for only 0s or 1s and select the resulting visible rows.
Can I select multiple rows across different worksheets?
No, you cannot select rows across different tabs (sheets) simultaneously. Selection is limited to the active worksheet. To apply the same change to multiple sheets, you must group the sheets first by holding Ctrl and clicking the sheet tabs at the bottom, then selecting the rows on the active sheet.
What is the difference between selecting a row and selecting a range of cells?
Selecting a row (by clicking the row header) selects every single cell from column A to the very last column of the worksheet (XFD). Selecting a range of cells only highlights a specific rectangular area. Row selection is necessary for operations like hiding the entire row or deleting the row entirely without leaving a gap in the data.
How do I deselect a single row from a larger selection?
If you have selected a group of rows using the Ctrl/Cmd key, you can deselect a specific row by holding the Ctrl/Cmd key and clicking the row header of the row you wish to remove from the selection.
Is there a limit to how many rows I can select at once?
You can select as many rows as your version of Excel supports (up to 1,048,576 rows). However, performing complex operations (like heavy formatting or complex formulas) on millions of selected cells may slow down your computer's performance.