<?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 Import only values from Excel worksheet. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-only-values-from-Excel-worksheet/m-p/142267#M296786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using SAS Enterprise Guide 6.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use PROC IMPORT to import the &lt;STRONG&gt;values&lt;/STRONG&gt; from an Excel workbook with multiple worksheets. It's 32-bit Excel 2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBMS = Excel doesn't work, but DBMS =xlsx does. although the documentation says that the first alternative should be right. The second alternative I have found somewhere on the Internet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any comments&amp;nbsp; about the documentation on PROC IMPORT for SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The worksheet have values in somecells and fomulas, giving values in other cells. I only want the first category of values &lt;STRONG&gt;and&lt;/STRONG&gt; the second category of &lt;STRONG&gt;values&lt;/STRONG&gt; resulting from the formulas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if A1 = 14 and B1 = 6 and C1 = A1 / B1, where the value in C1 is formatted with 1 decimal, then I want to get the values 14, 6 and 2.3 imported. Not 14, 6 and 2.333......333.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2014 13:07:32 GMT</pubDate>
    <dc:creator>attjooo</dc:creator>
    <dc:date>2014-09-12T13:07:32Z</dc:date>
    <item>
      <title>Import only values from Excel worksheet.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-only-values-from-Excel-worksheet/m-p/142267#M296786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using SAS Enterprise Guide 6.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use PROC IMPORT to import the &lt;STRONG&gt;values&lt;/STRONG&gt; from an Excel workbook with multiple worksheets. It's 32-bit Excel 2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBMS = Excel doesn't work, but DBMS =xlsx does. although the documentation says that the first alternative should be right. The second alternative I have found somewhere on the Internet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any comments&amp;nbsp; about the documentation on PROC IMPORT for SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The worksheet have values in somecells and fomulas, giving values in other cells. I only want the first category of values &lt;STRONG&gt;and&lt;/STRONG&gt; the second category of &lt;STRONG&gt;values&lt;/STRONG&gt; resulting from the formulas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if A1 = 14 and B1 = 6 and C1 = A1 / B1, where the value in C1 is formatted with 1 decimal, then I want to get the values 14, 6 and 2.3 imported. Not 14, 6 and 2.333......333.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-only-values-from-Excel-worksheet/m-p/142267#M296786</guid>
      <dc:creator>attjooo</dc:creator>
      <dc:date>2014-09-12T13:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Import only values from Excel worksheet.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-only-values-from-Excel-worksheet/m-p/142268#M296787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your example &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;2.333......333 is the unformatted (underlying) value in Excel, which is what SAS reads and imports.&amp;nbsp; You can apply a SAS format such as 16.1 or comma20.1 after the import to achieve what you want.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard import procedure in SAS does not carry across the format applied in Excel, although in the case of dates SAS uses the Excel format to identify the value as a date, import it and adjust the base date and apply a SAS date format which might or might not look similar to the Excel format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might be able to achieve what you want by exporting the data as a text file (CSV or tab delimited) and importing that into SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:27:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-only-values-from-Excel-worksheet/m-p/142268#M296787</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2014-09-12T13:27:14Z</dc:date>
    </item>
  </channel>
</rss>

