How to select entire column except header/first row in Excel?
If you have a long list with a header in your worksheet, and you want to select the entire column but the header, you can select them by dragging mouse, but this method is too troublesome when the list is very long. Here I have some tricks for you to quickly select the entire column except header or the first row in Excel.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
If your list does not contain any blank cells, you can use the shortcut to select entire column but the first row.
Select the header or the first row of your list and press Shift + Ctrl + ↓(the drop down button), then the list has been selected except the first row.
Note: If there are blank cells in your list, it will select the list until the first blank cell appears with this method.
If the list contains blank cells, with the shortcut cannot solve the selecting, now you can define a name for the column that you can select it except the first row in Excel.
1. Click Formula > Define Name, see screenshot:
2. In the Define Name dialog, specify a name you like, and select Workbook in the Scope list and then type =$A$2:$A$1048576 (A is the column you want to select, in Excel 2003, you can change $A$1048576 to $A$65536) into the Refers to text box. See screenshot:
3. Then select the name you have defined in above step from the Name Box, you can see the entire column but the first row has been selected.
Also, besides the Define Name function, you can use VBA to select entire column but first row.
1. Select a cell of the column you want to select and press Alt + F11 to open the Microsoft Visual Basic for Applications window.
2. In the pop-up window, click Insert > Module, then paste the following VBA code into the module.
VBA: Select entire column except header
Sub SelectColumn() 'Updateby20140510 Dim xColIndex As Integer Dim xRowIndex As Integer xIndex = Application.ActiveCell.Column xRowIndex = Application.ActiveSheet.Cells(Rows.Count, xIndex).End(xlUp).Row Range(Cells(2, xIndex), Cells(xRowIndex, xIndex)).Select End Sub
3. Click Run button, then the column which selected cell in is selected except the first row.
Tip: The VBA macro will select from the second cell to the last cell with content in the column you activated in Step 1.
The above methods may a little troublesome for you, but using the Select Range Helper feature of Kutools for Excel will be easy for you to select entire column (including or excluding blank cells) except first cell.
|Kutools for Excel, with more than 120 handy functions, makes your jobs easier.|
After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)
If you want to select enrire column except first cell which including blank cells, do as below:
1. Select the entire column first and click Kutools > Select Tools > Select Range Helper. See screenshot:
2. In the Select Ranger Helper dialog, check Deselect Cells, then select the header of the selected column, and click Close to close the dialog. See screenshot:
Then the entire column has been selected except the header.
If you want to select entire column except first cell and also excluding blank cells, do as these:
1. Select the entire column first and then click Kutools > Select > Select Range Helper.
2. Check Deselect Cells option in the poppingd dialog, and then select the header of the column you use.
3. Keep the cells selected, and click Kutools > Select > Select Nonblank Cells. See screenshot:
Now the entire column cells except headers and blank cells are selected.
Select Specific Cells (select cells/row/columns based on one or two criteria.)
You are guest
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 1 years agocolumn index is wrong. Just replace xIndex with xColIndex. Shall work fine then.
- To post as a guest, your comment is unpublished.· 2 years agoI tried the above vb code, but it is selecting only the first 2 rows in the column. The row index return value 1. So Range selection is from row 2 to row 1
- To post as a guest, your comment is unpublished.· 2 years agoThe code will apply to the used cell, for example, the used cells are A1:B5, while you select in A1, it will selected A2:A5, if you select at the unused cell, it will select first two row.
- To post as a guest, your comment is unpublished.· 2 years agoyou're an idiot