import openpyxl
import re
# 'A1,AB12'などのセルアドレスから列Aと行12を取得する関数
def get_row_col(cellAdress):
m = re.search('(\D*)(\d*)', cellAdress)
col = m.group(1) # 'A'
row = m.group(2) # '1'
col_int = openpyxl.utils.column_index_from_string(col) # 1
row_int = int(row) # 1
return col_int, row_int
get_row_col('A34')
# (1, 34)
# Excel Python 自動化の基本P62