Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How can I export both variable label and variable name to excel from stata

    Hi everyone,
    I would like to export both variable label and variable name with data to excel from stata but I cannot, could you please kindly help me?
    Last edited by Abdul Habib Yousufzai; 17 Aug 2019, 21:30.

  • #2
    The following example may start you in a useful direction.
    Code:
    sysuse auto, clear
    export excel make price using cars.xlsx, replace sheet("auto") cell(a1) firstrow(varlabels)
    export excel make price using cars.xlsx, sheet("auto", modify) cell(a2) firstrow(variables)
    Click image for larger version

Name:	autos.png
Views:	1
Size:	57.4 KB
ID:	1512719

    Comment


    • #3
      Dear William Lisowski,
      Thank you so much for your great help.

      Comment

      Working...
      X