<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to export summary table to excel in the same format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254339#M56974</link>
    <description>&lt;P&gt;I haveEnterprise Guide 7.1.&lt;/P&gt;&lt;P&gt;After I select "Export Summary Table for XXX As A Step In Project", I can select XLSX in 2nd step.&lt;/P&gt;&lt;P&gt;I don't see HTML option.&lt;/P&gt;&lt;P&gt;But I would need to tweak it after exporting it, so prefer to use excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I included a couple screen shots where I can select XLSX option in the attachement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;SKP&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2016 21:25:29 GMT</pubDate>
    <dc:creator>SKP</dc:creator>
    <dc:date>2016-03-03T21:25:29Z</dc:date>
    <item>
      <title>How to export summary table to excel in the same format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254315#M56967</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm SAS beginner and hoping I can get some help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created summary table with "Month" in column and "Employee ID" in row, but when I exported it to excel, "Month" moved back to row.&lt;/P&gt;&lt;P&gt;Does anyone know how to export the table into excel in the same format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much,&lt;/P&gt;&lt;P&gt;SKP&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 20:27:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254315#M56967</guid>
      <dc:creator>SKP</dc:creator>
      <dc:date>2016-03-03T20:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to export summary table to excel in the same format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254326#M56968</link>
      <description>&lt;P&gt;How did you create the summary table, and how did you export it? With SAS code, or any wizard (like in SAS Studio/EG...).&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 20:52:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254326#M56968</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-03T20:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to export summary table to excel in the same format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254328#M56969</link>
      <description>&lt;P&gt;Hi LinusH,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the summary table with Summary Table Wizard, and exported "Output Data" by doing Export -&amp;gt; Export Summary Tabe for XXX As A Step In Project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SKP&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 20:56:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254328#M56969</guid>
      <dc:creator>SKP</dc:creator>
      <dc:date>2016-03-03T20:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to export summary table to excel in the same format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254333#M56970</link>
      <description>&lt;P&gt;Export is for more for data interchange which would have a different appearance than you might expect.&lt;/P&gt;
&lt;P&gt;I suspect you are looking for a Report based on your summarized data.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:06:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254333#M56970</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-03T21:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to export summary table to excel in the same format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254334#M56971</link>
      <description>&lt;P&gt;ballarbw,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, that's correct.&amp;nbsp; I'm trying to export the report in excel which looks like my summarized data in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SKP&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254334#M56971</guid>
      <dc:creator>SKP</dc:creator>
      <dc:date>2016-03-03T21:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to export summary table to excel in the same format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254335#M56972</link>
      <description>&lt;P&gt;Enterprise Guide, right?&lt;/P&gt;
&lt;P&gt;I have 6.1, but can't see "output data" anywhere.&lt;/P&gt;
&lt;P&gt;In the export wizard, I don't have the Excel option. Do you, or did you use XML/HTML?&lt;/P&gt;
&lt;P&gt;When I use HTML the report layout is preserved.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254335#M56972</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-03T21:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to export summary table to excel in the same format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254337#M56973</link>
      <description>&lt;P&gt;If you're okay with a little code, you can &lt;A href="http://blogs.sas.com/content/sasdummy/2014/08/29/experimenting-with-ods-excel-to-create-spreadsheets-from-sas/" target="_self"&gt;use ODS EXCEL to capture your report&lt;/A&gt; in an Excel spreadsheet (requires SAS 9.4m2 or later).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have the very latest version of SAS Enterprise Guide (v7.12), then&amp;nbsp;&lt;STRONG&gt;Excel&lt;/STRONG&gt; is a destination option in your Tools-&amp;gt;Options-&amp;gt;Results settings.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254337#M56973</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-03-03T21:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to export summary table to excel in the same format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254339#M56974</link>
      <description>&lt;P&gt;I haveEnterprise Guide 7.1.&lt;/P&gt;&lt;P&gt;After I select "Export Summary Table for XXX As A Step In Project", I can select XLSX in 2nd step.&lt;/P&gt;&lt;P&gt;I don't see HTML option.&lt;/P&gt;&lt;P&gt;But I would need to tweak it after exporting it, so prefer to use excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I included a couple screen shots where I can select XLSX option in the attachement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;SKP&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254339#M56974</guid>
      <dc:creator>SKP</dc:creator>
      <dc:date>2016-03-03T21:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to export summary table to excel in the same format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254341#M56975</link>
      <description>&lt;P&gt;If you're using SAS Report output (looks like you are), you can copy the objects from your Results view and paste them in Excel. &amp;nbsp;It looks pretty good -- usually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if you want to automate that, you'll probably be happier with ODS EXCEL as I mentioned in another reply.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:32:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254341#M56975</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-03-03T21:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to export summary table to excel in the same format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254344#M56976</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you show me in the code where I can specify the summary table I want to export?&lt;/P&gt;&lt;P&gt;I tried it, but it created the excel file with the example table, not mine...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SKP&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:44:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254344#M56976</guid>
      <dc:creator>SKP</dc:creator>
      <dc:date>2016-03-03T21:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to export summary table to excel in the same format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254352#M56977</link>
      <description>&lt;P&gt;Yes, you'll have to use the ODS EXCEL&amp;nbsp;&lt;STRONG&gt;open&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;close&lt;/STRONG&gt; statements, and in between you paste your Summary Tables code (from the Code tab in your task output). &amp;nbsp;The result will be something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* add this */
ods excel file="c:\temp\report.xlsx";

/* Code from your Summary Tables task */
PROC TABULATE
DATA=WORK.SKP
	
	;
	
	VAR Amount;
	CLASS Month /	ORDER=UNFORMATTED MISSING;
	CLASS "Employee ID"n /	ORDER=UNFORMATTED MISSING;
	TABLE /* Row Dimension */
'Employee ID'n*
  Sum={LABEL=""},
/* Column Dimension */
Month*
  Amount 		;
	;

RUN;

/* add this */
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the beautiful result in Excel:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2164iC2EEBE09DC1C93E0/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="report.jpg" title="report.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 22:07:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254352#M56977</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-03-03T22:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to export summary table to excel in the same format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254354#M56979</link>
      <description>&lt;P&gt;Oh, I should also point out: because your Month var is a character (not a SAS date variable), you'll see it's not sorted in "month" order. &amp;nbsp;You might want to convert that to a SAS date using an INFORMAT to read it&amp;nbsp;in. &amp;nbsp;That's another small tutorial -- but you'll find it gives you more reporting flexibility (roll the reporting up to Quarter or Year).&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 22:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254354#M56979</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-03-03T22:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to export summary table to excel in the same format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254376#M56981</link>
      <description>&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked and I have the beautiful excel result!&lt;/P&gt;&lt;P&gt;Thank yo so much for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SKP&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 23:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-summary-table-to-excel-in-the-same-format/m-p/254376#M56981</guid>
      <dc:creator>SKP</dc:creator>
      <dc:date>2016-03-03T23:05:26Z</dc:date>
    </item>
  </channel>
</rss>

