+ Reply to Thread
Results 1 to 4 of 4

Automatically Deleting Columns In a 1M column spreadsheet

Hybrid View

  1. #1
    Registered User
    Join Date
    09-22-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    3

    Automatically Deleting Columns In a 1M column spreadsheet

    Hi Forum,

    I have an excell spread sheet containing just over 1 million columns.

    The spreadsheet is largely about statistics and each column has a time/date field in Column A, along with a number of rows next to it

    Every (lets say 200 columns) there is a break in the data and subsequently different data held in a field belonging to previous data

    after lets say (50 columns) the data is change back to the same type of data that was entered prior to the break.

    This occurs every so many rows and I want to automatically set a rule/macro that deletes these 50 columns so that the I want is the same type throughout the entire workbook.

    To put things in basic terms, if i was to write an AVERAGE=D4:D1202939 then it will get jumbled up with the other data that is entered after every 200 columns. Therefore i need to delete that additional data so that it flows all the way from D4 to D1202939.

    Hope that makes sense and hope someone can help as it would take me weeks, if not months, to manually remove each section.

    Thanks

    Gareth.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,704

    Re: Automatically Deleting Columns In a 1M column spreadsheet

    You speak of columns, but in your average formula, it appears that it is a row issue and not a column issue. Please clarify. Rows go up and down. Columns go across in Excel. Which are you referring to?
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-22-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Automatically Deleting Columns In a 1M column spreadsheet

    Hi,

    Sorry. Basically i want all the data out of K1 to Kxxxx but every x many rows there is a section of data that is added and populates the K field with different data and continues for lets say 20 entries. Then after the 20 t populates with the data i want. this process is repeated throughout the 1M entry document. So basically i just want it to delete 20 rows every 100 rows in the workbook. Otherwise i will have to go through these sections and delete the data and line up the data again so it continues consistently.

    Hope this makes sense :-)

  4. #4
    Registered User
    Join Date
    09-22-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Automatically Deleting Columns In a 1M column spreadsheet

    So K4 to K156 contains data i want. then i want to remove data from K157 to 300. then delete the data from K301 to K400

    The actual field numbers stated are not correct, but basically i want the data for every 100 columns, then remove the next 100 and then keep the following 100 then delete the next 100..... All the way through the 1,000,000 column worksheet.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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