首页 > 解决方案 > 当我格式化为货币时,Excel 单元格 $ 中的导入货币符号未“自动”转换

问题描述

我导入了一个在单元格内容中有 $ 符号的银行对账单。当我将单元格格式化为货币(美元)并从值中删除 $ 但具有显示的格式时,我期望 Excel 能够适应这一点。

然而,情况似乎并非如此。我必须手动删除符号,然后格式化为货币。我需要这样做才能使简单的列总和起作用。

关于用于转换 csv 数据的正确“过程”的任何想法,所以我不必进行查找/替换?

重现步骤:

  1. 打开 CSV,其中每个单元格中都有 $ 的列作为值的前缀。
  2. 将列总和添加到列的底部
  3. 将列格式转换为货币

Windows 10 上的 Excel 365 版本 2101

谢谢

标签: excelcurrency

解决方案


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


推荐阅读