<?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 excel-multiple variables in one cell in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/importing-excel-multiple-variables-in-one-cell/m-p/8667#M409</link>
    <description>Generically, you can import the data as a text string in one variable in SAS.  If PROC IMPORT won't skip the early rows, EGuide will.  Then you can use the various character functions to parse it out (INDEX..., and SUBSTR are likely tools you will need).</description>
    <pubDate>Tue, 07 Jun 2011 20:52:17 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2011-06-07T20:52:17Z</dc:date>
    <item>
      <title>importing excel-multiple variables in one cell</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-excel-multiple-variables-in-one-cell/m-p/8666#M408</link>
      <description>How do I import an excel file that has multiple variables in one cell? For instance &lt;BR /&gt;
1 &lt;B&gt;&lt;I&gt;1001 1 M Day 2 3/16/2011&lt;/I&gt;&lt;/B&gt;        &amp;gt;276	1.3	&amp;gt;1655	0.17&lt;BR /&gt;
&lt;BR /&gt;
The item in bold italic is in one cell. How do I separate it into multiple variables. The variables are id,day,sex,phase,date,a1,a2,a3,a4&lt;BR /&gt;
&lt;BR /&gt;
It has to look like&lt;BR /&gt;
obs id  day sex phase   date    a1  a2   a3   a4                   &lt;BR /&gt;
1 1001 1    M Day 2    3/16/2011		&amp;gt;276	1.3	&amp;gt;1655	0.17&lt;BR /&gt;
&lt;BR /&gt;
Also the observations in the excel start from 16th or 17th row. The first few rows has other info that are junk. How do I read in data from here and get rid of the junk above.&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot for your help.</description>
      <pubDate>Tue, 07 Jun 2011 18:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-excel-multiple-variables-in-one-cell/m-p/8666#M408</guid>
      <dc:creator>saslover</dc:creator>
      <dc:date>2011-06-07T18:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: importing excel-multiple variables in one cell</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-excel-multiple-variables-in-one-cell/m-p/8667#M409</link>
      <description>Generically, you can import the data as a text string in one variable in SAS.  If PROC IMPORT won't skip the early rows, EGuide will.  Then you can use the various character functions to parse it out (INDEX..., and SUBSTR are likely tools you will need).</description>
      <pubDate>Tue, 07 Jun 2011 20:52:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-excel-multiple-variables-in-one-cell/m-p/8667#M409</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-06-07T20:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: importing excel-multiple variables in one cell</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-excel-multiple-variables-in-one-cell/m-p/8668#M410</link>
      <description>If you can save the sheet as a CSV file, you'll find the INFILE and INPUT statements will allow you to parse the embedded columns.</description>
      <pubDate>Thu, 09 Jun 2011 07:19:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-excel-multiple-variables-in-one-cell/m-p/8668#M410</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-06-09T07:19:13Z</dc:date>
    </item>
  </channel>
</rss>

