I'm creating a program that takes an Excel file and parses it and utilizes the info and creates a text file. In one of the columns in Excel it has number separated by a dash. (123-23). When I get the values from the cell, I get weird info in most of the cells.
CONCATENATE(LEFT(RIGHT(H639,5),3),"-",RIGHT(H639,2)
is coming out instead of 123-23
.
for (Row r : s) {
Cell c = r.getCell(locIdColumnNumber);
Cell d = r.getCell(lidColumnNumber);
DataFormatter formatter = new DataFormatter();
String val = formatter.formatCellValue(r.getCell(rsidColumnNumber));
System.out.println(val);
}