How To Delete Columns In Google Sheets

Google Sheets is part of the Google productivity suite that allows users to create, modify, and share spreadsheets online. One common task you might need to perform when using Google Sheets is deleting columns. This blog post will walk you through how to delete columns in Google Sheets.

Step 1 – Open your Google Sheets document

First, navigate to Google Sheets and open the document where you want to delete columns.

Step 2 – Select the column(s) to be deleted

To select a column, click on the lettered header of the column. For instance, if you want to delete column B, click on the header labeled ‘B’.

For deleting multiple columns, click on the first column’s header, hold down the Shift key, and then click on the last column’s header. For non-adjacent columns, hold down the Ctrl key (or Command key for Mac users) while clicking on each column header.

Step 3 – Delete the column(s)

After selecting the column(s) to be deleted, right-click on one of the highlighted headers. A dropdown menu will appear. Click on Delete column.

Deleting Columns Using Google Script

If you’re interested in a more automated approach or want to delete columns that meet a specific condition, you can use Google Apps Script. Here is a simple example of how you can do this:

function deleteColumn() {
  var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
  var range = sheet.getRange("B1:B");

This script will delete column B in the active sheet. To use this script, click on Extensions > Apps Script, paste the code into the editor, and then run the deleteColumn function.

Please note, to delete a different column, change “B1:B” in the getRange function to the header of the column you want to delete.


That’s all there is to it! Now you know how to delete columns in Google Sheets both manually and using Google Apps Script. Happy Spreadsheets editing!