<?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 data from excel - some data points not importing in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167322#M43329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;smart man.&amp;nbsp; they are not nujmbers - and there is a trailing space in these cells.&amp;nbsp; (thanks didn't know the isnumber formula)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, barring going into each cell and fixing them, how can i fix this en masse?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(lots of people input numbers into this file so how can i make sure it imports properly in the future so i don't have to go and manually change their inputs) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2014 06:39:11 GMT</pubDate>
    <dc:creator>hamhocks</dc:creator>
    <dc:date>2014-11-12T06:39:11Z</dc:date>
    <item>
      <title>importing data from excel - some data points not importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167318#M43325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am importing a spreadsheet with a few thousand rows of data and two columns&lt;/P&gt;&lt;P&gt;All of the first field are importing properly but some of the second field are not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, this is what the import file would look like&lt;/P&gt;&lt;P&gt;SKU_NUMBER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PARENT_SKU&lt;/P&gt;&lt;P&gt;123&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 400&lt;/P&gt;&lt;P&gt;124&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 411&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;125&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 414 &lt;/P&gt;&lt;P&gt;130&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 418&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this is what might import&lt;/P&gt;&lt;P&gt;SKU_NUMBER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PARENT_SKU&lt;/P&gt;&lt;P&gt;123&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 400&lt;/P&gt;&lt;P&gt;124&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;125&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . &lt;/P&gt;&lt;P&gt;130&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 418&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out why some of the data points are getting missed.&lt;/P&gt;&lt;P&gt;I am assuming it's a formatting issue but all of the cells seem to have the same number format. (though it's weird, they appear slightly different -the ones not getting imported are sligthly indented on the right... but i can't find anywhere in excel that can tell me the difference in formatting - number format, alignement, font, etc all seems to be the same)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help would be much appreciated!&amp;nbsp; (tried to upload a sample file but not excel allowed!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 06:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167318#M43325</guid>
      <dc:creator>hamhocks</dc:creator>
      <dc:date>2014-11-12T06:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: importing data from excel - some data points not importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167319#M43326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you import? e.g. proc import, infile statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provide your code as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 06:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167319#M43326</guid>
      <dc:creator>RamKumar</dc:creator>
      <dc:date>2014-11-12T06:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: importing data from excel - some data points not importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167320#M43327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't use code to import that data.&amp;nbsp; I used the "import data" wizard from the SAS Enterprise menu.&lt;/P&gt;&lt;P&gt;both are number fields.&lt;/P&gt;&lt;P&gt;i thought both with BEST12 but looks like the first is F12 and the second is BEST12&amp;nbsp; (not sure what the difference is)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 06:21:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167320#M43327</guid>
      <dc:creator>hamhocks</dc:creator>
      <dc:date>2014-11-12T06:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: importing data from excel - some data points not importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167321#M43328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are saying that that the data points not being imported are indented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a possiblity that some of these are actually character values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do a check using the excel function ISNUMBER.&amp;nbsp; The Syntax is ISNUMBER(CELL REF).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 06:31:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167321#M43328</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2014-11-12T06:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: importing data from excel - some data points not importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167322#M43329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;smart man.&amp;nbsp; they are not nujmbers - and there is a trailing space in these cells.&amp;nbsp; (thanks didn't know the isnumber formula)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, barring going into each cell and fixing them, how can i fix this en masse?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(lots of people input numbers into this file so how can i make sure it imports properly in the future so i don't have to go and manually change their inputs) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 06:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167322#M43329</guid>
      <dc:creator>hamhocks</dc:creator>
      <dc:date>2014-11-12T06:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: importing data from excel - some data points not importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167323#M43330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is a file you only import from and not export to then I would use data validation in excel to limit the values to numeric only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you both import and export to this file then you are going to override the data validation as part of the export.&amp;nbsp; I would import the data as text.&amp;nbsp; I would then clean the text using the SAS COMPRESS function and convert it to numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could even do this if turn excel data validation on just to be safe...I would.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 06:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167323#M43330</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2014-11-12T06:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: importing data from excel - some data points not importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167324#M43331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA HAVE;&lt;BR /&gt;HAVE1 = "123A";&lt;BR /&gt;HAVE2 = "123 ";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WANT;&lt;BR /&gt; SET HAVE;&lt;BR /&gt; WANT1 = INPUT(COMPRESS(HAVE1,"1234567890","K"),8.);&lt;BR /&gt; WANT2 = INPUT(COMPRESS(HAVE2,"1234567890","K"),8.);&lt;BR /&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 06:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167324#M43331</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2014-11-12T06:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: importing data from excel - some data points not importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167325#M43332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Save the file as .csv and import it with a data step. Either SAS will tolerate the blanks, or you can do the initial input as character and then convert in the data step.&lt;/P&gt;&lt;P&gt;Saving to a text file also gives you the luxury of visually inspecting what data you try to read.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 07:16:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167325#M43332</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-11-12T07:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: importing data from excel - some data points not importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167326#M43333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, I would agree with KurtBremser, CSV + datastep is the way with most control over what you are doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I you are fortunate enough to be able to change the Excel file, then adding Validation into the spreadsheet upfront so they can only enter specific data will help a fair.&amp;nbsp; Excel however isn't a database/data entry/transport system and so you will still get problems, for instance you have no versioning on the data, no access control, no fixed structure etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other option is to have a VBA macro which will process the sheet and save a CSV for you.&amp;nbsp; Obviously you need to know a bit of VBA, but its relatively straight forward.&amp;nbsp; In the macro you could run every cell through a validation script and then export to CSV.&amp;nbsp; Here is a starter page: &lt;A class="active_link" href="http://msdn.microsoft.com/en-us/library/office/ee814737(v=office.14).aspx"&gt;http://msdn.microsoft.com/en-us/library/office/ee814737(v=office.14).aspx&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 09:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167326#M43333</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-12T09:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: importing data from excel - some data points not importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167327#M43334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add&amp;nbsp; an option&amp;nbsp; mixed=yes&amp;nbsp; into your code .&lt;/P&gt;&lt;P&gt;It seems 124 125 has some characters, but SAS force to take it as a numeric type variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 12:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/importing-data-from-excel-some-data-points-not-importing/m-p/167327#M43334</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-11-12T12:11:23Z</dc:date>
    </item>
  </channel>
</rss>

