Home  /  Products  /  Features  /  Excel import/export

<-  See Stata's other features


  • 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

Stata for Windows, Mac, and Linux can directly import data and export data and results to Microsoft Excel files. Both Excel .xls and .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. You can also control how Stata data is exported to Excel.


Tell me more

Explore more data management features in Stata.