如何在Excel单元格的表达式中设置货币格式?
我想弄清楚如何在 Excel 中的表达式中格式化结果。我
=IF(C30 > B30, "You would save $" & Format(C30-B30, "Currency") & "!", "No savings")
在单元格内写了,但不起作用。简而言之,我想要在表达式内格式化货币。
如何?
I am trying to figure out how to format the result in an expression in Excel. I wrote
=IF(C30 > B30, "You would save $" & Format(C30-B30, "Currency") & "!", "No savings")
inside the cell but it doesn't work. Simply put, I want the currency formatted inside the expression.
How?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您是否尝试过文本功能?
Have you tried the Text function?
许多年后,这也有效!
Many years later, this works, too!
使用这个公式
Use this formula
我认为您正在寻找连接函数。 Excel似乎没有您指定的格式功能。
这在 Excel 2007 中对我有用:
I think you are looking for the Concatenate function. Excel doesn't seem to have the Format function you have indicated.
This worked for me in Excel 2007: