<?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: Accessing values in Excel with getValue in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/accessing-values-in-excel-with-getvalue/m-p/533802#M41821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This appears to be working, if I select the worksheet first Assignments$&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; import arcpy from arcpy import env arcpy.env.overwriteOutput = True&amp;nbsp; xcel = arcpy.GetParameterAsText(0) arcpy.AddMessage("Got Sheet")&amp;nbsp; rows = arcpy.SearchCursor(xcel) row = rows.next() arcpy.AddMessage("Got Rows")&amp;nbsp; while row: &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Start While") &amp;nbsp;&amp;nbsp;&amp;nbsp; # Loop through rowns and pull incident name from Incident_Name field &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Getting Assignment") &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Assignment = row.getValue("Assignment_Number") &amp;nbsp;&amp;nbsp;&amp;nbsp; Description = row.getValue("Description") &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage(Assignment) &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage(Description) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Received Assignment") &amp;nbsp;&amp;nbsp;&amp;nbsp; row = rows.next()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;just getting started, thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2012 19:54:37 GMT</pubDate>
    <dc:creator>JonPedder</dc:creator>
    <dc:date>2012-08-01T19:54:37Z</dc:date>
    <item>
      <title>Accessing values in Excel with getValue</title>
      <link>https://community.esri.com/t5/python-questions/accessing-values-in-excel-with-getvalue/m-p/533800#M41819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I'm reading in an Excel doc (xlsx) with arcpy and want to use row.getValue() to pull in the information by row and cell. I'm looking to use a SearchCursor() to access the excel file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My Excel doc is Assignments.xlsx and the first worksheet is named Assignment, which would be referenced in Arc as Assignment$&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure how to access/read data in the cells?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 19:30:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-values-in-excel-with-getvalue/m-p/533800#M41819</guid>
      <dc:creator>JonPedder</dc:creator>
      <dc:date>2012-08-01T19:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing values in Excel with getValue</title>
      <link>https://community.esri.com/t5/python-questions/accessing-values-in-excel-with-getvalue/m-p/533801#M41820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would suggest creating a tableview or permanent table depending on what you want to do with the data, and using a search cursor on that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 19:51:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-values-in-excel-with-getvalue/m-p/533801#M41820</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-08-01T19:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing values in Excel with getValue</title>
      <link>https://community.esri.com/t5/python-questions/accessing-values-in-excel-with-getvalue/m-p/533802#M41821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This appears to be working, if I select the worksheet first Assignments$&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; import arcpy from arcpy import env arcpy.env.overwriteOutput = True&amp;nbsp; xcel = arcpy.GetParameterAsText(0) arcpy.AddMessage("Got Sheet")&amp;nbsp; rows = arcpy.SearchCursor(xcel) row = rows.next() arcpy.AddMessage("Got Rows")&amp;nbsp; while row: &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Start While") &amp;nbsp;&amp;nbsp;&amp;nbsp; # Loop through rowns and pull incident name from Incident_Name field &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Getting Assignment") &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Assignment = row.getValue("Assignment_Number") &amp;nbsp;&amp;nbsp;&amp;nbsp; Description = row.getValue("Description") &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage(Assignment) &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage(Description) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Received Assignment") &amp;nbsp;&amp;nbsp;&amp;nbsp; row = rows.next()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;just getting started, thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 19:54:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-values-in-excel-with-getvalue/m-p/533802#M41821</guid>
      <dc:creator>JonPedder</dc:creator>
      <dc:date>2012-08-01T19:54:37Z</dc:date>
    </item>
  </channel>
</rss>

