<?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: importing columns with hours from Excel in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/importing-columns-with-hours-from-Excel/m-p/209078#M51817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe that 30Dec1899 is how SAS receives an Excel date of 0 (which Excel in Microsoft,s infinite will display as January 0, 1900). Since the algorithm works for Excel 1/1/1900 (value of 1) then subtract one day from 1/1/1900 you get 12/30/1899. Except Excel doesn't really use dates prior to 1/1/1900.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test this by typing a 0 into a cell in Excel then format as a date.&lt;/P&gt;&lt;P&gt;also Type a date prior to 1/1/1900 and then try to convert to a basic number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2015 15:42:20 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-07-24T15:42:20Z</dc:date>
    <item>
      <title>importing columns with hours from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-columns-with-hours-from-Excel/m-p/209073#M51812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I have an Excel book and would like to import all sheets from SAS. All sheets have a common ID and Name of people but with different length. Does anyone know how to import all sheets that I need without importing each sheet at the time?&lt;/P&gt;&lt;P&gt;Also, When I tried to import only one sheet with columns having "hour at start" and "hour at end" of a specific surgical procedure I get years in SAS instead of hours. I have changed the format of these columns in Excel to "text", "general" and "time" but it didn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all your help will be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eduardo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 16:11:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-columns-with-hours-from-Excel/m-p/209073#M51812</guid>
      <dc:creator>lalohg</dc:creator>
      <dc:date>2015-07-22T16:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: importing columns with hours from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-columns-with-hours-from-Excel/m-p/209074#M51813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1- You can only import one sheet a a time.&lt;/P&gt;&lt;P&gt;2- What exact values do you get? You are not getting years, you are getting numbers. What examples of these numbers can you provide?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 02:52:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-columns-with-hours-from-Excel/m-p/209074#M51813</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-07-24T02:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: importing columns with hours from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-columns-with-hours-from-Excel/m-p/209075#M51814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @lalohg can you show us a sample data. and the output you want. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 07:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-columns-with-hours-from-Excel/m-p/209075#M51814</guid>
      <dc:creator>anan</dc:creator>
      <dc:date>2015-07-24T07:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: importing columns with hours from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-columns-with-hours-from-Excel/m-p/209076#M51815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;By using Libname we can bring all the spreadsheets in excel workbook to SAS environment in the form of datasets.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The spreadsheets names will be the Dataset names followed by $.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;For example if Sample.xls is the workbook that consists of Acc, AccNums, CustIds as spreadsheets then if you use libname statement then&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Acc$, AccNums$, CustIds$&lt;/SPAN&gt; will be the dataset names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;Libname Libref Excel "Path\Sample.xls";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Libref is a user defined name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 08:09:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-columns-with-hours-from-Excel/m-p/209076#M51815</guid>
      <dc:creator>MadhuKorni</dc:creator>
      <dc:date>2015-07-24T08:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: importing columns with hours from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-columns-with-hours-from-Excel/m-p/209077#M51816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Chris,&lt;/P&gt;&lt;P&gt;You are right I don't get years I get dates 29DEC1899 or mostly 30DEC1899 for all entries.&lt;/P&gt;&lt;P&gt;Hour columns in Excel range from 0:00:00 to 23:59:00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 12:26:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-columns-with-hours-from-Excel/m-p/209077#M51816</guid>
      <dc:creator>lalohg</dc:creator>
      <dc:date>2015-07-24T12:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: importing columns with hours from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-columns-with-hours-from-Excel/m-p/209078#M51817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe that 30Dec1899 is how SAS receives an Excel date of 0 (which Excel in Microsoft,s infinite will display as January 0, 1900). Since the algorithm works for Excel 1/1/1900 (value of 1) then subtract one day from 1/1/1900 you get 12/30/1899. Except Excel doesn't really use dates prior to 1/1/1900.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test this by typing a 0 into a cell in Excel then format as a date.&lt;/P&gt;&lt;P&gt;also Type a date prior to 1/1/1900 and then try to convert to a basic number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 15:42:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-columns-with-hours-from-Excel/m-p/209078#M51817</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-07-24T15:42:20Z</dc:date>
    </item>
  </channel>
</rss>

