How to select used cells and range in Excel quickly?
This article focuses on how to select used cells with content and select used ranges in active worksheet quickly in Microsoft Excel.
Office Tab: Enable Tabbed Editing and Browsing in Office, Just Like Chrome, Firefox, IE 8/9/10. Read more...
Classic Menu for Office: Bring Classic Menus and Toolbars of Office 2003/XP/2000 Back to Office 2007, 2010 and 2013. Read more...
Sometimes you may want to find out and select all used cells with content in active worksheet, but not blank cells. You can do it with following steps:
Step 1: Click Home > Find & Select > Find to open the Find and Replace dialog box. You can also open this Find and Replace dialog box with pressing the Ctrl + F keys together.
Step 2: In the Find What: box, enter the * symbol, and click the Find All button.
Step 3: Now there are numerous searching results are listed at the bottom of this dialog box. Press the Ctrl + A keys to select all searching results.
Now all cells with content in active worksheet are selected at once. See the following screenshot:
You can select used ranges in active worksheet with shortcut keyboards quickly. Just select the first Cell A1 in active worksheet, and press the Ctrl + Shift + End keys together, then it will select the used range at once.
VB macro can help you select used cells and ranges in active worksheet quickly too.
Step 1: Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.
Step 2: Click Insert > Module, and paste the following macro in the Module Window.
Dim FirstCell As Range, LastCell As Range
Set LastCell = Cells(Cells.Find(What:="*", SearchOrder:=xlRows, _
SearchDirection:=xlPrevious, LookIn:=xlValues).Row, _
Cells.Find(What:="*", SearchOrder:=xlByColumns, _
Set FirstCell = Cells(Cells.Find(What:="*", After:=LastCell, SearchOrder:=xlRows, _
SearchDirection:=xlNext, LookIn:=xlValues).Row, _
Cells.Find(What:="*", After:=LastCell, SearchOrder:=xlByColumns, _
Step 3: Press the F5 key to run this macro. Then it selects used range in active worksheet immediately.