<?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 specific Excel .xlsx rows in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Importing-specific-Excel-xlsx-rows/m-p/138445#M7224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc Import Datafile = "C:\Path\XL_FILE.xlsx" /* change path and name */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Out = SAS_XL_File&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS = Excel2007 /* .. if it is XL 2007 .. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Getnames=Yes; /* .. the first line will become the variable names */&lt;/P&gt;&lt;P&gt;&amp;nbsp; Range="Sheet1$B12:Y12";&amp;nbsp; /* don't forget the $ between sheet name and the Excel cells .. */&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 06:30:12 GMT</pubDate>
    <dc:creator>user24feb</dc:creator>
    <dc:date>2014-07-28T06:30:12Z</dc:date>
    <item>
      <title>Importing specific Excel .xlsx rows</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Importing-specific-Excel-xlsx-rows/m-p/138444#M7223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm relatively new to the DATA and PROC IMPORT steps of SAS (am more statistics oriented and have not managed importing data into SAS, specifically) and I'm wondering if there is a way to import specific rows into SAS. The problem with my Excel sheets is that they contain a lot of data in rows that I don't need. Also, the first line of the Excel sheet is not a list of variable names (I didn't design these spreadsheets, obviously!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically, this is what I need to do:&lt;/P&gt;&lt;P&gt;Import cell B2 (this is study ID#) and then import A10, B10 and A11, B11. Then I would like B12 - Y12 (these are time variables) and then B24 - Y24 (the values that correspond to B12-Y12 variables).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything in an A cell is a variable, but I don't necessarily NEED it as I could figure out what variable I'm looking at later on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are multiple worksheets in each workbook, and I am willing to read each workbook/worksheet in by hand if necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ordinarily I would run a macro/VBA in Excel to get this info but our security policies are such that we aren't allowed to run macros in Excel or Access!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All suggestions appreciated!9&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jul 2014 19:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Importing-specific-Excel-xlsx-rows/m-p/138444#M7223</guid>
      <dc:creator>copony</dc:creator>
      <dc:date>2014-07-27T19:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Importing specific Excel .xlsx rows</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Importing-specific-Excel-xlsx-rows/m-p/138445#M7224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc Import Datafile = "C:\Path\XL_FILE.xlsx" /* change path and name */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Out = SAS_XL_File&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS = Excel2007 /* .. if it is XL 2007 .. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Getnames=Yes; /* .. the first line will become the variable names */&lt;/P&gt;&lt;P&gt;&amp;nbsp; Range="Sheet1$B12:Y12";&amp;nbsp; /* don't forget the $ between sheet name and the Excel cells .. */&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 06:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Importing-specific-Excel-xlsx-rows/m-p/138445#M7224</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2014-07-28T06:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Importing specific Excel .xlsx rows</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Importing-specific-Excel-xlsx-rows/m-p/138446#M7225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is an duplicate question there is also an answer from pgstats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 06:37:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Importing-specific-Excel-xlsx-rows/m-p/138446#M7225</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-07-28T06:37:19Z</dc:date>
    </item>
  </channel>
</rss>

