Stata: Data Analysis and Statistical Software
   >> Home >> Products >> Stata 12 >> Excel® import/export
order stataorder stata

Excel® import and export

Stata for Windows, Mac*, and Linux can now directly import and export Microsoft Excel files. Both Excel 1997/2003 (.xls) files and Excel 2007/2010 (.xlsx) files are supported.

Above you see the preview tool, which you can use to see the data in an Excel worksheet before importing it and adjust options controlling how the data are imported.

import excel features

  • .xls and .xlsx support
  • import any worksheet from a workbook with multiple worksheets
  • import a custom cell range
  • treat first row of Excel data as Stata variable names
  • automatic conversion of Excel dates to Stata dates
  • automatic optimization of Stata storage types

export excel features

  • .xls and .xlsx support
  • replace an entire workbook
  • add a worksheet to an existing workbook
  • replace a single worksheet within an existing workbook
  • modify a subset of cells within an existing worksheet
  • save Stata variable names or variable labels to first row of worksheet
  • automatic conversion of Stata dates to Excel dates
  • export value labels or the underlying values
  • specify a custom missing-value code to use in worksheet

* import excel and export excel are not available on PowerPC-based Macs; all modern Macs are Intel-based and do support import excel and export excel.

Excel is a registered trademark of Microsoft.

Back to highlights

See New in Stata 12 for more about what was added in Stata Release 12.

Bookmark and Share 
Stata 12
Overview: Why use Stata?
Stata/MP
Capabilities
New in Stata 12
Highlights
ARFIMA
Automatic memory management
Business calendars
Contour plots
Contrasts
Excel import/export
Installation Qualification
Interface
Margins plots
Multilevel models with survey data
Multiple imputation
Multivariate GARCH
Pairwise comparisons
Receiver operating characteristics
Spectral density
Stata/MP
Structural equation modeling
Time-series filters
Unobserved components model
Supported platforms
Which Stata?
Technical support
User comments
Like us on Facebook Follow us on Twitter Follow us on LinkedIn Google+ Watch us on YouTube
Follow us
© Copyright 1996–2013 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index   |   View mobile site