title: Finding age from Date of Birth in an excel spreadsheet
body: <p>I've searched high and low, and cannot find an answer.</p>
  
  <p>Situation: I have a spreadsheet with dates of birth in column D.  I want to calculate the age of each person and put that age in column E.  I want to be able to do this for the entire spreadsheet.</p>
  
  <pre><code>import openpyxl as op
  import datetime
  
  for row in range(2, ws.max_row + 1):
      ws["D"] = ws["D" + str(row)].value
      born = datetime.datetime.strptime(ws["D"], "%m/%d/%y")
      ws["E" + str(row)].value = today.year - born.year - ((today.month, today.day) &lt; (born.month, born.day))
  </code></pre>
  
  <p>When I try to run that code block, I get     </p>
  
  <pre><code>`AttributeError: 'tuple' object has no attribute 'value'
  </code></pre>
  
  <p>which references the datetime.datetime.strptime call</p>
  
  <p>The code is pretty messy at this point, because I've tried a bunch of different things and can't get it to work.</p>