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.
Thanks for your help.
Javier
Excel import - dates in columns
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Excel import - dates in columns
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.
It might be best to just transpose the data in Excel.
Follow us on Twitter @IHSEViews
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Excel import - dates in columns
With some EViews magic, you can get the data in via WFOPEN:
Pretty messy though...
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
Re: Excel import - dates in columns
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
Regards,
Javier
Who is online
Users browsing this forum: No registered users and 30 guests