Closed Thread
Results 1 to 6 of 6

Help! How to import multiple .txt files into a single excel spreadsheet

  1. #1
    blu37ay713
    Guest

    Help! How to import multiple .txt files into a single excel spreadsheet

    Hi.

    I have no programming experience. I'm an intern working in a lab analyzing bat calls. These calls are in text format and I'm trying to consolidate hundreds of these files (in a single directory) into an excel spreadsheet to preform statistical analysis on later. The problem is not only do I need the files imported, I also need to format the text in each file so that only the data in rows beneath "Duration(ms), F0min(Hz), F010th(Hz).....etc." are recorded and all the other information is simply noise and deleted. This will later be copied from the "temp" tab into the "data" tab as shown in the excel document attached.

    Can somebody provide a code to do this? I would be really appreciated! I've uploaded the spreadsheet with a macro I recorded and also several .RM.txt files as samples


    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Help! How to import multiple .txt files into a single excel spreadsheet

    Hi blu37ay713
    Welcome to the forum Jerry has some good examples herehttps://sites.google.com/a/madrocket...ssistant/files
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    blu37ay713
    Guest

    Re: Help! How to import multiple .txt files into a single excel spreadsheet

    Thanks for the info!

  4. #4
    blu37ay713
    Guest

    Re: Help! How to import multiple .txt files into a single excel spreadsheet

    hey so I got a macro written but for some reason it wont work. Can someone check and see if there are any syntax errors?

    Thanks!
    Attached Files Attached Files

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Help! How to import multiple .txt files into a single excel spreadsheet

    hi blu37ay713

    Good work just one \ missing

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Help! How to import multiple .txt files into a single excel spreadsheet

    hi, blu37ay713, option to make it, run code "test"

    PS. Tested on the three files provided.
    Attached Files Attached Files

Closed 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