<?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: Percentage format exporting to excel in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597432#M34939</link>
    <description>&lt;P&gt;If I understand well the question, I believe the answer is ods excel. I set up the code like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;goptions device=actximg;&lt;/P&gt;&lt;P&gt;Ods excel file = "&amp;amp;route." style=htmlblue&lt;/P&gt;&lt;P&gt;options (sheet interval="none" sheet name="INDEX" embedded_titles='yes');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods escapechar='~';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;****TITLES FOR EACH SHEET*****&lt;/P&gt;&lt;P&gt;proc report mentioned above&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel options&amp;nbsp; (sheet interval="none" sheet name="INDEX2" embedded_titles='yes');&lt;/P&gt;&lt;P&gt;****TITLES FOR EACH SHEET*****&lt;/P&gt;&lt;P&gt;different proc report and graphs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's how I code it.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 16:39:55 GMT</pubDate>
    <dc:creator>DRivas10</dc:creator>
    <dc:date>2019-10-17T16:39:55Z</dc:date>
    <item>
      <title>Percentage format exporting to excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597385#M34934</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue when exporting my SAS tables to excel.&lt;/P&gt;&lt;P&gt;When exporting a decimal value (numerica format in SAS, let's say 0,2328) to excel (ods excel), I have 2 possible options that I'm aware of:&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;proc report data=X&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; column value;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; define value / display "Value" format=percent10.2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;proc report data=X&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; column value;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; define value / display "Value" format=percentn10.2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the first option, visually I get 23% as numeric value that I can later expand to 23,28%.&lt;/P&gt;&lt;P&gt;With the second option, I get 23.28% as a text value that I'd have to change to number by changing the . for the ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know how to get the output in excel visually as 23,28%, as a numeric value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 15:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597385#M34934</guid>
      <dc:creator>DRivas10</dc:creator>
      <dc:date>2019-10-17T15:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage format exporting to excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597402#M34935</link>
      <description>&lt;P&gt;Using one of the localized formats might work. Here's a link to the documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/nlsref/61893/HTML/default/viewer.htm#a002604001.htm" target="_self"&gt;https://support.sas.com/documentation/cdl/en/nlsref/61893/HTML/default/viewer.htm#a002604001.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 15:53:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597402#M34935</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2019-10-17T15:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage format exporting to excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597410#M34936</link>
      <description>&lt;P&gt;Hello Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your quick answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the number separated by comma, but when opening excel I get a flag saying value stuck as text. How is that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 16:06:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597410#M34936</guid>
      <dc:creator>DRivas10</dc:creator>
      <dc:date>2019-10-17T16:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage format exporting to excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597420#M34937</link>
      <description>&lt;P&gt;Maybe the TAGATTR style attribute will help.&lt;/P&gt;
&lt;P&gt;You would have a Style for the variable that might look like:&lt;/P&gt;
&lt;PRE&gt;style={tagattr='format:$#,##0_);[Red]\($#,##0\)'}&lt;/PRE&gt;
&lt;P&gt;Which uses the more Excel like display values. I don't mess with such much so you would have to look in the cell properties for Excel to make the correct string following the format: to display the percenta as desired. The above has two value rules separated by ; to do negative values in red surrounded by parentheses. The bit between the singles quotes is the entire TAGATTR string.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 16:26:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597420#M34937</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-17T16:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage format exporting to excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597425#M34938</link>
      <description>&lt;P&gt;How are you directing the output of PROC REPORT to Excel?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 16:29:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597425#M34938</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-17T16:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage format exporting to excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597432#M34939</link>
      <description>&lt;P&gt;If I understand well the question, I believe the answer is ods excel. I set up the code like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;goptions device=actximg;&lt;/P&gt;&lt;P&gt;Ods excel file = "&amp;amp;route." style=htmlblue&lt;/P&gt;&lt;P&gt;options (sheet interval="none" sheet name="INDEX" embedded_titles='yes');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods escapechar='~';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;****TITLES FOR EACH SHEET*****&lt;/P&gt;&lt;P&gt;proc report mentioned above&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel options&amp;nbsp; (sheet interval="none" sheet name="INDEX2" embedded_titles='yes');&lt;/P&gt;&lt;P&gt;****TITLES FOR EACH SHEET*****&lt;/P&gt;&lt;P&gt;different proc report and graphs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's how I code it.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 16:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597432#M34939</guid>
      <dc:creator>DRivas10</dc:creator>
      <dc:date>2019-10-17T16:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage format exporting to excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597445#M34940</link>
      <description>&lt;P&gt;In that case remember that the FORMAT used will only impact how SAS converts your values into text.&amp;nbsp; Not how Excel decides to display the text.&amp;nbsp; You will most likely need to use the TAGATTR style option to tell SAS how to tell Excel how to display the values.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 17:11:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597445#M34940</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-17T17:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage format exporting to excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597450#M34941</link>
      <description>&lt;P&gt;I've never tried to use Excel with a different format for thousands and decimal, but I'm wondering is there a way to set Excel to display in that format, and if there is will it fix your problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 17:17:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597450#M34941</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2019-10-17T17:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage format exporting to excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597501#M34946</link>
      <description>Have you tried a custom format? If it's shown as the value with the 23.28% is it okay if it's a character?&lt;BR /&gt;&lt;BR /&gt;I would create a custom format and use the TAGATTR option and would expect that to work. &lt;BR /&gt;</description>
      <pubDate>Thu, 17 Oct 2019 20:50:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Percentage-format-exporting-to-excel/m-p/597501#M34946</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-17T20:50:32Z</dc:date>
    </item>
  </channel>
</rss>

