+ Reply to Thread
Results 1 to 5 of 5

How to remove blank columns from a large spreadsheet

  1. #1
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    How to remove blank columns from a large spreadsheet

    Hello,

    I have a large workbook of over 255 columns. How can I quickly find and delete any columns with no data in them and thereby attempt to shrink the size of my workbook?

    Thank you

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: How to remove blank columns from a large spreadsheet

    Hi,

    It can be easily done by selecting the blank columns at once and deleting them.

    Please go through the following URL-

    http://www.extendoffice.com/document...y-columns.html

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to remove blank columns from a large spreadsheet

    Be careful when using the directions from www.extenoffice.com. If there are blank cells in any of the other columns, those columns will be deleted along with the completely empty ones because of the selection of empty cells. (I tested this a few times)
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: How to remove blank columns from a large spreadsheet

    Instead of selecting the whole data range, just select the top row where you 100% know the columns that need to be deleted -

    Find - Go To Special -> select "Blanks" -> Ok -> the blank cells in the selected row will get highlighted -> press "CTRL" & "- " together (or right click and delete in one of the selected cells) -> Choose "Entire Column" -> Ok.

    This way you avoid any unwanted deletion which may occur because of blank cells in between the data range.

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: How to remove blank columns from a large spreadsheet

    Go to the last cell in 1st Column .i,e Column A
    =IF(COUNTA(OFFSET(A$1,0,0,ROW()-1,1))=0,"",1) enter this formula
    and copy towards right
    then select that entire row
    Press F5 key
    select "Special"
    then Click on Formula then select text only under Formula
    Press OK
    now it select all the cell with blank column
    delete that columns
    delete the entire row which you entered formula
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to remove specific columns in a large excel file
    By pahari75 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2013, 05:25 PM
  2. I need to insert blank rows into a large spreadsheet.
    By naffie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2013, 07:18 PM
  3. Filter out blank cells in large spreadsheet
    By toadeh in forum Excel General
    Replies: 3
    Last Post: 10-04-2012, 10:02 AM
  4. Replies: 4
    Last Post: 08-15-2005, 06:05 PM
  5. remove blank lines from an entire spreadsheet
    By mdeanda in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-21-2005, 09:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1