+ Reply to Thread
Results 1 to 7 of 7

eliminating unneeded columns

  1. #1
    Registered User
    Join Date
    12-16-2008
    Location
    Florida
    Posts
    3

    eliminating unneeded columns

    I am currently working with a comma delimited file with approx. 1450 columns
    and I can't use them all. The spread sheet only needs 25 columns. I am trying to save time from deleting the unneeded columns manually. I have identified the columns and have highlited and color filled them so they are obvious while I highlight and delete those columns between the color filled columns. I have also tried the skip key which is way too slow. Is there a feature in excel that would allow me to list the wanted columns and allow me to delete the columns that are unneeded?
    Last edited by VBA Noob; 12-24-2008 at 01:58 PM.

  2. #2
    Registered User
    Join Date
    12-16-2008
    Location
    Florida
    Posts
    3

    Question eliminate unwanted columns

    I am using a comma delimited file with about 1450 columns. Have identified the columns I need. Can I discard the unwanted columns in some automatic way?

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    I assume they are interspersed among the columns you wish to keep? You have not given any criteria to sort them out (e.g. all dates, every other column, blank columns, etc)
    You can hold the control key down while clicking on each column header and then right click to delete.
    You could import data instead of opening the file. That gives you the option of which columns not to import.
    Sorry, can't think of any other ways.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    i can only thjink of inserting row at top
    then in each column you want to keep put "1"
    then select whole sheet
    go to data/sort in options choose "left to right" click ok
    make sure drop down says "sort by row1" click ok
    now all the required cols will be first with all the unwanted ones to the right
    click on first unwanted col whiz over to right , right click then delete

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Assuming this is a task you perform over and over and that it's always the same columns (e.g. 1, 12, 21, 56 ..) you write a macro and save it to your personal.xls file to delete those columns when you run the macro. Is that what you are looking for?

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    is this not the same question you posted here?
    http://www.excelforum.com/excel-new-...d-columns.html
    if you had responded then perhaps other solutions may have been offered
    but if you record a macro following steps i pointed out you can use that.
    Last edited by martindwilson; 12-24-2008 at 02:19 PM.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Threads merged.

    DOSPANTERA, please take a few minutes to read the Forum Rules about duplicate posts (and in general) before posting again.
    Entia non sunt multiplicanda sine necessitate

+ 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