Read only Excel Cells with values python win32com
<p>I have an Excel Document like the following</p>

<pre><code>num value1 value2

1       A      100
2       B      
3       c      300
</code></pre>

<p>I want to iterate through <code>value2</code> for something with a value of over 200, and if it finds a value over 200, print <code>value1</code>. The big thing I'm having an issue with is telling it to stop the for loop once it reaches the end of the cells with text in it. </p>

<p>My loop would ideally be something like this:</p>

<pre><code>while columnA is not empty:
     if value2 &gt; 200:
           print (value1)
</code></pre>

<p>a few notes: I'm using win32com. <code>ColumnA</code> will never be blank within my data set. Thank you in advance for any help you can provide! </p>

<p>Edit: I will not always have the same number of rows for each document. I need it to automatically stop. Sorry for not being clearer</p>