<?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: How do I select by attribute to get the numbers from the attribute table list that has mixed strings/numbers ? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/how-do-i-select-by-attribute-to-get-the-numbers/m-p/569783#M32261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a number of possible options.&amp;nbsp; I have done a lot of work with AutoCAD files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a range of numbers or are the all single digit numbers?&lt;/P&gt;&lt;P&gt;if they are single digit simply do a search by attribute for TextString&amp;nbsp; = '1' or TextString = '2' etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or take your file and export the table to a text file.&amp;nbsp; Select the TextString column and press the Sort A to Z button.&lt;/P&gt;&lt;P&gt;Excel will sort your data by Integers first, then entries that start with&amp;nbsp; a decimal then by those that are a string but start with a number and then by those that start with a Character.&amp;nbsp; To be more technical about it Excel will sort by pure numbers first and then by lowest ASCII code value.&amp;nbsp; i.e. ALT 034&amp;nbsp; is "&amp;nbsp; or ALT 033 is ! so it would sort the ! first.&lt;/P&gt;&lt;P&gt;All that aside.&amp;nbsp; Now you can delete all the other columns in your Excel table other than the one with the numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is an example of what I did in Excel.&amp;nbsp; Pure numbers are sorted first then lowest ASCII character.&lt;/P&gt;&lt;P&gt; Now simply Delete all the rows in the table that are larger than a number.&amp;nbsp; Save your table.&amp;nbsp; Bring it back into ArcGIS and join the NumberColumn to the TextString keeping only matching numbers.&amp;nbsp; Export the joined Table as a new feature class.&lt;/P&gt;&lt;P&gt;IF your lower case characters are only single characters.&amp;nbsp; IF your feature with the TextString is a ShapeFile you can add a through z to the bottom of your number column in Excel and it should result in a case sensitive result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="361" style="width: 313px; height: 361px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;NumberColumn&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;0.1002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1004&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;9999999&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;!&amp;lt;1009_16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;"100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;.1002_17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;1001&amp;nbsp;&amp;nbsp; 15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Mar 2016 20:08:06 GMT</pubDate>
    <dc:creator>RobertBorchert</dc:creator>
    <dc:date>2016-03-14T20:08:06Z</dc:date>
    <item>
      <title>How do I select by attribute to get the numbers from the attribute table list that has mixed strings/numbers ?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-do-i-select-by-attribute-to-get-the-numbers/m-p/569782#M32260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not good at Select by Attributes but here I have a layer that has mixed strings/numbers&amp;nbsp; such as 1,2,3,...A,B.C,D,E , etc&amp;nbsp; They came from CAD layer I imported to File Geodatabase as a feature class.&lt;/P&gt;&lt;P&gt;I do know how to do simple query such as TextString = "A" to get all the A's only .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to select the numbers only from the attribute to export a new feature class.&amp;nbsp; I have to do the same with the lower capitals.&lt;/P&gt;&lt;P&gt;I could have open the attribute and highlighted them but it is time-consuming....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the picture sample from the layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="190317" alt="TextStringAttributes.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/190317_TextStringAttributes.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 18:21:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-do-i-select-by-attribute-to-get-the-numbers/m-p/569782#M32260</guid>
      <dc:creator>DEAF_PROBERT_68</dc:creator>
      <dc:date>2016-03-08T18:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I select by attribute to get the numbers from the attribute table list that has mixed strings/numbers ?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-do-i-select-by-attribute-to-get-the-numbers/m-p/569783#M32261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a number of possible options.&amp;nbsp; I have done a lot of work with AutoCAD files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a range of numbers or are the all single digit numbers?&lt;/P&gt;&lt;P&gt;if they are single digit simply do a search by attribute for TextString&amp;nbsp; = '1' or TextString = '2' etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or take your file and export the table to a text file.&amp;nbsp; Select the TextString column and press the Sort A to Z button.&lt;/P&gt;&lt;P&gt;Excel will sort your data by Integers first, then entries that start with&amp;nbsp; a decimal then by those that are a string but start with a number and then by those that start with a Character.&amp;nbsp; To be more technical about it Excel will sort by pure numbers first and then by lowest ASCII code value.&amp;nbsp; i.e. ALT 034&amp;nbsp; is "&amp;nbsp; or ALT 033 is ! so it would sort the ! first.&lt;/P&gt;&lt;P&gt;All that aside.&amp;nbsp; Now you can delete all the other columns in your Excel table other than the one with the numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is an example of what I did in Excel.&amp;nbsp; Pure numbers are sorted first then lowest ASCII character.&lt;/P&gt;&lt;P&gt; Now simply Delete all the rows in the table that are larger than a number.&amp;nbsp; Save your table.&amp;nbsp; Bring it back into ArcGIS and join the NumberColumn to the TextString keeping only matching numbers.&amp;nbsp; Export the joined Table as a new feature class.&lt;/P&gt;&lt;P&gt;IF your lower case characters are only single characters.&amp;nbsp; IF your feature with the TextString is a ShapeFile you can add a through z to the bottom of your number column in Excel and it should result in a case sensitive result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="361" style="width: 313px; height: 361px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;NumberColumn&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;0.1002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1004&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;9999999&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;!&amp;lt;1009_16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;"100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;.1002_17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;1001&amp;nbsp;&amp;nbsp; 15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 20:08:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-do-i-select-by-attribute-to-get-the-numbers/m-p/569783#M32261</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2016-03-14T20:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I select by attribute to get the numbers from the attribute table list that has mixed strings/numbers ?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-do-i-select-by-attribute-to-get-the-numbers/m-p/569784#M32262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're open to creating a new field and populating it for your selection, you can do (Python parser):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="191004" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/191004_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;solution stolen mostly from here: &lt;A href="http://stackoverflow.com/questions/354038/how-do-i-check-if-a-string-is-a-number-float-in-python" title="http://stackoverflow.com/questions/354038/how-do-i-check-if-a-string-is-a-number-float-in-python"&gt;http://stackoverflow.com/questions/354038/how-do-i-check-if-a-string-is-a-number-float-in-python&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 20:22:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-do-i-select-by-attribute-to-get-the-numbers/m-p/569784#M32262</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-03-14T20:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I select by attribute to get the numbers from the attribute table list that has mixed strings/numbers ?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-do-i-select-by-attribute-to-get-the-numbers/m-p/569785#M32263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;everyone should read the thread that Darren points to... there are some gems and cases in there that are really interested and it also exemplifies the general case that a great solution may still not apply to all cases and it really depends upon the nature of the data you have.&amp;nbsp; Fortunately the tabular structure of the data used within a GIS limits the possibilities and makes some of the choices simpler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worth a read... and a cavaet that the rating number has no reflection on how good the answer was but the debate around it.&amp;nbsp; Darren's posted solution will work nicely&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 22:10:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-do-i-select-by-attribute-to-get-the-numbers/m-p/569785#M32263</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-03-14T22:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I select by attribute to get the numbers from the attribute table list that has mixed strings/numbers ?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-do-i-select-by-attribute-to-get-the-numbers/m-p/569786#M32264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your data is stored in an sql database you could use PATINDEX('%[0-9]%', yourfieldhere ) &amp;gt; 0&lt;/P&gt;&lt;P&gt;This doesn't work for file geodatabases, or shapefiles I haven't tested on personal geodatabases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 15:17:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-do-i-select-by-attribute-to-get-the-numbers/m-p/569786#M32264</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-03-15T15:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I select by attribute to get the numbers from the attribute table list that has mixed strings/numbers ?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-do-i-select-by-attribute-to-get-the-numbers/m-p/569787#M32265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appreciate for all your input and I haven't tried this yet but I am sure I will remember this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 00:49:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-do-i-select-by-attribute-to-get-the-numbers/m-p/569787#M32265</guid>
      <dc:creator>DEAF_PROBERT_68</dc:creator>
      <dc:date>2016-03-23T00:49:03Z</dc:date>
    </item>
  </channel>
</rss>

