I\'ve been looking around for a while now and cannot seem to find out how to do this. I\'ve got an excel sheet, which I\'m reading using OpenXML. Now the normal thing would
To start answer , I invite you to look at this first.
As I have explained there is NO easy way to extract Row and Column. The closest you get is the extraction of CellReference
of a cell which would have the form of A1
, B2
which is actualy COLUMN_ROW
format.
What you can do is extract Row and Column from the CellReference
. Yes this would need you to implement a method where you need to check char
by char
to verify for numbers and strings.
Lets say you have A11
, then when you need to index column you need to extract A
which would give as column 1
. Yes it's not that easy, but it's the only way unless you simply chose to count the columns when you scan/iterate through cells.
Again look at this questions answer which does the same thing.