有没有办法用公式多文字措辞? 另外如何将小数更改为0.00 ??
提前致谢!
当前工作代码
="Should be at " &CONCATENATE(NETWORKDAYS("3/4/2018",TODAY()-1)/35*(100))
我想在这样的公式之后添加措辞
="Should be at " &CONCATENATE(NETWORKDAYS("3/4/2018",TODAY()-1)/35*(100)) "% to Goal"
答案 0 :(得分:3)
您不需要&
的CONCATENATE()来执行此操作:
="Should be at " & TEXT(NETWORKDAYS("3/4/2018",TODAY()-1)/35*(100),"0.00") & "% to Goal"
TEXT
以0.00
格式
&
将每个部分连接成一个字符串。
要使用CONCATENATE:您可以将整个包裹起来并将&
替换为,
:
=CONCATENATE("Should be at ",TEXT(NETWORKDAYS("3/4/2018",TODAY()-1)/35*(100),"0.00"),"% to Goal")
但这比只使用&
答案 1 :(得分:3)
只是为了替代,
=TEXT(NETWORKDAYS("3/4/2018", TODAY()-1)/35, """Should be at ""0.0%"" to Goal""")
修改0.0%以符合您所需的百分比准确度。
要保留您的号码以供将来计算使用,
=NETWORKDAYS("3/4/2018",TODAY()-1)/35)
然后使用自定义数字格式
格式化单元格"Should be at "0.0%" to Goal"
'optional full format mask with +, -, zeroes as hyphens and red text (to note mistakes in input)
"Should be at "0.0%" to Goal";"Should be at "-0.0%" to Goal";_(* "-"_);[Red]_(@_)
这会在显示扩展文本时保留原始百分比以进行进一步计算。