You have errors because you do not receive data from cells, but a tuple link. In addition, alphanumeric indexes are already trying not to use, since openpyxl now tries to work with a table in the canonical addressing system (column number: row number).
Here I have for the test.xls file
A 1 12.01.1976 2 05.02.1980 3 30.11.2018 4 03.07.2007
this solution is obtained:
from openpyxl import load_workbook wb = load_workbook('test.xlsx', data_only=True) sheet = wb.active mycol=1 #номер столбца. A=1, B=2 и т.д myrow = list(range(1,5)) # диапазон строк (1:4) print(max(sheet.cell(row=x,column=mycol).value for x in myrow)) print(min(sheet.cell(row=x,column=mycol).value for x in myrow))
At the exit:
2018-11-30 00:00:00 1976-01-12 00:00:00
In general, everything works, although, of course, it would be better to translate the lines in the timestamp and then compare them.