<?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 Proc Tabulate Top row data shifts in Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440250#M109939</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you prevent a value from shifting up when my tabulate exports into Excel?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example below: I want the values 68 and 0.8746 to be in line with the row below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Count&lt;/TD&gt;&lt;TD&gt;Percent&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;68&lt;/TD&gt;&lt;TD&gt;0.8746&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Dec-17&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Mon, 26 Feb 2018 16:51:14 GMT</pubDate>
    <dc:creator>Brandon16</dc:creator>
    <dc:date>2018-02-26T16:51:14Z</dc:date>
    <item>
      <title>Proc Tabulate Top row data shifts in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440250#M109939</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you prevent a value from shifting up when my tabulate exports into Excel?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example below: I want the values 68 and 0.8746 to be in line with the row below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Count&lt;/TD&gt;&lt;TD&gt;Percent&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;68&lt;/TD&gt;&lt;TD&gt;0.8746&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Dec-17&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 26 Feb 2018 16:51:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440250#M109939</guid>
      <dc:creator>Brandon16</dc:creator>
      <dc:date>2018-02-26T16:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Top row data shifts in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440264#M109946</link>
      <description>&lt;P&gt;How are you exporting your data to Excel?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/188367"&gt;@Brandon16&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you prevent a value from shifting up when my tabulate exports into Excel?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example below: I want the values 68 and 0.8746 to be in line with the row below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Count&lt;/TD&gt;
&lt;TD&gt;Percent&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Value&lt;/TD&gt;
&lt;TD&gt;Month&lt;/TD&gt;
&lt;TD&gt;68&lt;/TD&gt;
&lt;TD&gt;0.8746&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;A&lt;/TD&gt;
&lt;TD&gt;Dec-17&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 17:24:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440264#M109946</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-26T17:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Top row data shifts in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440265#M109947</link>
      <description>&lt;P&gt;Using an ODS HTML BODY=filepath&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODMS HTML CLOSE - At the bottom of the tabulate&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 17:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440265#M109947</guid>
      <dc:creator>Brandon16</dc:creator>
      <dc:date>2018-02-26T17:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Top row data shifts in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440268#M109948</link>
      <description>&lt;P&gt;Well, that's creating an HTML file so that fact that its not rendering properly in Excel isn't surprising.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried ODS TAGSETS.EXCELXP or ODS EXCEL (SAS 9.4 TS1M3+) instead? You should get better results with either of those methods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/188367"&gt;@Brandon16&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Using an ODS HTML BODY=filepath&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODMS HTML CLOSE - At the bottom of the tabulate&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 17:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440268#M109948</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-26T17:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Top row data shifts in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440272#M109950</link>
      <description>No, never used either of those</description>
      <pubDate>Mon, 26 Feb 2018 17:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440272#M109950</guid>
      <dc:creator>Brandon16</dc:creator>
      <dc:date>2018-02-26T17:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Top row data shifts in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440283#M109954</link>
      <description>&lt;P&gt;I have come across a nocellmerge but that isn't recognised within my code. I would love to know a way around this as it's very annoying how the data is now presented within excel. If anyone has any idea how to resolve this, I would be most grateful.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 18:01:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440283#M109954</guid>
      <dc:creator>Brandon16</dc:creator>
      <dc:date>2018-02-26T18:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Top row data shifts in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440289#M109955</link>
      <description>&lt;P&gt;ODS TAGSETS.EXCELXP rendered the file fine in my tests. Is there a specific reason you can't switch to it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/base/ods/odsmarkup/excelxp_demo.html" target="_blank"&gt;https://support.sas.com/rnd/base/ods/odsmarkup/excelxp_demo.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 18:13:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440289#M109955</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-26T18:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Top row data shifts in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440328#M109963</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ex1;
input treat    visit    ptn     score1     score2;
cards;
  1        1       1      6.8496     1.3007
  1        2       1     14.7009    14.4018
  1        3       1      8.9982     2.9965
  1        1       2      7.5940     0.1880
  1        2       2     14.2160    13.4321
  1        3       2     14.6928    14.3855
  2        1       3     10.4298     5.8596
  2        2       3     10.3169     5.6338
  2        3       3      5.4979     4.0041
  2        1       4      5.6657     3.6687
  2        2       4     13.1932    11.3864
  2        3       4     10.2387     5.4774
  2        1       1     13.5339    12.0679
  2        2       1      5.6718     3.6563
  2        3       1     14.5702    14.1405
  2        1       2      7.9719     0.9439
  2        2       2      7.7261     0.4522
  2        3       2     11.8993     8.7986
  1        1       3     14.7676    14.5353
  1        2       3      7.2651     0.4698
  1        3       3     11.8824     8.7647
  1        1       4      9.1276     3.2553
  1        2       4     10.5855     6.1711
  1        3       4      7.8723     0.7445
 
;
run;
proc format;
  value vi 1='3/20' 2='8/30' 3='11/03';
    value tr 1='Therapy 1' 2='Therapy 2';
run;

ods html file='c:\_localdata\demo_html.xlsx' style=meadow;

proc tabulate data=ex1;
  class ptn treat visit;
  var score1 score2;
  table ptn='Id #',
        mean=' '*score1='Drug A'*treat=''*visit=''*F=6.
        sum=' '*score2='Drug B'*treat=''*visit=''*F=6. / RTS=6.;
  format treat tr. visit vi.;
run;

ods html close;


ods tagsets.excelxp file='c:\_localdata\demo_xml.xml'  style=meadow;

proc tabulate data=ex1;
  class ptn treat visit;
  var score1 score2;
  table ptn='Id #',
        mean=' '*score1='Drug A'*treat=''*visit=''*F=6.
        sum=' '*score2='Drug B'*treat=''*visit=''*F=6. / RTS=6.;
  format treat tr. visit vi.;
run;

ods tagsets.excelxp close;

ods excel file='c:\_localdata\demo_excel.xlsx'  style=meadow;

proc tabulate data=ex1;
  class ptn treat visit;
  var score1 score2;
  table ptn='Id #',
        mean=' '*score1='Drug A'*treat=''*visit=''*F=6.
        sum=' '*score2='Drug B'*treat=''*visit=''*F=6. / RTS=6.;
  format treat tr. visit vi.;
run;

ods excel close;



&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Feb 2018 20:20:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440328#M109963</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-26T20:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Top row data shifts in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440418#M109999</link>
      <description>&lt;P&gt;I have managed to resolve this by using / row=float;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all your help and suggestions.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 09:57:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Top-row-data-shifts-in-Excel/m-p/440418#M109999</guid>
      <dc:creator>Brandon16</dc:creator>
      <dc:date>2018-02-27T09:57:19Z</dc:date>
    </item>
  </channel>
</rss>

