Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Shortcut for Selecting a Data Range.

Shortcut for Selecting a Data Range

Written by Allen Wyatt (last updated September 6, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


4

The quickest way to select a range of data on your worksheet is to use Ctrl+Shift+8. (This is the same as Ctrl+*.) This selects, using the currently selected cell as the starting point, the contiguous cells that contain data. The selection stops when a blank row or a blank column is reached. The shortcut also results in the upper-left cell of the range being the active cell.

To see how the shortcut works, suppose you have data in the range A1:A325, and more data in the range C1:E190. If you start with cell A7 selected and then press Ctrl+Shift+8, then A1:A325 is selected. (The other data range isn't selected because column B is blank.) If you start with cell D12 selected and press Ctrl+Shift+8, then the range C1:E190 is selected. Again, the selection doesn't extend to column A because column B is blank.

There is another keyboard shortcut that will also select a data range: Ctrl+A. In most Windows-based programs, Ctrl+A stands for "select all," meaning everything in whatever file the program is working on. Not so in Excel. If you have a cell selected within a data range, pressing Ctrl+A once will function almost the same as Ctrl+*, meaning that it selects the data range, minus any headers. If you press Ctrl+A a second time, then Excel expands the selection to include any headers. Press it a third time (or press it a single time if you have a cell outside of a data range selected) and Excel selects the entire worksheet.

There is another difference between Ctrl+* and Ctrl+A: Pressing Ctrl+* not only selects the data range, it also makes the top-left cell in that data range the active cell. Pressing Ctrl+A to select the data range leaves the active cell unchanged.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8966) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Shortcut for Selecting a Data Range.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Turning On Picture Placeholders

Displaying graphics in a document requires a great deal more computer processing than displaying simple text. A document ...

Discover More

Controlling Chart Gridlines

Gridlines are often added to charts to help improve the readability of the chart itself. Here's how you can control ...

Discover More

Calculating an Average Time

When working with elapsed times, you may want to calculate an average of those times. This tip demonstrates just how easy ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (ribbon)

Moving More than One Cell to the Right

Enter some data in a cell, and Excel typically moves to the next cell when you press Enter. If you want to move more than ...

Discover More

Changing Months in a Workbook

When you copy a worksheet and then need to make changes to information in that worksheet (such as changing month names), ...

Discover More

Picking a Group of Cells

Excel makes it easy to select a group of contiguous cells. However, it also makes it easy to select non-contiguous groups ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 1 + 1?

2019-03-12 09:35:18

Gerhard Seljehammer

Hi,
When talking about selecting ranges, it's useful to know that you can check what area that is selected by pressing CTRL+ . (period) . This will highlight each corner subsequently as you continue to press CTRL + .


2019-03-12 05:54:44

Gerhard Seljehammer

Hi,
When talking about selecting ranges, it's useful to know that you can check what area that is selected by pressing CTRL+ . (period) . This will highlight each corner subsequently as you continue to press CTRL + .


2019-03-09 17:19:06

Ron

I also found that both Ctrl+* an Ctrl+A selected the headings along with the data with no easy way to get it to exclude the headers. I find the most versatile way to select all the data is the one not mentioned, F8 (extend selection) then Ctrl-End (or Ctrl+arrow(s)). I select the uppermost cell I want (e.g., A2) and then use F8 followed by Ctrl-End to select all the data. This does include blank rows and columns which is usually what I want.


2019-03-09 09:18:04

John Mann

Useful tip reminding me of things I had forgoten. Experimenting with this a bit (good reinforcement), I could only get the Ctrl+A to recognise headers if the range in question was formated is a table. If I simply typed some headings over columns they were not seen as headers when I pressed Ctl+A once, insteadthey were included in the selection.

I also noticed that if \I selected a blank cell that was surrounded by a range of cells containing data, then both methods selected the entire range, provided thar at least one cell adjacent to the selected blank cell contained data. That included diagonally adjacent cells. |Once no adjacent cell contained data, but the larger range did, then Ctrl+A selected the entire sheet while Crt+* did nothing. My test range was M3:R10, the test cell was P7, and the range were |I was gradually deleting data was O6:R8. Any one cell in the range O6:R8 could contain data, and selecting P7 then using either Ctrl+* (once) or Ctrl+A selected M3:R10.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.