Java-格式化数字并导出到excel文档

Java-格式化数字并导出到excel文档,java,currency,data-formatters,Java,Currency,Data Formatters,我从一个java类将值54666700导出到一个.xlsx文档。我想将其显示为$54666700,但在文档中它应存储为54666700,即,当我选择该列时,该值应选择为数字54666700 至于格式化为货币,我使用下面的代码 Long newsValue = 54666700 NumberFormat testFormat = NumberFormat.getCurrencyInstance(Locale.US); testFormat.setMinimumFractionDigits(0);

我从一个java类将值54666700导出到一个.xlsx文档。我想将其显示为$54666700,但在文档中它应存储为54666700,即,当我选择该列时,该值应选择为数字54666700

至于格式化为货币,我使用下面的代码

Long newsValue = 54666700
NumberFormat testFormat = NumberFormat.getCurrencyInstance(Locale.US);
testFormat.setMinimumFractionDigits(0);
String currency = testFormat.format(current);
//which will be $54,666,700
我找到了这个库,但不知道如何在那里获取单元格对象


非常感谢您的建议。

您在哪个地区工作?您是指该地区的国家/地区类型。。美国