Select All Cells with Data in a Column in Excel (5 Methods+Shortcuts)

In this article we’ll discuss 5 methods to select all cells containing data in a column, and 3 related keyboard shortcuts. We’ll use the following dataset to illustrate.


Method 1 – Using Go To Special Command

Steps:

  • Select the cells of the Name column.
  • Go to the Editing group from the Home tab.
  • Click on the Find & Select option.
  • Choose Go to Special from the list.

Select All Cells with Data from a Column Using Go To Special Command

The Go to Special window will appear.

  • Choose Constants from the list.

Select All Cells with Data from a Column Using Go To Special Command

  • Click OK.

The cells with data are selected.

There are alternative ways to access the Go To Special tool:

  • Press Ctrl+G or F5 to open the Go To dialog box.
  • Click the Special option.

Select All Cells with Data from a Column Using Go To Special Command

The Go To Special window will appear.

Read More: Select All Cells with Data in Excel 


Method 2 – Using Excel Table Feature

Steps:

  • Press Ctrl+T to create a table.

The Create Table dialog box will appear.

  • Choose the column range from the dataset.
  • Tick the My table has headers box.
  • Click OK.

Use Excel Table Feature to Select All Cells with Data

A Filter sign will show in the Name heading cell.

  • Press the down arrow sign.
  • Untick the Blanks option from the list.
  • Click OK.

Use Excel Table Feature to Select All Cells with Data

Only cells with data are displayed.

We can also use Ctrl + L to create a table.

Read More: How to Select Cells with Certain Value in Excel


Method 3 – Using Filter Command

Steps:

  • Select the Name column.
  • Go to the Editing group in  the Home tab.
  • Select the Sort & Filter option.
  • Choose Filter from the list.

Select Data Cells of Column Using Filter Command

A Filter is available on the Name heading.

  • Click on the down arrow.
  • Untick Blanks from the list.
  • Click OK.

Only cells with data in the Name column are showing.

We can also access the Filter via the keyboard shortcut Ctrl + Shift + L.

Read More: How to Select Random Cells in Excel


Method 4 – Using Conditional Formatting

Steps:

  • Select the cells of the Name column.
  • Go to Conditional Formatting on the Home tab.
  • Choose More Rules from the Highlight Cells Rules list.

Apply Conditional Formatting to Select Cells with Data in a Column

A New Formatting Rule dialog box will appear.

  • Set No Blanks from the Format only cells with drop-down list.
  • Click Format.

Apply Conditional Formatting to Select Cells with Data in a Column

A Format Cells dialog box will appear.

  • Go to the Fill tab.
  • Choose a color.
  • Click OK.

Apply Conditional Formatting to Select Cells with Data in a Column

  • Click OK to implement the condition.

Cells with data are highlighted.

Read More: How to Select Blank Cells in Excel and Delete 


Method 5 – Using VBA Code

Steps:

  • Go to the Developer tab.
  • Select the Record Macro option.
  • Set the name of the Macro and click OK.

Excel VBA to Select All Cells with Data in a Column

  • Click the Macros option.
  • Select the macro and Step Into it.

Excel VBA to Select All Cells with Data in a Column

  • Copy and paste the following VBA code into the module:
Sub Select_Data_Cells()
Dim range_1, range_2, range_3 As Range
Set range_2 = Application.Selection
Set range_2 = Application.InputBox("Range", xTitleId, range_2.Address, Type:=8)
For Each range_1 In range_2
    If range_1.Value <> "" Then
        If range_3 Is Nothing Then
            Set range_3 = range_1
        Else
            Set range_3 = Union(range_3, range_1)
        End If
    End If
Next
If Not range_3 Is Nothing Then
    range_3.Interior.ColorIndex = 37
End If
End Sub

Excel VBA to Select All Cells with Data in a Column

  • Press F5 to run the code.

A dialog box will appear to input the range.

  • Select the range from the dataset.

Excel VBA to Select All Cells with Data in a Column

  • Click OK.

The cells containing data are highlighted in the dataset.

Read More: How to Select Highlighted Cells in Excel 


3 Related Keyboard Shortcuts

Shortcut 1 – Select All Cells in a Column

Steps:

  • To select the cells of Column D, go to Cell D7.
  • Press Ctrl + Space bar.

Select All Cells of a Column in Excel

The entire column is selected.


Shortcut 2 – Choose Contiguous Data Cells

This keyboard shortcut is applicable when we have contiguous data in a column. As soon as a blank is found, the operation will stop.

Steps:

  • Go to Cell B5.
  • Press Ctrl +Shift + Down arrow.

Excel Keyboard Shortcut to Choose Contiguous Data Cells

All cells in the column until the first blank cell are selected.


Shortcut 3 – Select All Cells in the Dataset

Steps:

  • Select any cell of the dataset, for example Cell B5.
  • Press Ctrl + A.

Excel Keyboard Shortcut to Select All Cells in the Dataset

All the cells of the data set are selected. Press Ctrl+A again to select the entire worksheet.


Download Practice Workbook


Related Articles


<< Go Back to Select Cells | Excel Cells | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Alok Paul
Alok Paul

Alok Paul has completed his B.Sc. in Electronics and Telecommunication Engineering from East West University. He has been working on the ExcelDemy project for more than 2 years. He has written 220+ articles and replied to numerous comments. He is experienced in Microsoft Office, especially in Excel. He also led some teams on Excel and VBA content development. He has a keen interest in Advanced Excel, Data analysis, Excel Pivot Table, Charts, and Dashboard. He loves to research... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo