To select all cells in Excel, click the Select All button at the intersection of the row and column headers (the small square above row 1 and left of column A), or press Ctrl+A on Windows or Command+A on Mac. Either method highlights the entire used range or the whole sheet, depending on where your cursor is. This guide covers both methods, the difference between selecting the used range and the entire sheet, and how to fix common selection problems.
What You'll Need
- A computer or tablet with Microsoft Excel installed (desktop, web, or mobile app).
- A spreadsheet open with at least some data or formatting.
- Basic familiarity with the Excel window: ribbon, row/column headers, and formula bar.
Step-by-Step
- Open your workbook in Excel. The steps below apply to Excel for Microsoft 365, Excel 2019, 2021, and Excel for the web. Labels may differ slightly by version, device, or region.
- Click any single cell in the worksheet to make sure the sheet is active. This avoids selecting cells on a different sheet.
- Use the Select All button. Move your pointer to the small square at the top-left corner of the grid, where the column letters meet the row numbers. The pointer changes to a right-pointing arrow. Click once. The entire sheet is selected, and the Name Box (left of the formula bar) shows the whole sheet reference.
- Or use the keyboard shortcut. Press Ctrl+A (Windows) or Command+A (Mac). If the active cell is inside a block of data, the first press selects the current region (the contiguous block of data). Press Ctrl+A again to select the entire sheet. On Excel for the web, Ctrl+A selects the used range; press again for the whole sheet.
- Confirm the selection. The selected cells appear with a highlighted border and shading. The status bar at the bottom may show Count, Sum, or Average for numeric cells. If you see only a portion highlighted, you likely selected a region rather than the whole sheet.
- Work with the selection. You can now apply formatting (font, fill color, borders), copy (Ctrl+C), clear contents (Delete), or run calculations. To deselect, click any single cell.
- For mobile: In the Excel app on a phone or tablet, tap the top-left corner of the grid (above row 1, left of column A) to select all. Alternatively, tap the triangle icon that appears at the corner. The exact gesture varies by device; if you do not see it, tap a cell, then use the context menu and look for a Select All option.
Common Mistakes
- Pressing Ctrl+A only once inside data. The first press selects the current region, not the whole sheet. Press it twice to get all cells.
- Clicking the Select All button while a cell is in edit mode. If the cursor is blinking inside a cell (edit mode), the button may not respond. Press Esc first.
- Confusing used range with entire sheet. The Select All button selects the entire sheet, including empty cells. Ctrl+A may select only the used range on the first press. Know which one you need before formatting or deleting.
- Selecting all on a protected sheet. If the sheet is protected, selection may be limited to unlocked cells. You will need the password to unprotect it.
- Using Ctrl+A in a dialog box or formula bar. The shortcut may select text instead of cells. Click on the grid first.
Tips
- To select all cells with data only (the used range), click any cell and press Ctrl+A once. This is faster for formatting just your data.
- Use the Name Box to select a specific range: type A1:XFD1048576 and press Enter to select the entire sheet manually.
- To select all cells in a column or row, click the column letter or row number. To select all columns, click the corner button; to select all rows, click the corner button as well.
- When you select all cells and apply a fill color, Excel may slow down on very large sheets. Consider selecting only the used range instead.
- On Mac, Command+A works the same as Ctrl+A on Windows. If it does not, check that the sheet is active and not in edit mode.
Troubleshooting
If selecting all cells does not work as expected, try these steps in order:
- Click a single cell first. Make sure no cell is in edit mode (press Esc). Then try Ctrl+A again.
- Check sheet protection. Go to the Review tab and look at the Protect Sheet button. If it says Unprotect Sheet, the sheet is protected. You need the password to unprotect it; without it, you cannot select locked cells.
- Try the Select All button. If the keyboard shortcut fails, click the corner square. This works even when Ctrl+A is intercepted by another add-in.
- Restart Excel. Close and reopen the workbook. This clears temporary glitches.
- Update Excel. Use your account settings or the Microsoft Store to check for updates. Outdated versions can have selection bugs.
- Test in a new workbook. If the problem persists only in one file, the file may be corrupted. Try opening it in Excel for the web or use Open and Repair (File > Open > Browse, then click the arrow next to Open and choose Open and Repair). Note that repairing may remove some formatting; back up the file first.
- Disable add-ins. Go to File > Options > Add-ins, manage Excel Add-ins, and uncheck suspicious add-ins. Restart Excel. Re-enable one at a time to find the culprit.
If none of these work, the issue may be with your keyboard or input method. Test Ctrl+A in another program to confirm the key works.
Frequently Asked Questions
What is the difference between selecting the used range and the entire sheet?
The used range includes only cells that contain data or formatting. The entire sheet includes all 16,384 columns and 1,048,576 rows. Selecting the entire sheet can slow down formatting operations on large workbooks.
Why does Ctrl+A sometimes select only part of my data?
If the active cell is inside a contiguous block of data, the first Ctrl+A selects that region. Press it again to select the whole sheet. This is by design in Excel.
Can I select all cells on a protected sheet?
No. If the sheet is protected, you can only select unlocked cells unless you unprotect it with the password. The Select All button may appear to work but will not include locked cells.
How do I select all cells in Excel on a Mac?
Use Command+A. The behavior is the same as Ctrl+A on Windows: first press selects the region, second press selects the entire sheet.
Is there a way to select all cells except a few?
Yes. Select all cells, then hold Ctrl (Windows) or Command (Mac) and click the cells you want to exclude. This deselects them. Note that this works only for non-contiguous selections.
What happens if I press Delete after selecting all cells?
Delete clears the contents of all selected cells, but leaves formatting and comments. To remove everything, use Clear All (Home > Clear > Clear All). Be careful: this cannot be undone after saving.