Solved

converting web .txt or .dat file into an xls file

Posted on 2012-03-15
6
494 Views
Last Modified: 2012-08-13
I am crunching data and need to convert the data from the website

http://lasp.colorado.edu/sorce/tsi_data/daily/sorce_tsi_L3_c24h_latest.txt 

to a xls file. How would I do that?

 Also I am looking at data from this website and need to convert the files to xls format as well.  http://lasp.colorado.edu/sorce/tsi_data/daily/sorce_tsi_L3_c24h_latest.txt
0
Comment
Question by:libertyforall2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 34

Assisted Solution

by:Norie
Norie earned 250 total points
ID: 37727529
Aren't they the same page with the same data?

Anyway, does the data begin after the ***DATA RECORDS*** line?

If it does you could just open the file in just as it is, then delete everything above the data and use Data>Text to columns... to separate the data out into columns.

You can then parse the date based on the specification, which is the here on the page.

;***DATA DEFINITIONS***
 ' specification
; ***END DATA DEFINITIONS***

Have you got anywhere with this?

eg downloaded the data to a file?
0
 
LVL 12

Assisted Solution

by:mwochnick
mwochnick earned 250 total points
ID: 37727627
do you need to do this one time or on a continuing basis? if one time - follow the instructions above - making sure that in the text to columns you select delimited and space as the delimiter when doing the text to columns step.

If you need to do it in an on going basis, I'd suggest either writing a simple perl scripts to read the files from the website and output the file into a csv file which can be easily opened by Excel
0
 
LVL 34

Assisted Solution

by:Norie
Norie earned 250 total points
ID: 37727682
mwochnick

It be done in Excel if it is on an ongoing basis.

I was going to post code for it but wanted to make sure what was needed first.

I suppose it would be preferable to use something like perl though.
0
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 
LVL 12

Accepted Solution

by:
mwochnick earned 250 total points
ID: 37727706
You could write a vb macro for Excel as well :)
0
 

Author Closing Comment

by:libertyforall2
ID: 37727798
I have resolved the issue by using my mac instead of pc. I simply downloaded the file as a txt file and uploaded it to a linux account then used cat to join the files. I'm still looking to average the files per month. See my other questions.
0
 
LVL 34

Expert Comment

by:Norie
ID: 37727806
mwochnick

A vb macro? I was actually thinking of doing it with VBA, no macros.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question