How to Remove Column1 and Column2 in Excel (4 Easy Methods)

We’ll use a sample dataset as an example in Excel. We have Column1 (Names) in Column B, Column2 (Working Hours) in Column C, and Column3 (Daily Pay) in Column D.

Methods to Remove Column1 and Column2


Method 1 – Remove Column1 and Column2 in Excel with the Context Menu

Steps:

  • Select the columns you want to delete.

Column1 and Column2 in Excel with Context Menu

  • Right-Click on the selection and choose the Delete option.

Column1 and Column2 in Excel with Context Menu

  • A Delete window will open on your screen.
  • Select the Entire Column option and press OK.

  • You will get the result like the below image.

Read More: How to Remove Column Headers in Excel


Method 2 – Using Keyboard Shortcuts to Remove Column1 and Column2

Steps:

  • Select the columns you want to delete.

Keyboard Shortcut to Remove Column1 and Column2

  • Press Ctrl + – to open the Delete option.
  • Choose the Entire Column option and press OK.

  • You will get the following result.

Keyboard Shortcut to Remove Column1 and Column2

Read More: How to Rename Column in Excel


Method 3 – Remove Column1 and Column2 via the Ribbon

Steps:

  • Select the columns you want to delete and go to the Delete option in the Home tab.
  • Select the Delete Sheet Columns option.

Remove Column1 and Column2 By Excel Ribbon

  • You will get the following result.

Remove Column1 and Column2 By Excel Ribbon

Read More: How to Change Column Headings in Excel


Method 4 – Apply VBA Code to Remove Column1 and Column2

Steps:

  • Press Alt + F11 to open the VBA code window.
  • Select Module from the Insert tab.

VBA Code to Remove Column1 and Column2

  • In the module, insert the following code.
Sub delCol()
    Dim sourceSheet As Worksheet
    Set sourceSheet = Sheet5
    sourceSheet.Columns("B:C").EntireColumn.Delete
End Sub

VBA Code to Remove Column1 and Column2

  • Run the code with F5.
  • Go back to the sheet.

Read More: How to Change Column Header Name in Excel VBA


Download the Practice Workbook


Related Articles


<< Go Back to Rows and Columns Headings | Rows and Columns in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Zehad Rian Jim
Zehad Rian Jim

Zehad Rian Jim is a dedicated professional with a BSc. Degree in Naval Architecture and Marine Engineering from Bangladesh University of Engineering and Technology. He's good with Microsoft Office and has written more than 80 helpful articles for ExcelDemy in the last year. Now, he makes fun and easy-to-follow Excel tutorials for YouTube as part of the ExcelDemy Video project. Zehad loves figuring out Excel problems, and his passion for learning new things in Excel shines through in... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo