Convert DTA to XLSM

Turn DTA files into XLSM. One sheet named Data with the variable names as a bold header row and numbers as number cells.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop DTA files on the dialor turn it to pick what to do

Stata data in an Excel workbook.One sheet holds your variables as columns, with a bold header row.

  1. What you get

    A single XLSM workbook with one sheet named Data. The variable names form a bold header row, and the numbers are stored as number cells.

    The workbook is saved as a macro-enabled file, but it contains no macros.

  2. What it drops

    Value labels, variable labels and missing-value definitions are not carried over. Coded answers stay as numbers, so a column that held 1 and 2 with labels in Stata shows 1 and 2 in the sheet.

    If you need to keep track of what the codes mean, note them down from the DTA file before you convert.

  3. When it fails

    A DTA file that cannot be parsed stops with input_corrupted. The conversion does not produce a workbook in that case.

    You can find every DTA conversion or every XLSM conversion on their own pages.

DTA and XLSM.What each format is.

The formats

From · DTA

Stata Data

Stata datasets.

Extensions
.dta
MIME type
application/x-stata-dta
Kind
Text and data
To · XLSM

Excel Macro-Enabled Workbook

An Excel workbook with macros enabled.

Extensions
.xlsm
MIME type
application/vnd.ms-excel.sheet.macroEnabled.12
Kind
Documents

In your code.The same DTA to XLSM conversion through the API, for your app or your agent.

terminal
$ cv convert report.dta report.xlsm
$ cv convert report.dta report.xlsm

Questions.What people ask about DTA to XLSM.

01OF 04

No. It is saved as a macro-enabled workbook, but it has no macros in it.

No. Value labels are dropped, so coded answers appear as numbers.

The variable names, in bold. Variable labels are not used.

The file could not be parsed. The conversion stops and no workbook is made.

More conversions.Other ways in and out of DTA and XLSM.