I have a PHP script which exports data from database to different formats, including as an Excel document. If a text field contains such a value as 123123123123, Excel, by default converts it to 1.23123E+11. Is it possible to prevent this absolutely unnecessary behaviour?
防止Excel以科学计数法格式化文本[关闭]
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
duanpie4763 2013-09-15 20:41关注If your goal is to store the number as text (and not do math on it later) and the PHP is exporting as a CSV, a simple solution would be to export the number as a
CONCATENATEfunction.=CONCATENATE(123123123123)renders as123123123123in text format when the CSV is opened in Excel (this is for Excel 2010).本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报