<?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 excel getting text date and making it a number in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-getting-text-date-and-making-it-a-number/m-p/115423#M10211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a proc print that is creating a spreadsheet in excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems to work except for a date which is stored as a text field (that is the way the requirements are written) is being output as a number to excel which thus displays it as a 1 in the cell but as the correct date in the formula bar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jun 2013 15:40:58 GMT</pubDate>
    <dc:creator>wkossack_nspirehealth_com</dc:creator>
    <dc:date>2013-06-21T15:40:58Z</dc:date>
    <item>
      <title>excel getting text date and making it a number</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-getting-text-date-and-making-it-a-number/m-p/115423#M10211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a proc print that is creating a spreadsheet in excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems to work except for a date which is stored as a text field (that is the way the requirements are written) is being output as a number to excel which thus displays it as a 1 in the cell but as the correct date in the formula bar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 15:40:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-getting-text-date-and-making-it-a-number/m-p/115423#M10211</guid>
      <dc:creator>wkossack_nspirehealth_com</dc:creator>
      <dc:date>2013-06-21T15:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: excel getting text date and making it a number</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-getting-text-date-and-making-it-a-number/m-p/115424#M10212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; How you are creating the file for Excel is crucial information. Are you using PROC EXPORT, or the LIBNAME engine? Are you using ODS HTML, ODS CSV or ODS TAGSETS.EXCELXP? You have not posted any sample code. It appears that you have not searched support.sas.com or even this forum. This question has been asked and answered many times, several of them by me, if you are using ODS techniques to make your file for Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you searched support.sas.com, you should have found this (specifically about dates in Excel). Excel has its own way of treating your information, that's why there are issues with leading zeroes, percents signs, decimal places and dates.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/38/105.html" title="http://support.sas.com/kb/38/105.html"&gt;38105 - How can I control the formatting of my output when exporting output to Excel using ODS?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/38/143.html" title="http://support.sas.com/kb/38/143.html"&gt;38143 - Apply date formats with the ExcelXP destination&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 17:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-getting-text-date-and-making-it-a-number/m-p/115424#M10212</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-06-21T17:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: excel getting text date and making it a number</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-getting-text-date-and-making-it-a-number/m-p/115425#M10213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't quite understand your situation, but seems like you could use the fact that any field starting with an apostrophe will remain a text cell and Excel will not display the apostrophe. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 17:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-getting-text-date-and-making-it-a-number/m-p/115425#M10213</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-06-21T17:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: excel getting text date and making it a number</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-getting-text-date-and-making-it-a-number/m-p/115426#M10214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the date (birthdate) is a text field in SAS.&amp;nbsp; I think it is that way because that is in the requirements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I try using&lt;/P&gt;&lt;P&gt;proc print....&lt;/P&gt;&lt;P&gt;var birth /style={htmlstyle="mso-number-format:\@"};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warning: Yes/No options only take, yes, no, on, or off as valid values&lt;/P&gt;&lt;P&gt;WARNING: In Event: style_over_ride, Invalid Expression:&lt;/P&gt;&lt;P&gt;ERROR: WHERE clause operator requires numeric variables.&lt;/P&gt;&lt;P&gt;WARNING: In Event: style_over_ride, Invalid Expression:&lt;/P&gt;&lt;P&gt;ERROR: WHERE clause operator requires numeric variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I stick&lt;/P&gt;&lt;P&gt; ods path work.templat(update) sashelp.tmplmst(read);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works but then the ods output options are ignored such as column width&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are&lt;/P&gt;&lt;P&gt;&amp;nbsp; ods tagsets.ExcelXP options(embedded_footnotes='yes'&amp;nbsp; embedded_titles='yes'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; suppress_bylines='yes' orientation='landscape'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet_interval='bygroup'&amp;nbsp; sheet_label=' '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width_fudge='.7' width_points='1'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; absolute_column_width='125,68.5,68.5,68.5,68.5,68.5,68.5,68.5'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center_horizontal ='yes ');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 17:49:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-getting-text-date-and-making-it-a-number/m-p/115426#M10214</guid>
      <dc:creator>wkossack_nspirehealth_com</dc:creator>
      <dc:date>2013-06-21T17:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: excel getting text date and making it a number</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-getting-text-date-and-making-it-a-number/m-p/115427#M10215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; ODS TAGSETS.EXCELXP is not HTML. Using HTMLSTYLE is *only* appropriate with HTML-based methods of creating output for Excel. When you use ODS TAGSETS.EXCELXP, you need to use the TAGATTR= style attribute method of describing the field as text and/or send a Microsoft format from SAS to Excel using TAGATTR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have posted a link to my paper on using HTMLSTYLE (for HTML) and TAGATTR (for EXCELXP) several times. Here it is again.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings11/266-2011.pdf" title="http://support.sas.com/resources/papers/proceedings11/266-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/266-2011.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you search the forum postings or support.sas.com for TAGATTR=, you should find even more hits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 23:09:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excel-getting-text-date-and-making-it-a-number/m-p/115427#M10215</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-06-21T23:09:57Z</dc:date>
    </item>
  </channel>
</rss>

