I have Excel Cell Address like A1,A2. So, how to access this cell programatically using poi3.6
another way is
row=mySheet.getRow(); cell=row.getCell();
But i have the address in the format of A1 ... so, how do I access those cell programatically
You can use the GetCellValue method to retrieve the value of a cell in a workbook. The method requires the following three parameters: A string that contains the name of the document to examine.
CellReference cr = new CellReference("A1"); row = mySheet.getRow(cr.getRow()); cell = row.getCell(cr.getCol());
See Quick Guide for more samples.
There's a cellReference function
E.g.
CellReference cellReference = new CellReference("B3");
(taken from the example here)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With