How to Delete All Blank Columns in Microsoft Excel: 2 Ways

How to Delete All Blank Columns in Microsoft Excel- When you import data from a website, there may be a lot of columns that aren’t being used. The same thing often happens with.txt and.csv files as well. When it does, it might not always be easy to get rid of columns by hand. If there are only two or three empty columns, it’s fine to delete them by hand. Over the years, many different add-ons have shown up online.

Some of these let you use even more shortcuts to organize huge spreadsheets. Most of the time, these programs cost money, so they can’t be used for simple tasks like getting rid of empty rows, cells, and columns. Also, if it were so hard, Microsoft would have already made the process much easier or given more detailed instructions on how to sort in Excel. Go Google play Store and download Microsoft Excel.

Tips for Efficiently Deleting Blank Columns

  • Figure out the range: Choose the range of columns for which you want to look for blanks. It could be the whole spreadsheet or just a part of it.
  • Sort columns: Sort the columns based on whether their index numbers go up or down. This step helps avoid any problems that might come up when deleting columns while going through them one by one.
  • Iterate through columns: Start from the leftmost or rightmost column, depending on how you want to sort, and loop through each column in the range.
How to Delete All Blank Columns in Microsoft Excel
  • Check for blanks: Look at each column on its own and see if it has any information or is completely empty. Checking for blankness can be done in many ways, such as by seeing if all the cells in a column are empty or if the column header is empty.
  • Delete empty columns: Once you find an empty column, get rid of it from the table or spreadsheet. Use the column’s index or header to make sure you are deleting the right column.

How to Delete All Blank Columns in Microsoft Excel

Using a VBA Macro

  1. Open your Excel file.
  2. Press Alt and F11 together to open the Microsoft Visual Basic for Applications window.
  3. Click on “Insert” and select “Module”.
  4. Paste the provided VBA code into the module.
  5. Press F5 to compile and run the macro.
  6. Enter the range of columns you want to target.
  7. Click OK.

Using Excel’s Built-in Tools

  1. Select the range of data that you want to work with.
  2. Press F5 to open the “Go To” dialog box.
  3. Click on “Special”.
  4. Select the “Blanks” option.
  5. Click OK.
  6. Go to the Home tab.
  7. Click on the “Delete” drop-down menu under the Cells tool group.
  8. Select “Shift Cells Left” to delete and rearrange columns.
  9. Click OK.


What is the shortcut to delete blank columns?

You can also use this shortcut to delete all blank columns in your spreadsheet. Simply press the Ctrl + A keys, and then press the Ctrl + – keys. This will delete all blank columns in your spreadsheet. If you want to delete all blank cells in your spreadsheet, you can do so by using the Ctrl + A keys.

What is the fastest way to delete a column in Excel?

Excel provides an even quicker way to delete rows or columns, however. All you need to do is select the row or column that you want to delete, and then press Ctrl+- (that’s Ctrl and the minus sign at the same time). Excel removes the row or column from your worksheet, as directed.

How do I delete 10000 columns in Excel?

If you want to delete multiple rows or columns at the same time, you can use the Ctrl+Shift+- shortcut. Simply select the rows or columns you want to delete, and then press the Ctrl+Shift+- keys on your keyboard. All of the selected rows and columns will be deleted.

Editorial Staff
Editorial Staff
The Bollyinside editorial staff is made up of tech experts with more than 10 years of experience Led by Sumit Chauhan. We started in 2014 and now Bollyinside is a leading tech resource, offering everything from product reviews and tech guides to marketing tips. Think of us as your go-to tech encyclopedia!


Please enter your comment!
Please enter your name here

Related Articles

Best Telemedicine Software: for your healthcare practice

Telemedicine software has transformed my healthcare visits. It's fantastic for patients and doctors since they can obtain aid quickly. I...
Read more
I love microlearning Platforms in today's fast-paced world. Short, focused teachings that engage me are key. Microlearning platforms are great...
Think of a notebook on your computer or tablet that can be changed to fit whatever you want to write...
As of late, Homeschool Apps has gained a lot of popularity, which means that an increasing number of...
From what I've seen, HelpDesk software is essential for modern businesses to run easily. It's especially useful for improving customer...
For all of our important pictures, stories, and drawings, Google Drive is like a big toy box. But sometimes the...