Announcement

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

  • Tables to Excel- rows and columns does not stay in place!

    Hi all!

    I have created a table in Stata. When copying it as table and paste it into Excel the values does to paste in columns. When using "text to columns" in Excel the rows move around, and some nubers are split into two. There must be a better way. How do I solve this?

    Click image for larger version

Name:	Skärmklipp.JPG
Views:	1
Size:	102.1 KB
ID:	1746547



    After pasting my table in Excel.

    Click image for larger version

Name:	Skärmklipp2.JPG
Views:	1
Size:	104.4 KB
ID:	1746548







    After applying "text to columns" in Excel.

    Click image for larger version

Name:	Skärmklipp3.JPG
Views:	1
Size:	117.0 KB
ID:	1746549


  • #2
    probably need to get rid of the % info and compute in excel. copy/paste table doesn't do well with more info in a cell than one thing. or else just clean it up manually.

    or you could get counts and percentages in separate tables, and then concatenate in excel.

    or, eliminate any spaces in the data in excel, do text to columns, and then add spaces back in.



    Comment


    • #3
      If you are running version 17 or 18 and you created the original Stata table using -dtable- or -table-, instead of copy/pasting the table, use -collect export- to the Excel file.

      Comment

      Working...
      X