Results 1 to 2 of 2

Thread: How to import multiple text files into Excel

  1. #1

    How to import multiple text files into Excel



    Register for a FREE account, and/
    or Log in to avoid these ads!

    I have .txt files in a folder. The text files will be delimited with Tab. The text file first contains the column headings. It is required to import in to an excel template. I am able to import the text files into excel. But it is not require to import which text file is not having the columns of excel template. Is there any procedure to do this.

    Thanks for any help...

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,250
    Articles
    57
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    Manually or automatically? Both can be done.

    When you open the text file from within Excel, it should bring up a wizard to guide you through the process. During one of those steps, you can uncheck the columns you don't want.

    If you'd like it automated, then the best thing to do is record a macro, then post the code here so that we can help you clean it up and make it a bit more dynamic. (Although, I would want to know if the column headers were always the same first.)
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training) or with my book M is for Data Monkey!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

Tags for this Thread

Posting Permissions

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