AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1710302
Accepted
Techcosec Limited
Techcosec Limited
Asked: 2022-03-17 22:44:01 +0800 CST2022-03-17 22:44:01 +0800 CST 2022-03-17 22:44:01 +0800 CST

货币类型无法计算总和公式

  • 772

在此处输入图像描述

使用货币类型时,公式 =E2-F2 不起作用。但是当单元格格式化为数字类型时,同样的工作。货币类型也应该支持求和公式!

在此处输入图像描述

在另一张纸上,货币格式适用于总和公式:

在此处输入图像描述

我尝试通过选择 E 和 F 列并将它们的类型更改为货币来解决格式问题。但仍然无法计算总和。任何人都可以建议一种方法从 E 和 F 列中的所有单元格中删除 $ 符号,然后再试一次。手动从每个单元格中删除 $ 符号是最后一个选项。

应用 ISTEXT、ISNUMBER 函数后,确实 E3 单元格显示文本为真,数字为假。尽管单元格格式为数字,但这仍然存在。

在此处输入图像描述

在此处输入图像描述

上传到 OneDrive 并使用在线版 Excel 后,E3 单元格显示为数字和计算和。

microsoft-excel
  • 3 3 个回答
  • 546 Views

3 个回答

  • Voted
  1. Best Answer
    DMM
    2022-03-18T05:22:19+08:002022-03-18T05:22:19+08:00

    通常,Excel 非常容忍实际上已作为文本输入到单元格中的单元格条目,如果它们看起来像数字,则它们会被视为数字。在计算方面,这有时称为强制。Excel 非常擅长强制。

    因此,例如,如果="1"输入呼叫A1并="2"输入单元格B1,那么这两个单元格实际上都包含长度为 1 个字符的文本字符串。通常,文本字符串不能加在一起。如果A1包含a并B1包含b,则公式=A1+B1将导致#VALUE!值错误。A1但是,当输入看起来像在单元格中输入数字的文本字符串时B1,Excel 将使用强制将字符串“1”和“2”更改为数字 1 和 2,公式=A1+B1将显示结果 3 而不是#VALUE!错误。

    Coercion, however, has its limits (as you have found). One such limit may depend on specific settings. For example, my own version of Excel (Office 365) readily coerces text strings beginning with the £ and € symbols to numbers but does not coerce text strings beginning with the $ symbol to numeric values. In fact, if I type $1 as a cell entry, it is always treated and displayed as a 2 character text string and any arithmetic operations involving that cell result in a #VALUE! error.

    There is clearly something in my set up of Excel (or possibly even my set up of Windows) that is causing this behaviour. Possibly something similar is causing the results you are experiencing. You can check whether it any of the problem cells you report are being held as text by using the ISTEXT() function. If the cells are being held as text then it will be a coercion problem that is the source of your problem.

    • 2
  2. Lee
    2022-03-18T00:54:43+08:002022-03-18T00:54:43+08:00

    根据屏幕截图,单元格格式不正确,如下图所示,您可以看到单元格的正确货币格式: 在此处输入图像描述 在您的图片中,值在单元格的左侧,您应该更正单元格格式以获取不正确的值.

    • 1
  3. Hannu
    2022-03-18T08:58:38+08:002022-03-18T08:58:38+08:00

    Note that you may well have bare numbers in cells, and DISPLAY them as CURRENCY;
    Select (a) cell(s), then just hold CTRL, hit 1 and chose a display format; or create your own (custom format).

    在帮助中查找数字格式以查看您可以做什么,该TEXT()功能使用相同的格式。(在线;关于“数字格式代码”的 libreoffice 帮助,可能会有细微差别)

    • 1

相关问题

  • 带有“和”运算符的 Excel 数据透视表

  • 如何对整列使用 Excel 的 LENGTH 函数?

  • Excel 数组(2 个变量)

  • 如何从 WSL 打开 office 文件

  • VBA根据文件名重命名工作表

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    v15 为什么通过电缆(同轴电缆)的千兆位/秒 Internet 连接不能像光纤一样提供对称速度? 2020-01-25 08:53:31 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve