If I put number (like 2009, 345) into a Excel cell, I changed the Cell Format to “Text”.
When I use POI to read that cell, it still thinks it is a numerical cell.
Anyone had the same issue ? I am on POI 3.8.
Thanks !
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
POI isn’t magic, it’ll give you back what the excel file says is there!
In many cases, if you put a number into a cell, Excel will write that to the file as a number with formatting.
If you want a String back of what Excel displays, use DataFormatter to have the number formatted as per the styling rules on the cell