excel - 当我格式化为货币时,Excel 单元格 $ 中的导入货币符号未“自动”转换
问题描述
我导入了一个在单元格内容中有 $ 符号的银行对账单。当我将单元格格式化为货币(美元)并从值中删除 $ 但具有显示的格式时,我期望 Excel 能够适应这一点。
然而,情况似乎并非如此。我必须手动删除符号,然后格式化为货币。我需要这样做才能使简单的列总和起作用。
关于用于转换 csv 数据的正确“过程”的任何想法,所以我不必进行查找/替换?
重现步骤:
- 打开 CSV,其中每个单元格中都有 $ 的列作为值的前缀。
- 将列总和添加到列的底部
- 将列格式转换为货币
- 预期:货币格式列中的美元总和。
- 实际:求和单元格中不显示任何值。
Windows 10 上的 Excel 365 版本 2101
谢谢
解决方案
In general, it is best to import csv
files. Then you can inform Excel of the data type before it is processed (often incorrectly).
In O365
, I suggest you start with Data=>Get&Transform=>from Text/CSV
. If any columns seem to have been interpreted incorrectly, you can select Transform
. Otherwise, just accept the defaults.
If the CSV file is updated, the query can also be updated.
The legacy wizard is also available, but is less flexible
推荐阅读
- flutter - 为什么检查 double 是否为 NaN 在 Dart 中不起作用?
- html - Flex 行在平板电脑上转换为 flex 列
- android - Kotlin 中的 PlacePicker
- javascript - .splice() 不断删除数组的最后一项
- spring - Spring循环依赖会延迟应用程序启动时间吗?
- c# - 如何计算数组的长度而不包括 NULL?
- python - Pandas 分析隐藏选项卡
- jenkins - 如何在 Jenkins 管道中使用自定义 Dockerfile 名称?
- python - 如何创建一个基于某些列不是的新列?
- terraform - 如何循环自定义模块