Importing from excel

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

88fr.leo
Posts: 9
Joined: Thu Nov 29, 2012 5:41 am

Importing from excel

Postby 88fr.leo » Mon Dec 10, 2012 8:41 am

Good Morning,
I am need to import a file from excel, but i don't wanna loose my layout. for this I mean that I want to keep my inicial lines and start importing from an underneath line. Is this possible? I will send a sample.
Attachments
import.xlsx
(177.99 KiB) Downloaded 642 times

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

Re: Importing from excel

Postby EViews Gareth » Mon Dec 10, 2012 8:47 am

On Step 2 of the Excel read dialog, state that there are 3 header lines, and that the Header type is "Names in last line". Then hit Finish.

88fr.leo
Posts: 9
Joined: Thu Nov 29, 2012 5:41 am

Re: Importing from excel

Postby 88fr.leo » Tue Dec 11, 2012 5:19 am

Thanks

88fr.leo
Posts: 9
Joined: Thu Nov 29, 2012 5:41 am

Re: Importing from excel

Postby 88fr.leo » Mon Dec 17, 2012 12:13 pm

I'm sorry, but I tried here and didn't worked.
Where should I put "Names in last line", in the eviews program, or in excel workfile?
Thx

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

Re: Importing from excel

Postby EViews Gareth » Mon Dec 17, 2012 1:27 pm

Here
Attachments
import.png
import.png (16.77 KiB) Viewed 10962 times

88fr.leo
Posts: 9
Joined: Thu Nov 29, 2012 5:41 am

Re: Importing from excel

Postby 88fr.leo » Tue Dec 18, 2012 6:02 am

Yes, this is what I want. But, is there any way of doing this by a program?!
Thx

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

Re: Importing from excel

Postby EViews Gareth » Tue Dec 18, 2012 8:59 am

Code: Select all

wfopen import.xlsx colhead=3 namepos=last

chansen
Posts: 3
Joined: Thu Mar 14, 2013 10:51 am

Re: Importing from excel

Postby chansen » Thu Mar 14, 2013 10:57 am

I would appreciate if you could show the code for how to import data from an excel file in the range D7-P4000 and the names were in D7-P7.
Thanks
Charlotte

I have attached the file. I would like to read the data CDATE, SOURCE, .... TY1_OPD1 starting in D7. Thanks
Attachments
Futures_data.xls
(1.19 MiB) Downloaded 488 times
Last edited by chansen on Fri Mar 15, 2013 7:14 am, edited 1 time in total.

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

Re: Importing from excel

Postby EViews Gareth » Thu Mar 14, 2013 11:13 am

Hard to say without seeing the file. Did you try:

Code: Select all

wfopen myfile.xls
?

chansen
Posts: 3
Joined: Thu Mar 14, 2013 10:51 am

Re: Importing from excel

Postby chansen » Mon Mar 18, 2013 7:38 am

I uploaded my file to my previous post. I would greatly appreciate if you could write the programming line for how to import it.
Tanks

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

Re: Importing from excel

Postby EViews Gareth » Mon Mar 18, 2013 8:42 am

Code: Select all

wfopen c:\temp\futures_data.xls range="Sheet1!$D$7:$P$4000"

chansen
Posts: 3
Joined: Thu Mar 14, 2013 10:51 am

Re: Importing from excel

Postby chansen » Mon Mar 18, 2013 9:50 am

Thanks!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests