[英]How do I retrieve an Excel cell value in another cell, as text, formatted as in the origin cell?
I have 2 cells with custom currency formatting. 我有2个具有自定义货币格式的单元格。
I would like to display a text next to their sum, which describes the sum being made. 我想在它们的总和旁边显示一个文本,该文本描述正在进行的总和。
So I would like to write = "" & textAsDisplayed(A1) & "+" & textAsDisplayed(A2)
所以我想写
= "" & textAsDisplayed(A1) & "+" & textAsDisplayed(A2)
Does such a function exist in the worksheet or do I have to make a VBA function ? 工作表中是否存在这样的功能,还是我必须制作VBA功能?
Try this: Tested and works fine. 试试这个:经过测试,可以正常工作。 It will get the text and format it in Dollar(USA) Currency.
它将获取文本并将其格式化为Dollar(USA)Currency。
="" & TEXT(A1,"[$$-409]#,##0.0") & "+" & TEXT(A2,"[$$-409]#,##0.0")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.