Easy way to read .xls or .csv files
Author: bgood
Creation Date: 2/4/2010 1:59 PM
profile picture

bgood

#1
I am wanting to import some information into WL after I have worked on it in Excel. Is there an easy way to read (find multiple values) in .xls or .csv files using WL5?
profile picture

Eugene

#2
The easiest way to read values in a .CSV file is, probably, creating an ASCII DataSet. I'm assuming it contains a Date field; otherwise it's not.

What kind of information is stored in the file; in other words, how is it formatted?
profile picture

bgood

#3
The information is multiple numeric fields that vary occasionally. So for a few days the data is the same, then it changes for a few more days.
profile picture

Eugene

#4
So, there must be a "Date" field somewhere.

Try this method from Community.Components, it's specifically built for your kind of task:

FillSeriesFromFile
profile picture

bgood

#5
Thank you Eugene, that was a great pointer and the code does the job I need it to.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).