To select all cells in a range in Excel or Google Sheets, click the first cell, hold Shift, and click the last cell (for a contiguous block), or press Ctrl+Shift+End (Windows) / Cmd+Shift+End (Mac) to jump to the last used cell in the worksheet. For a named range, type its name in the Name Box and press Enter. This article explains every method, including shortcuts, mouse tricks, and how to handle non-contiguous ranges.
Why Selecting a Range Matters
Selecting a range is the foundation of nearly every spreadsheet operation: formatting, data entry, chart creation, and formulas. When you select a range, you tell the program which cells to act on. A common mistake is selecting an entire column (e.g., clicking column header “A”) when you only need the data cells – this can slow down formulas and cause errors in functions like SUM if there are stray values. Knowing how to select exactly the cells you need saves time and prevents accidental edits.
Mouse Methods for Contiguous Ranges
The simplest way is to click and drag from the top-left cell to the bottom-right cell of the desired block. For larger ranges, this can be imprecise. Instead, use the Shift+Click method: click the first cell, scroll to the last cell, hold Shift, and click it – this selects everything in between. In Excel, you can also use the Name Box (the box to the left of the formula bar). Type a range like A1:C10 and press Enter – the range is instantly selected. In Google Sheets, the Name Box is in the same location and works identically.
Keyboard Shortcuts for Speed
Keyboard shortcuts are the fastest way to select ranges, especially on large sheets. The most useful ones (Excel for Windows, with Mac equivalents in parentheses):
- Ctrl+Shift+End (Cmd+Shift+End): Selects from the active cell to the last used cell in the worksheet (bottom-right of the data region).
- Ctrl+Shift+Home (Cmd+Shift+Home): Selects from the active cell to A1.
- Ctrl+Shift+Arrow Key (Cmd+Shift+Arrow Key): Extends selection in the direction of the arrow to the last non-empty cell in that row/column. Hold the arrow key again to jump to the next block.
- Ctrl+A (Cmd+A): Selects the entire current region (contiguous data around the active cell). Press Ctrl+A again to select the whole worksheet.
In Google Sheets, the same shortcuts work on Windows and Mac, except Ctrl+Shift+End selects all cells from the active cell to the last row and column of the sheet (including empty ones) – a subtle difference. To select to the last used cell in Google Sheets, press Ctrl+Shift+End then Ctrl+Shift+Home to narrow it, or use the mouse.
Selecting Non-Contiguous Ranges
Sometimes you need to select multiple separate blocks (e.g., A1:A5 and C1:C5). Hold Ctrl (Windows) or Cmd (Mac) while clicking or dragging over each additional block. This works in both Excel and Google Sheets. Be careful: once you start typing or applying formatting, only the active cell (the last one clicked) receives the input unless you use a formula that references the whole selection. For example, typing a value and pressing Ctrl+Enter fills all selected cells.
Selecting Entire Rows, Columns, or the Whole Sheet
To select an entire row, click the row number on the left. To select an entire column, click the column letter on top. To select multiple adjacent rows/columns, click and drag over the numbers/letters, or hold Shift and click the last one. To select the entire worksheet, click the triangle at the intersection of the row numbers and column letters (top-left corner), or press Ctrl+A twice (in Excel, once selects the current region, twice selects the whole sheet; in Google Sheets, Ctrl+A once selects the whole sheet if the active cell is inside data, otherwise it selects the region).
Using the Go To Special Feature (Excel)
Excel’s Go To Special is powerful for selecting ranges based on content. Press F5 (or Ctrl+G) to open the Go To dialog, then click Special. You can select cells with constants, formulas, blanks, or only visible cells (useful after filtering). For example, to select all blank cells in a range, select the range first, then press F5 > Special > Blanks. This is invaluable for cleaning data. Google Sheets lacks a direct equivalent, but you can use the Find and Replace (Ctrl+H) with a blank search or use filters to achieve similar results.
Common Problems and How to Avoid Them
One frequent issue is accidentally selecting entire columns when you meant only the data, which can cause #VALUE! errors in array formulas. Another is losing the selection by clicking a single cell – press F8 (Windows) to enter Extend Selection mode, then use arrow keys to expand the range without holding Shift. In Google Sheets, there is no F8; use Shift+Arrow keys instead. If you have merged cells, selecting a range that includes them can behave unexpectedly – unmerge before selecting if you need individual cells. Finally, when copying a range, ensure you select the exact destination size to avoid overwriting adjacent data.
Frequently Asked Questions
How do I select all cells with data in a column?
Click the first cell in the column, then press Ctrl+Shift+Down Arrow (Windows) or Cmd+Shift+Down Arrow (Mac). This jumps to the last non-empty cell in that column, selecting everything in between. If there are blank cells, it stops at the first blank – press the shortcut again to continue to the next block.
What is the shortcut to select an entire table in Excel?
Click any cell inside the table, then press Ctrl+A. Excel selects the table’s data range (excluding headers unless you click the header row). To include headers, select the header row first, then Ctrl+A.
How do I select a range without dragging in Google Sheets?
Use the Name Box: type the range (e.g., B2:D10) and press Enter. Or click the first cell, hold Shift, and click the last cell. For non-contiguous, hold Ctrl (or Cmd on Mac) while clicking additional cells.
Why does Ctrl+A select the whole sheet instead of the data?
In Excel, Ctrl+A selects the current region (contiguous data) if the active cell is inside data. Pressing Ctrl+A again selects the entire worksheet. In Google Sheets, Ctrl+A selects the whole sheet if the active cell is inside data; to select just the region, use Ctrl+Shift+Space (Windows) or Cmd+Shift+Space (Mac).
Can I select a range using a formula?
No, selection is a manual action. But you can use formulas that reference a range without selecting it, like =SUM(A1:A10). For dynamic ranges, use OFFSET or INDEX – for example, =SUM(OFFSET(A1,0,0,COUNTA(A:A),1)) sums all non-empty cells in column A. This requires Excel 365 or 2021 for dynamic array functions like FILTER, but OFFSET works in all versions.
How do I select visible cells only after filtering?
In Excel, select the range, then press Alt+; (Windows) or Cmd+Shift+Z (Mac) to select only visible cells. Alternatively, use Go To Special > Visible cells only. In Google Sheets, filtering hides rows, but selecting a range and copying automatically copies only visible cells; there is no special shortcut needed.
Related
- Data Entry in Computer: What It Is & How It Works
- Count in Sheets: Google Sheets COUNT Function Guide
- How to Generate Random Numbers in C++
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Protect Sheet: Allow Filtering and Sorting SafelyYes. In Excel for Microsoft 365 on Windows, turn on the filter for your data before protecting the…
- Share a Calendar in Outlook Web: Step-by-Step GuideTo share a calendar in Outlook on the web, open Calendar, find the calendar under My calendars, choose…
- Excel Table to CSV: Save, Export, and Avoid Data LossTo save an Excel table as a CSV file in Microsoft Excel for Microsoft 365 on Windows, select…
- Compare Two Excel Sheets and Find DifferencesTo compare two Excel sheets cell by cell, put a formula on a third sheet such as =IF(Sheet1!A1=Sheet2!A1,"Same","Different"),…
- Variance and Box Plots in Excel: What Each ShowsExcel’s Box and Whisker chart does not show variance by default. Create the chart to compare medians, quartiles,…
- How to Add and Use Notes in a PowerPoint PresentationTo add notes in PowerPoint, open a slide in Normal view, select the Notes area below it, and…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.