Cannot get a text value from a numeric cell “Poi”

前端 未结 11 2045
余生分开走
余生分开走 2020-12-07 22:17

I\'m trying to consume data from a spreadsheet in Excel, but always of this error, already tried formatting the worksheet to text and number and still the error persists.

11条回答
  •  再見小時候
    2020-12-07 23:12

    Using the DataFormatter this issue is resolved. Thanks to "Gagravarr" for the initial post.

    DataFormatter formatter = new DataFormatter();
    
    String empno = formatter.formatCellValue(cell0);
    

提交回复
热议问题