Exporting table to 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

VBoykis
Posts: 5
Joined: Mon Jan 05, 2009 1:44 pm

Exporting table to Excel

Postby VBoykis » Thu Jan 08, 2009 9:07 am

Hi All,

I know there are ways to export series to Excel, but is there a command that allows for the export of tables to an Excel file, something along the lines of the write (t=xls) c:\documents\file.xls t_table

Thank you.

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

Re: Exporting table to Excel

Postby EViews Gareth » Thu Jan 08, 2009 9:25 am

EViews won't save a table directly to an Excel file, but it will save it as a CSV file (which Excel will open with no problems):

tablename.save(t=csv) c:\documents\file.csv

flash
Posts: 7
Joined: Sat May 30, 2009 6:47 am

Re: Exporting table to Excel

Postby flash » Mon May 17, 2010 11:10 am

Hi all,

has any imporvement been made in eviews 7 in regards to the above issue or does this continue to be the case still ?

Thanks.

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

Re: Exporting table to Excel

Postby EViews Gareth » Mon May 17, 2010 11:35 am

No change.

Karl1
Posts: 27
Joined: Tue Aug 27, 2013 1:10 am

Re: Exporting table to Excel

Postby Karl1 » Tue Nov 19, 2013 6:30 am

EViews won't save a table directly to an Excel file, but it will save it as a CSV file (which Excel will open with no problems):

tablename.save(t=csv) c:\documents\file.csv
The last line in the following commands did not work
modelbame.makegroup(s=m) table3b variablename1 variablename2
table3b.dtable
table3b.ddtabopts firstfreq(a) secfreq(none) display(year,7)
table3b.save(t=csv) c:\documents\table3b.csv
I get the error message "SAVE is not a valid view for TABLE3B in "DO_TABLE3B.SAVE(T=CSV) c:\documents\table3b.csv"."

Does anybody know what gets wrong here?

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

Re: Exporting table to Excel

Postby EViews Gareth » Tue Nov 19, 2013 8:56 am

Your object, table3b, is not a table. It is a group. You'll need to freeze it into a table before saving.

Karl1
Posts: 27
Joined: Tue Aug 27, 2013 1:10 am

Re: Exporting table to Excel

Postby Karl1 » Tue Nov 19, 2013 9:39 am

Seems like the freeze command freezes the raw data of the group, which is quaterly, and not the formated data, which is annual.
Is it possible to freeze the group as it is viewed?

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

Re: Exporting table to Excel

Postby EViews Gareth » Tue Nov 19, 2013 9:40 am

Code: Select all

table3b.ddtabopts firstfreq(a) secfreq(none) display(year,7) freeze(tab1) table3b.dtable

Karl1
Posts: 27
Joined: Tue Aug 27, 2013 1:10 am

Re: Exporting table to Excel

Postby Karl1 » Wed Nov 20, 2013 1:56 am

Nice! Thanks!

nevernotnone
Posts: 3
Joined: Mon Jan 25, 2016 8:35 am

Re: Exporting table to Excel

Postby nevernotnone » Wed Aug 10, 2016 8:00 am

Any update on this? I have a program that generates a number of summary tables that I would like to be able to write as multiple sheets within a single excel file.

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

Re: Exporting table to Excel

Postby EViews Gareth » Wed Aug 10, 2016 8:50 am

No.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests