I\'m trying to covert a coordinate value in excel to a row number and column number in openpyxl.
For example if my cell coordinate is D4 I want to find the correspon
What you want is openpyxl.utils.coordinate_from_string() and openpyxl.utils.column_index_from_string()
openpyxl.utils.coordinate_from_string()
openpyxl.utils.column_index_from_string()
from openpyxl.utils.cell import coordinate_from_string, column_index_from_string xy = coordinate_from_string('A4') # returns ('A',4) col = column_index_from_string(xy[0]) # returns 1 row = xy[1]