Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Export Excel – multiple worksheets


From   "Kathrin Jacobs" <jacobs.1@gmx.net>
To   statalist@hsphsun2.harvard.edu
Subject   st: Export Excel – multiple worksheets
Date   Tue, 23 Oct 2012 10:07:36 +0200

Hi,

I want to use the export excel feature and I am unsure about the syntax. I would like to export variables into multiple Excel worksheets. 

In the end, GDP from 2000 to 2010 for certain industries should be in the first worksheet, employment from 2000 to 2010 for certain industries should be in the second worksheet, etc.

My data looks like this in Stata:
Industry    GDP_2000 … GDP_2010   EMP_2000 … EMP_2010 
a             1458      1589       5777      6458      
b             1871      1751       2458      2587      
c             1775      1879       3845      4148      

I need the data look like this in Excel:
Worksheet 1:
Industry    GDP_2000 … GDP_2010    
a             1458      1589            
b             1871      1751            
c             1775      1879       
               
Worksheet 2:
Industry   EMP_2000 … EMP_2010 
a             5777      6458      
b             2458      2587      
c             3845      4148 

Any ideas?
Many thanks,
Kathrin
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index