How to Hide Extra Columns in Excel – 4 Methods

This is the sample dataset.

Easy Ways to Hide Extra Columns in Excel

Method 1 – Utilizing Keyboard Shortcuts to Hide Extra Columns in Excel

YStep 1:

  • Select an entire column after the end of your dataset. Here, F .

Easy Ways to Hide Extra Columns in Excel

Step 2:

  • Press Ctrl + Shift + Right Arrow.

It will select all extra columns from column F till the last column in the workbook: XFD.

Easy Ways to Hide Extra Columns in Excel

Step 3:

  • Press Ctrl + 0.

Easy Ways to Hide Extra Columns in Excel

Step 4:

These columns are not displayed.

Easy Ways to Hide Extra Columns in Excel

Read More: How to Hide Columns with Button in Excel


Method 2 – Using the Hide Command to Hide Extra Columns

Step 1:

  • Click the column header of the column after your dataset.

Easy Ways to Hide Extra Columns in Excel

Step 2:

  • Press Ctrl + Shift + Right Arrow to select all extra columns.

Easy Ways to Hide Extra Columns in Excel

Step 3:

  • Right-click any of the selected column headers.
  • Choose Hide.

Easy Ways to Hide Extra Columns in Excel

Step 4:

All extra columns are hidden.

Easy Ways to Hide Extra Columns in Excel

Read More: Hide Columns with No Data in Excel


Method 3 – Using Format Tools to Hide Extra Columns in Excel

Step 1:

  • Click the column header of column F.
  • Press Ctrl + Shift + Right Arrow.

Easy Ways to Hide Extra Columns in Excel

Step 2:

  • Go to the Home tab.
  • In Cells, click Format.

Easy Ways to Hide Extra Columns in Excel

Step 3:

  • Go to Visibility.
  • Choose Hide & Unhide.
  • Select Hide Columns.

Easy Ways to Hide Extra Columns in Excel

Step 4:

You will not see the extra columns.

Easy Ways to Hide Extra Columns in Excel

Read More: How to Hide Multiple Columns in Excel


Method 4 – Applying VBA to Hide Extra Columns

Step 1:

Sample Data Set

Step 2:

  • In the VBA window, click Insert.
  • Choose Module.

Sample Data Set

Step 3:

  • Copy the following VBA code into the module.
' Set the function name
Sub Hide_Extra_Columns()
' Set the range of the unused or extra columns and hide them
Columns("F:XFD").Hidden = True
End Sub

Sample Data Set

Step 4:

  • Save the code.
  • Click the play button or press F5 to run the code.

Sample Data Set

Step 5:

There will be no extra columns in the worksheet.

Sample Data Set

Read More: How to Hide Columns Without Right Click in Excel


Download Practice Workbook

Download the free Excel workbook.


Related Articles


<< Go Back to Hide Columns | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Araf Bin Jayed
Md. Araf Bin Jayed

I am Araf. I have completed my B.Sc in Industrial and Production Engineering from Ahsanullah University of Science and Technology. Currently I am working as an Excel & VBA Content Developer in Softeko. With proper guideline and aid of Softeko I want to be a flexible data analyst. With my acquired knowledge and hard work, I want to contribute to the overall growth of this organization.

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo