Excel import - dates in columns

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

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

javiersan
Posts: 184
Joined: Mon Jan 19, 2009 8:18 am

Excel import - dates in columns

Postby javiersan » Mon Aug 17, 2009 7:53 am

Hi,

I have an Excel file which has dates in the first column and the variables in rows, is there a way of specifying in EViews that the first line of the file is the date information?

See for example the file attached.

test.xls
(37 KiB) Downloaded 365 times


Thanks for your help.

Javier

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

Re: Excel import - dates in columns

Postby EViews Gareth » Mon Aug 17, 2009 8:04 am

Not with WFOPEN, but there is the "t" option with the READ command. However, in your case I think the READ command probably still won't work since your columns are "backwards" (i..e you have the latest date on the left, and the earliest date on the right).

It might be best to just transpose the data in Excel.
Follow us on Twitter @IHSEViews

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

Re: Excel import - dates in columns

Postby EViews Gareth » Mon Aug 17, 2009 9:52 am

With some EViews magic, you can get the data in via WFOPEN:

Code: Select all

wfopen test.xls
pagestack _?
d id02
pageunstack series01 id01
pagestruct @date(id01)
d _ series01 id01
rename _* *
pagedelete test
pagedelete test_stk


Pretty messy though...
Follow us on Twitter @IHSEViews

javiersan
Posts: 184
Joined: Mon Jan 19, 2009 8:18 am

Re: Excel import - dates in columns

Postby javiersan » Tue Aug 18, 2009 12:13 pm

Thanks for taking the time to write the program. I have managed to work with the "read" command with "t" option and some previous work in Excel.

Regards,

Javier


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 30 guests