PC Review


Reply
Thread Tools Rate Thread

importing multiple text files into excel???

 
 
tasha
Guest
Posts: n/a
 
      19th Dec 2004
Hi,

I am experiencing a big problem. As a part of my analysis for PhD I have to
analyze more then 1000 files. The data that I have is in text files. To be
more precise, I have 5 different data sets, from different meteo centres,
each centre has a data set of 365 files for each day during the year. The
format of text files is something as following:

Camborne Met. Office
WINDS rev 4.1
50.20 -5.30 88
02 01 01 00 00 23 0
29 3 35
07:09 (3.0) 07:09 (3.0) 06:08 (3.0)
284 284 65 65 400 400 23 23
12.5 12.5 1 1500 1500 35 35 400 400
43 90.0 43 74.5 313 74.5
HT SPD DIR Radials...
0.101 9.8 113 0.0 0.9 -2.4 9 9 6 16 14 9
0.159 11.7 119 0.1 0.8 -3.0 9 9 6 16 13 9
0.217 12.2 118 0.0 0.9 -3.1 9 9 7 14 9 4
.....

Each text file has in addition data for 30min interval for each day. So at
this point you can realise how much data that is to play around.

My questions would be:
1. How to import multiple text files into excel worksheet. At least 365
files (for one center) at once.
2. After importing is it possible to get rid of the headers between each
data set for specific days. As shown above headers occupy first 10 rows of
each reading, and are separated by $ sign.

Thank you so much!

This is really a huge problem I am experiencing and needs ASAP solution.

Tasha


--
_______________________________________________
Tamara Pejovic

reply e-mail(s): (E-Mail Removed)
(E-Mail Removed)
_______________________________________________

NOTICE! THE CONTENTS OF THIS ELECTRONIC COMMUNICATION ARE
CONFIDENTIAL AND PROTECTED UNDER COPYRIGHT. USE BY ANYONE
OTHER THAN THE LISTED RECIPIENT(s) IS STRICTLY PROHIBITED.


 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      19th Dec 2004
See response in .misc


--

HTH

RP
(remove nothere from the email address if mailing direct)


"tasha" <(E-Mail Removed)> wrote in message
news:cq4a2l$j95$(E-Mail Removed)...
> Hi,
>
> I am experiencing a big problem. As a part of my analysis for PhD I have

to
> analyze more then 1000 files. The data that I have is in text files. To be
> more precise, I have 5 different data sets, from different meteo centres,
> each centre has a data set of 365 files for each day during the year. The
> format of text files is something as following:
>
> Camborne Met. Office
> WINDS rev 4.1
> 50.20 -5.30 88
> 02 01 01 00 00 23 0
> 29 3 35
> 07:09 (3.0) 07:09 (3.0) 06:08 (3.0)
> 284 284 65 65 400 400 23 23
> 12.5 12.5 1 1500 1500 35 35 400 400
> 43 90.0 43 74.5 313 74.5
> HT SPD DIR Radials...
> 0.101 9.8 113 0.0 0.9 -2.4 9 9 6 16 14 9
> 0.159 11.7 119 0.1 0.8 -3.0 9 9 6 16 13 9
> 0.217 12.2 118 0.0 0.9 -3.1 9 9 7 14 9 4
> ....
>
> Each text file has in addition data for 30min interval for each day. So at
> this point you can realise how much data that is to play around.
>
> My questions would be:
> 1. How to import multiple text files into excel worksheet. At least 365
> files (for one center) at once.
> 2. After importing is it possible to get rid of the headers between each
> data set for specific days. As shown above headers occupy first 10 rows of
> each reading, and are separated by $ sign.
>
> Thank you so much!
>
> This is really a huge problem I am experiencing and needs ASAP solution.
>
> Tasha
>
>
> --
> _______________________________________________
> Tamara Pejovic
>
> reply e-mail(s): (E-Mail Removed)
> (E-Mail Removed)
> _______________________________________________
>
> NOTICE! THE CONTENTS OF THIS ELECTRONIC COMMUNICATION ARE
> CONFIDENTIAL AND PROTECTED UNDER COPYRIGHT. USE BY ANYONE
> OTHER THAN THE LISTED RECIPIENT(s) IS STRICTLY PROHIBITED.
>
>



 
Reply With Quote
 
tasha
Guest
Posts: n/a
 
      19th Dec 2004
Thanks Bob,

I've seen this post today, however it doesn't help me much. I have at least
30 or 365 docs to import (depending do I wanna import yearly or monthly
data).

This code is opening every txt file in a separate worksheet which is not
what I am looking for.

Any other suggestions?

Thanks

Tasha


"Bob Phillips" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> See response in .misc
>
>
> --
>
> HTH
>
> RP
> (remove nothere from the email address if mailing direct)
>
>
> "tasha" <(E-Mail Removed)> wrote in message
> news:cq4a2l$j95$(E-Mail Removed)...
>> Hi,
>>
>> I am experiencing a big problem. As a part of my analysis for PhD I have

> to
>> analyze more then 1000 files. The data that I have is in text files. To
>> be
>> more precise, I have 5 different data sets, from different meteo centres,
>> each centre has a data set of 365 files for each day during the year. The
>> format of text files is something as following:
>>
>> Camborne Met. Office
>> WINDS rev 4.1
>> 50.20 -5.30 88
>> 02 01 01 00 00 23 0
>> 29 3 35
>> 07:09 (3.0) 07:09 (3.0) 06:08 (3.0)
>> 284 284 65 65 400 400 23 23
>> 12.5 12.5 1 1500 1500 35 35 400 400
>> 43 90.0 43 74.5 313 74.5
>> HT SPD DIR Radials...
>> 0.101 9.8 113 0.0 0.9 -2.4 9 9 6 16 14 9
>> 0.159 11.7 119 0.1 0.8 -3.0 9 9 6 16 13 9
>> 0.217 12.2 118 0.0 0.9 -3.1 9 9 7 14 9 4
>> ....
>>
>> Each text file has in addition data for 30min interval for each day. So
>> at
>> this point you can realise how much data that is to play around.
>>
>> My questions would be:
>> 1. How to import multiple text files into excel worksheet. At least 365
>> files (for one center) at once.
>> 2. After importing is it possible to get rid of the headers between each
>> data set for specific days. As shown above headers occupy first 10 rows
>> of
>> each reading, and are separated by $ sign.
>>
>> Thank you so much!
>>
>> This is really a huge problem I am experiencing and needs ASAP solution.
>>
>> Tasha
>>
>>
>> --
>> _______________________________________________
>> Tamara Pejovic
>>
>> reply e-mail(s): (E-Mail Removed)
>> (E-Mail Removed)
>> _______________________________________________
>>
>> NOTICE! THE CONTENTS OF THIS ELECTRONIC COMMUNICATION ARE
>> CONFIDENTIAL AND PROTECTED UNDER COPYRIGHT. USE BY ANYONE
>> OTHER THAN THE LISTED RECIPIENT(s) IS STRICTLY PROHIBITED.
>>
>>

>
>



 
Reply With Quote
 
Piotr
Guest
Posts: n/a
 
      19th Dec 2004
I do like that:
I have macro which import data into access in separate tables, I do have
always 5 different txt files, after importing macro run query which add
fields from 5 tables into one table, then its easy to export this to xls
format.

Użytkownik tasha napisał:

> Thanks Bob,
>
> I've seen this post today, however it doesn't help me much. I have at least
> 30 or 365 docs to import (depending do I wanna import yearly or monthly
> data).
>


 
Reply With Quote
 
tasha
Guest
Posts: n/a
 
      19th Dec 2004
Can you pass me that code?

Thanx


"Piotr" <(E-Mail Removed)> wrote in message news:cq4me2$8sk$(E-Mail Removed)...
>I do like that:
> I have macro which import data into access in separate tables, I do have
> always 5 different txt files, after importing macro run query which add
> fields from 5 tables into one table, then its easy to export this to xls
> format.
>
> Użytkownik tasha napisał:
>
>> Thanks Bob,
>>
>> I've seen this post today, however it doesn't help me much. I have at
>> least 30 or 365 docs to import (depending do I wanna import yearly or
>> monthly data).
>>

>



 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      19th Dec 2004
You could just add code to copy the data in the newly opened workbook to a
composite workbook.

--
Regards,
Tom Ogilvy

"tasha" <(E-Mail Removed)> wrote in message
news:cq4j22$qlf$(E-Mail Removed)...
> Thanks Bob,
>
> I've seen this post today, however it doesn't help me much. I have at

least
> 30 or 365 docs to import (depending do I wanna import yearly or monthly
> data).
>
> This code is opening every txt file in a separate worksheet which is not
> what I am looking for.
>
> Any other suggestions?
>
> Thanks
>
> Tasha
>
>
> "Bob Phillips" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > See response in .misc
> >
> >
> > --
> >
> > HTH
> >
> > RP
> > (remove nothere from the email address if mailing direct)
> >
> >
> > "tasha" <(E-Mail Removed)> wrote in message
> > news:cq4a2l$j95$(E-Mail Removed)...
> >> Hi,
> >>
> >> I am experiencing a big problem. As a part of my analysis for PhD I

have
> > to
> >> analyze more then 1000 files. The data that I have is in text files. To
> >> be
> >> more precise, I have 5 different data sets, from different meteo

centres,
> >> each centre has a data set of 365 files for each day during the year.

The
> >> format of text files is something as following:
> >>
> >> Camborne Met. Office
> >> WINDS rev 4.1
> >> 50.20 -5.30 88
> >> 02 01 01 00 00 23 0
> >> 29 3 35
> >> 07:09 (3.0) 07:09 (3.0) 06:08 (3.0)
> >> 284 284 65 65 400 400 23 23
> >> 12.5 12.5 1 1500 1500 35 35 400 400
> >> 43 90.0 43 74.5 313 74.5
> >> HT SPD DIR Radials...
> >> 0.101 9.8 113 0.0 0.9 -2.4 9 9 6 16 14 9
> >> 0.159 11.7 119 0.1 0.8 -3.0 9 9 6 16 13 9
> >> 0.217 12.2 118 0.0 0.9 -3.1 9 9 7 14 9 4
> >> ....
> >>
> >> Each text file has in addition data for 30min interval for each day. So
> >> at
> >> this point you can realise how much data that is to play around.
> >>
> >> My questions would be:
> >> 1. How to import multiple text files into excel worksheet. At least 365
> >> files (for one center) at once.
> >> 2. After importing is it possible to get rid of the headers between

each
> >> data set for specific days. As shown above headers occupy first 10 rows
> >> of
> >> each reading, and are separated by $ sign.
> >>
> >> Thank you so much!
> >>
> >> This is really a huge problem I am experiencing and needs ASAP

solution.
> >>
> >> Tasha
> >>
> >>
> >> --
> >> _______________________________________________
> >> Tamara Pejovic
> >>
> >> reply e-mail(s): (E-Mail Removed)
> >> (E-Mail Removed)
> >> _______________________________________________
> >>
> >> NOTICE! THE CONTENTS OF THIS ELECTRONIC COMMUNICATION ARE
> >> CONFIDENTIAL AND PROTECTED UNDER COPYRIGHT. USE BY ANYONE
> >> OTHER THAN THE LISTED RECIPIENT(s) IS STRICTLY PROHIBITED.
> >>
> >>

> >
> >

>
>



 
Reply With Quote
 
Piotr
Guest
Posts: n/a
 
      20th Dec 2004
Użytkownik tasha napisał:
> Can you pass me that code?
>


This is simply macro
Firstly you have to import manualy and save the import specification
(File->import)
Then you have to use macro ther is Import txt function where you have to
specify file location, specification and table where data will be saved
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Joel - Importing multiple text files to 1 spreadsheet, now importing from excel files Volker Hormuth Microsoft Excel Programming 7 9th Apr 2009 07:55 PM
Importing multiple Text files into Excel cerezoluis@gmail.com Microsoft Excel Programming 2 9th Apr 2006 02:35 PM
Importing multiple Text files into Excel cerezoluis@gmail.com Microsoft Excel Programming 0 8th Apr 2006 06:21 PM
Importing multiple Text files into Excel cerezoluis@gmail.com Microsoft Excel Programming 0 8th Apr 2006 06:21 PM
Importing multiple Text files into Excel 2003 =?Utf-8?B?Sk1B?= Microsoft Excel Misc 5 5th May 2005 10:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:47 AM.