Inside The Web
    Facebook Twitter Instagram
    Inside The Web
    • Office
      • Excel
      • Ms Word
      • OneDrive
      • Google Docs
      • Google Sheets
      • Google Drive
    • Email
      • Gmail
      • Outlook
      • Emal Etiquette
    • Office Etiquette
    • Productivity
    Inside The Web
    Home»Office»Excel»How to Delete Unused Columns in Excel

    How to Delete Unused Columns in Excel

    Asmi DhakalBy Asmi DhakalJune 23, 2023 Excel 3 Mins Read

    When entering data, we leave some slots empty to fill in more information later. And, we almost always end up with too many unused columns. Although deleting an individual column takes you a mere two clicks, the task can be quite tedious if you have a number of such empty columns.

    I have seen many users attempt to delete columns using the Find & Select tool. Although it might seem like it would work, it could also go horribly wrong.

    Warning: When you use Find & Select to select Blank cells, each blank cell, even those in the columns in use, is selected. When you select Ctrl + – and choose to delete columns, every column with even one blank cell is deleted.

    How to Delete Unused Columns in Excel

    Now that you know what not to do, let’s look more into what you should do. So when you’re deleting multiple columns that are all empty, you will have to take a bit of your time; five minutes tops.

    Step 1: Use COUNTA Function to Check if the Column is Empty

    The COUNTA function in Excel is used to count cells that are non-empty. We can use this function to check if a column is actually empty or not. Secondly, we will be taking this as a reference point to sort our columns.

    1. Insert a new row over the existing first row.
    2. We entered the following formula and use Flash Fill to paste the formula on top of each column:
      =IF(COUNTA(A2:A11=0), "0","1")
      Use Flash Fill in Excel
    3. Hit Enter.

    Depending on if your column is truly unused, you will get “0” while if there is any data in the column, the formula will return “1”. If you see that your column appears empty but the formula is still returning “1”, it’s probably because there is a hidden character in one of the cells.

    Step 2: Sort Columns

    Now that the first row of your dataset is either 0 or 1, you can sort your columns according to that. What we will be doing now is that we will sort our columns in such a way that the empty columns are pushed to the left while the used columns will be on the right. This will make it easier for us to delete the selected columns.

    1. Select your data.
    2. Right-click on it and choose Sort > Custom Sort.
      Insert a New Row in Excel
    3. In the Sort window, select Options.
      Options Sort Window
    4. Choose Sort left to right > OK.
      Sort Options in Excel
    5. Under Sort by, choose Row 1.
    6. Choose A to Z under the Order section.
    7. Click OK.
      Sort Feature in Excel
    8. In the pop-up, select the option Sort anything that looks like a number, as a number

    Step 3: Delete the Unused Columns

    The Sort utility will now push all of the columns that are unused from your datasheet on the left. We can now delete these columns at the same time using the delete shortcut.

    1. Select the empty columns on the left. Remember the columns have 0 as their header.
    2. On your keyboard, use Ctrl + – to delete the columns.
      Delete Unused Columns in Excel
    3. If prompted, choose the Entire column option.
    4. You can also now delete the helper row we created to sort our values.
    Excel Basics
    Asmi Dhakal

      Asmi is a content writer specializing in MS Office. She loves writing Excel-related content to assist other users to learn their way around the program. She started using Excel when she first entered the industry as a marketing intern. Soon, she realized that learning the often-overlooked spreadsheet program was no piece of cake. In her articles, she attempts to brief out complex topics to help beginner to intermediate-level Excel users. Asmi uses Excel for everything, including creating a grocery list to managing her personal finance. She’s a bit dramatic when it comes to the Flash Fill feature; so much so that could write a eulogy out of it. When she’s not working, you’ll find her learning a new recipe, or cleaning up her mess (out of the failed recipe).

      Related Posts

      Excel By Nisha Gurung

      How to Compare Two Columns in Excel Using VLOOKUP

      Excel By Nisha Gurung

      How to Share Excel Files with Multiple Users

      Excel By Nisha Gurung

      How to Filter Based on a List in Excel

      Add A Comment
      Table of ContentsToggle Table of ContentToggle
      • How to Delete Unused Columns in Excel
        • Step 1: Use COUNTA Function to Check if the Column is Empty
        • Step 2: Sort Columns
        • Step 3: Delete the Unused Columns
      • Home
      • About Us
      • Privacy Policy
      © 2025 Inside The Web

      Type above and press Enter to search. Press Esc to cancel.