<?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 Unusual cell formatting with Proc Export to an Excel Template in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Unusual-cell-formatting-with-Proc-Export-to-an-Excel-Template/m-p/360982#M10869</link>
    <description>&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;I have a SAS program that creates a table of values (through multiple data and proc steps), and that ends with a Proc Export to export that table to one of the tabs of&amp;nbsp;an Excel template (xls). &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;PROC EXPORT DATA = work.abc OUTFILE= “mypath to Excel template\xyz_template.xls"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=EXCEL REPLACE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHEET="table1";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;There is no pre-formatting in&lt;SPAN class="apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;the 'table1'&amp;nbsp;sheet of the template - only the column headings and some data that gets replaced when the proc export is run;&amp;nbsp;every cell&amp;nbsp;is in "General" format and aligned to center. After the export, some cells in the table are bottom aligned, and some (random ones) are center bottom&amp;nbsp;aligned - and the strangest thing is that the latter cells are coloured (have a light blue background colour) and a black border around them). &amp;nbsp;There is no specified colour or alignment style in my SAS program, so I don't understand where the formatting is coming from.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;I&lt;SPAN class="apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;have&amp;nbsp;tried deleting that sheet in the template altogether, as proc export creates a new one&amp;nbsp;if it does not find one to replace, and this time the same type of formatting happened when proc export&amp;nbsp;created the 'table1' sheet, except that the center-bottom-aligned cells now got coloured in a different colour (purple).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;I've attached a sample of how my Excel output looks like.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;Wondered if someone else encountered this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2017 01:38:24 GMT</pubDate>
    <dc:creator>JSML</dc:creator>
    <dc:date>2017-05-24T01:38:24Z</dc:date>
    <item>
      <title>Unusual cell formatting with Proc Export to an Excel Template</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Unusual-cell-formatting-with-Proc-Export-to-an-Excel-Template/m-p/360982#M10869</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;I have a SAS program that creates a table of values (through multiple data and proc steps), and that ends with a Proc Export to export that table to one of the tabs of&amp;nbsp;an Excel template (xls). &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;PROC EXPORT DATA = work.abc OUTFILE= “mypath to Excel template\xyz_template.xls"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=EXCEL REPLACE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHEET="table1";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;There is no pre-formatting in&lt;SPAN class="apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;the 'table1'&amp;nbsp;sheet of the template - only the column headings and some data that gets replaced when the proc export is run;&amp;nbsp;every cell&amp;nbsp;is in "General" format and aligned to center. After the export, some cells in the table are bottom aligned, and some (random ones) are center bottom&amp;nbsp;aligned - and the strangest thing is that the latter cells are coloured (have a light blue background colour) and a black border around them). &amp;nbsp;There is no specified colour or alignment style in my SAS program, so I don't understand where the formatting is coming from.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;I&lt;SPAN class="apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;have&amp;nbsp;tried deleting that sheet in the template altogether, as proc export creates a new one&amp;nbsp;if it does not find one to replace, and this time the same type of formatting happened when proc export&amp;nbsp;created the 'table1' sheet, except that the center-bottom-aligned cells now got coloured in a different colour (purple).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;I've attached a sample of how my Excel output looks like.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;Wondered if someone else encountered this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica Neue'; color: #333333;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 01:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Unusual-cell-formatting-with-Proc-Export-to-an-Excel-Template/m-p/360982#M10869</guid>
      <dc:creator>JSML</dc:creator>
      <dc:date>2017-05-24T01:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unusual cell formatting with Proc Export to an Excel Template</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Unusual-cell-formatting-with-Proc-Export-to-an-Excel-Template/m-p/360994#M10870</link>
      <description>&lt;P&gt;You say xls but included an XLSX file, was that a typo?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check if you have any conditional formats in your template&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 02:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Unusual-cell-formatting-with-Proc-Export-to-an-Excel-Template/m-p/360994#M10870</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-24T02:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unusual cell formatting with Proc Export to an Excel Template</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Unusual-cell-formatting-with-Proc-Export-to-an-Excel-Template/m-p/360995#M10871</link>
      <description>&lt;P&gt;Hi, sorry, no the Excel template is xls. &amp;nbsp;I included a sample xlsx file because I am writing this post from home and the SAS program and excel template I mentioned are at work (at the office), so no access to the actual xls file at the moment (but the formatting looks exactly as in the sample file I attached).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did check earlier today if there was&amp;nbsp;conditional formatting in the sheet and there was none...&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 02:24:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Unusual-cell-formatting-with-Proc-Export-to-an-Excel-Template/m-p/360995#M10871</guid>
      <dc:creator>JSML</dc:creator>
      <dc:date>2017-05-24T02:24:38Z</dc:date>
    </item>
  </channel>
</rss>

