Import Excel time series into EViews (programming command)

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

petital
Posts: 5
Joined: Sun Mar 07, 2010 12:31 pm

Import Excel time series into EViews (programming command)

Postby petital » Sun Mar 07, 2010 1:03 pm

Hey guys,

Here's a view of my Excel file: Image
So as you can see it, the first column is 1921 different dates plus header and the 15 columns that follow are time series (1921 + header).
I'm trying to import it as time series in EViews with the programming command wfopen but I get weird things instead.

I just want my 15 time series with dates corresponding to my first column. :/

Can anyone help me on this? Thanks! :)

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: Import Excel time series into EViews (programming command)

Postby startz » Sun Mar 07, 2010 1:18 pm

Try adding the option type=excel

Code: Select all

wfopen(type=excel) filename

petital
Posts: 5
Joined: Sun Mar 07, 2010 12:31 pm

Re: Import Excel time series into EViews (programming command)

Postby petital » Sun Mar 07, 2010 1:41 pm

Hey startz, I tried it but I get weird series like dates. For example for the series CAC40 I get "3897-02-06" instead of "3897.37" for the date of 7/01/2002. I

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13587
Joined: Tue Sep 16, 2008 5:38 pm

Re: Import Excel time series into EViews (programming command)

Postby EViews Gareth » Sun Mar 07, 2010 2:11 pm

Can you post the Excel file?

petital
Posts: 5
Joined: Sun Mar 07, 2010 12:31 pm

Re: Import Excel time series into EViews (programming command)

Postby petital » Sun Mar 07, 2010 2:47 pm

Here it is.
Attachments
Data.xls
Data
(614.5 KiB) Downloaded 1011 times

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: Import Excel time series into EViews (programming command)

Postby startz » Sun Mar 07, 2010 3:04 pm

I can confirm the problem. As a temporary measure, you might save the Excel file as an Excel 2007 file and then read it in. CAC40 comes in as an alpha. Note also that your original file indicates formatting errors in many cells.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13587
Joined: Tue Sep 16, 2008 5:38 pm

Re: Import Excel time series into EViews (programming command)

Postby EViews Gareth » Sun Mar 07, 2010 3:21 pm

As Startz notes, there are formatting issues with your Excel file - all of your numbers are stored as text. If you fix that in Excel, you'll then be able to bring them into EViews successfully.

petital
Posts: 5
Joined: Sun Mar 07, 2010 12:31 pm

Re: Import Excel time series into EViews (programming command)

Postby petital » Sun Mar 07, 2010 4:11 pm

Thank you! Actually I thought that I had to change "," in "." in my Excel file so that my data would be readable by EViews, it works well now. Cheers!

hasanthi
Posts: 7
Joined: Wed Feb 20, 2013 8:21 am

Re: Import Excel time series into EViews (programming comman

Postby hasanthi » Tue Apr 23, 2013 10:41 pm

I can confirm the problem. As a temporary measure, you might save the Excel file as an Excel 2007 file and then read it in. CAC40 comes in as an alpha. Note also that your original file indicates formatting errors in many cells.
Plz help.
Can't we import data in xlx format into eviews 7.
plz explain me the programming code

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13587
Joined: Tue Sep 16, 2008 5:38 pm

Re: Import Excel time series into EViews (programming comman

Postby EViews Gareth » Wed Apr 24, 2013 7:40 am

Yes.

Code: Select all

import myfile.xlsx

hasanthi
Posts: 7
Joined: Wed Feb 20, 2013 8:21 am

Re: Import Excel time series into EViews (programming comman

Postby hasanthi » Tue May 07, 2013 2:04 am

thanks a lot for the reply

vytama
Posts: 72
Joined: Wed Dec 19, 2012 11:05 am

Re: Import Excel time series into EViews (programming comman

Postby vytama » Tue Jun 18, 2013 6:06 am

Good morning,

I was reading this forum and trying to get the answer why import command does not work for me. I am trying to import this: import C:\TEMP\LF rate.xlsx and I get an error message - c:\temp\lf.wf1 not found on the disk. I also ran @fileexist to see if eview recognizes this file - and it does by returning 1. I even tried to specify the type=excel, no difference. Can you help me to figure out what I am missing or doing wrong? Thank you. Vytas

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13587
Joined: Tue Sep 16, 2008 5:38 pm

Re: Import Excel time series into EViews (programming comman

Postby EViews Gareth » Tue Jun 18, 2013 6:20 am

Put the path\filename in quotes.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests