<?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: Excel autoformatting of time field in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-autoformatting-of-time-field/m-p/69844#M8032</link>
    <description>Now if I could just get logparse to tell me data what?  or sort what?&lt;BR /&gt;
or sql what?</description>
    <pubDate>Tue, 23 Mar 2010 18:42:17 GMT</pubDate>
    <dc:creator>MZunnurain</dc:creator>
    <dc:date>2010-03-23T18:42:17Z</dc:date>
    <item>
      <title>Excel autoformatting of time field</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-autoformatting-of-time-field/m-p/69841#M8029</link>
      <description>I have an output time from %logparse macro which appears like this in &lt;BR /&gt;
the csv file.... &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
10:31:34.90   Representing 10 hours 31 minutes 34.90 seconds from the &lt;BR /&gt;
log &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
When I open the csv file using Excel it appears like this... &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
31:34.9  without the 10 hours &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
when I click on the cell, a format showing as... &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
10:31:35 AM &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Excel took its best guess, but this is not how I would like the time &lt;BR /&gt;
to appear.  I would like it to appear as 10:31:34.90 as in the csv &lt;BR /&gt;
file.  Any ideas?  I can reformat myself using hh:mm:ss.000 but as &lt;BR /&gt;
this will be used for multiple spreadsheets I would like it to be &lt;BR /&gt;
automatic.</description>
      <pubDate>Sun, 21 Mar 2010 00:00:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-autoformatting-of-time-field/m-p/69841#M8029</guid>
      <dc:creator>MZunnurain</dc:creator>
      <dc:date>2010-03-21T00:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Excel autoformatting of time field</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-autoformatting-of-time-field/m-p/69842#M8030</link>
      <description>Hi:&lt;BR /&gt;
  When you use ODS CSV to create a report file that Excel can open, you are going to get all the Excel defaults. If you don't like the default format (column width, number format, etc) that Excel uses when it opens the CSV file -- you can use the pull-down menus -inside- Excel to change them.&lt;BR /&gt;
 &lt;BR /&gt;
  There is a way to send a &lt;B&gt;&lt;U&gt;Microsoft&lt;/U&gt;&lt;/B&gt;&lt;U&gt;&lt;/U&gt; format from ODS to Excel -- if you use&lt;BR /&gt;
1) ODS HTML or ODS MSOFFICE2K destinations (HTML-based destinations), then you can use the HTMLSTYLE= style attribute to send an mso-number-format CSS style property to Excel (to use when it opens the HTML file);&lt;BR /&gt;
2) ODS TAGSETS.EXCELXP destination (Spreadsheet markup language XML based destination) then you can use the TAGATTR= style attribute to send a Microsoft formula or format to Excel (to use when it opens the XML file).&lt;BR /&gt;
&lt;BR /&gt;
There is a discussion and examples of both techniques in this paper:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi28/012-28.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi28/012-28.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Sun, 21 Mar 2010 02:02:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-autoformatting-of-time-field/m-p/69842#M8030</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-03-21T02:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Excel autoformatting of time field</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-autoformatting-of-time-field/m-p/69843#M8031</link>
      <description>Thank you Cynthia.&lt;BR /&gt;
&lt;BR /&gt;
This worked from within ods html....&lt;BR /&gt;
&lt;BR /&gt;
  &lt;BR /&gt;
 var realtime / style={htmlstyle="vnd.ms-excel.numberformat:hh:mm:ss.00"};</description>
      <pubDate>Mon, 22 Mar 2010 16:44:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-autoformatting-of-time-field/m-p/69843#M8031</guid>
      <dc:creator>MZunnurain</dc:creator>
      <dc:date>2010-03-22T16:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Excel autoformatting of time field</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-autoformatting-of-time-field/m-p/69844#M8032</link>
      <description>Now if I could just get logparse to tell me data what?  or sort what?&lt;BR /&gt;
or sql what?</description>
      <pubDate>Tue, 23 Mar 2010 18:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-autoformatting-of-time-field/m-p/69844#M8032</guid>
      <dc:creator>MZunnurain</dc:creator>
      <dc:date>2010-03-23T18:42:17Z</dc:date>
    </item>
  </channel>
</rss>

