![enter image description here](https://i.stack.imgur.com/BC35c.jpg)
Нужна помощь, чтобы получить значение объединенной ячейки из "List Price Total".
Как показано на рисунке выше, это объединенная ячейка, начиная с строки № 13 до 18.
Я использую приведенный ниже код для получения значения, но все равно получаю его как ноль.
CellRangeAddress mergedCell = new CellRangeAddress(12, 17, 9, 9);
int rowNum = mergedCell.getFirstRow();
int lastRow = mergedCell.getLastRow();
int colIndex = mergedCell.getFirstColumn();
for (int rowCounter = rowNum; rowCounter < lastRow; rowCounter++) {
Cell cell2Update = sheet.getRow(rowCounter).getCell(colIndex);
cell2Update.setCellType(Cell.CELL_TYPE_NUMERIC);
CellValue c = evaluator.evaluate(cell2Update);
if (null != c) {
Double lisPrice= c.getNumberValue();
if (lisPrice> 0) {
spreadheetResultData.setListPricetotal(df.format(lisPrice));
}
}
}
Пожалуйста, помогите мне получить значение объединенной ячейки.