<?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: My export to excel is not retaining the designated column formats in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/My-export-to-excel-is-not-retaining-the-designated-column/m-p/562620#M33836</link>
    <description>ODS EXCEL was only in production as of 9.4M3, but it seems fairly decent in 9.4M5/6. I have seen some memory issues when there are a large number of rows but not beyond that. &lt;BR /&gt;&lt;BR /&gt;Other approaches could be to use TAGSETS.EXCELXP and then convert to XLSX afterwards but you may also run into memory issues. &lt;BR /&gt;&lt;BR /&gt;Excel auto formats things which makes it hard sometimes.</description>
    <pubDate>Thu, 30 May 2019 16:29:03 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-05-30T16:29:03Z</dc:date>
    <item>
      <title>My export to excel is not retaining the designated column formats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/My-export-to-excel-is-not-retaining-the-designated-column/m-p/562605#M33831</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created an excel sheet that contains numeric values and monetary values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initially, whenever I export the data to a .xlsx file. The formats that I set in SAS are never retained in the excel spreadsheet. For example,&lt;/P&gt;&lt;P&gt;numeric values with leading 0's would get removed if I were to double click the column. The same for supposed Currency columns, the $ sign would stay, however, I can't aggregate the cells because they're neither Numeric nor Currency columns. So pretty much, whenever, I run an excel export. Every column is "General" in terms of formatting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My approach to this was to concatenate an apostrophe to every field that was numeric or monetary.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: '0001111&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This avoids the 0's from being removed when I double click it. However, every time an export is ran. The apostrophes are visible and the formats are still considered "General." The upside to this is that when I double click the fields, nothing is removed, but the apostrophes, which is halfway to the desired outcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I'm wondering right now, what can I do to export an excel sheet that only shows apostrophes when looking at a cell from the Formula box. I don't want to see any apostrophes on the bare spreadsheet until I click a cell and view its Formula Box.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or I can skip the concatenating of apostrophes and have the ability to retain formats when exporting to Excel.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 15:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/My-export-to-excel-is-not-retaining-the-designated-column/m-p/562605#M33831</guid>
      <dc:creator>dwah</dc:creator>
      <dc:date>2019-05-30T15:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: My export to excel is not retaining the designated column formats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/My-export-to-excel-is-not-retaining-the-designated-column/m-p/562614#M33832</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/276160"&gt;@dwah&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've created an excel sheet that contains numeric values and monetary values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Initially, whenever I export the data to a .xlsx file. The formats that I set in SAS are never retained in the excel spreadsheet. For example,&lt;/P&gt;
&lt;P&gt;numeric values with leading 0's would get removed if I were to double click the column. The same for supposed Currency columns, the $ sign would stay, however, I can't aggregate the cells because they're neither Numeric nor Currency columns. So pretty much, whenever, I run an excel export. Every column is "General" in terms of formatting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My approach to this was to concatenate an apostrophe to every field that was numeric or monetary.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example: '0001111&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This avoids the 0's from being removed when I double click it. However, every time an export is ran. The apostrophes are visible and the formats are still considered "General." The upside to this is that when I double click the fields, nothing is removed, but the apostrophes, which is halfway to the desired outcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I'm wondering right now, what can I do to export an excel sheet that only shows apostrophes when looking at a cell from the Formula box. I don't want to see any apostrophes on the bare spreadsheet until I click a cell and view its Formula Box.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or I can skip the concatenating of apostrophes and have the ability to retain formats when exporting to Excel.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you're using PROC EXPORT this is pretty standard behaviour.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, ODS EXCEL provides a lot of functionality to format your output exactly to your specifications. It's not perfect but it's pretty good. You sometimes need to customize things to get the right formats but it's possible, whereas in PROC EXPORT it's not really.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should get you started&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sgf/2017/02/20/tips-for-using-the-ods-excel-destination/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2017/02/20/tips-for-using-the-ods-excel-destination/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 16:15:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/My-export-to-excel-is-not-retaining-the-designated-column/m-p/562614#M33832</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-30T16:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: My export to excel is not retaining the designated column formats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/My-export-to-excel-is-not-retaining-the-designated-column/m-p/562615#M33833</link>
      <description>&lt;P&gt;Please provide example data and show what method you are using to "export" to XLSX.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you use PROC EXPORT?&amp;nbsp; Using the XLSX libname engine?&amp;nbsp; Using EXCEL engine? Or PCFILES?&lt;/P&gt;
&lt;P&gt;Are you use ODS to store printed output into XLSX file?&lt;/P&gt;
&lt;P&gt;Are you creating a CSV (or other delimited text file) and reading it use Excel?&amp;nbsp; If do HOW are you reading it with Excel?&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 16:16:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/My-export-to-excel-is-not-retaining-the-designated-column/m-p/562615#M33833</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-30T16:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: My export to excel is not retaining the designated column formats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/My-export-to-excel-is-not-retaining-the-designated-column/m-p/562616#M33834</link>
      <description>&lt;P&gt;I am currently using PROC EXPORT. From what I've read so far on these sorts of issues, PROC EXPORT does indeed cause these sort of issues. I've taken a look into ODS EXCEL but I ran into memory issues when I last tried. Not sure if that's still a viable solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 16:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/My-export-to-excel-is-not-retaining-the-designated-column/m-p/562616#M33834</guid>
      <dc:creator>dwah</dc:creator>
      <dc:date>2019-05-30T16:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: My export to excel is not retaining the designated column formats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/My-export-to-excel-is-not-retaining-the-designated-column/m-p/562617#M33835</link>
      <description>&lt;P&gt;PROC EXPORT is the current way its being read to Excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ods excel was causing memory issues when I attempted to use it as an export method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 16:24:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/My-export-to-excel-is-not-retaining-the-designated-column/m-p/562617#M33835</guid>
      <dc:creator>dwah</dc:creator>
      <dc:date>2019-05-30T16:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: My export to excel is not retaining the designated column formats</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/My-export-to-excel-is-not-retaining-the-designated-column/m-p/562620#M33836</link>
      <description>ODS EXCEL was only in production as of 9.4M3, but it seems fairly decent in 9.4M5/6. I have seen some memory issues when there are a large number of rows but not beyond that. &lt;BR /&gt;&lt;BR /&gt;Other approaches could be to use TAGSETS.EXCELXP and then convert to XLSX afterwards but you may also run into memory issues. &lt;BR /&gt;&lt;BR /&gt;Excel auto formats things which makes it hard sometimes.</description>
      <pubDate>Thu, 30 May 2019 16:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/My-export-to-excel-is-not-retaining-the-designated-column/m-p/562620#M33836</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-30T16:29:03Z</dc:date>
    </item>
  </channel>
</rss>

