Solved

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

Posted on 2012-03-15
6
486 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
  • 3
  • 2
6 Comments
 
LVL 33

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 33

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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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 33

Expert Comment

by:Norie
ID: 37727806
mwochnick

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

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now