动态格式化单元格(Dynamically format a cell)

编程入门 行业动态 更新时间:2024-10-26 15:30:41
动态格式化单元格(Dynamically format a cell)

我正在创建一个Excel Dashboard,它根据一些列表选择返回特定单元格中的Dollar Amounts。

我现在需要做的是让Cell动态格式化美元金额。

例如,如果它返回$ 3,152,234.25我希望它显示$ 3.2M,但如果它返回$ 756,253.67那么我希望它显示$ 756K等等。

有任何想法吗?

I am creating an Excel Dashboard that returns Dollar Amounts in a specific cell based on a few List Selections.

What I need to do now is have the Cell dynamically format the Dollar Amount.

For example, if it returns $3,152,234.25 I want it to display $3.2M, but if it returns $756,253.67 then I want it to display $756K and so on.

Any ideas?

最满意答案

您可以使用以下自定义格式:

[>百万] 0.0 ,, \米; 0.0,K

结果:

在此处输入图像描述

You could use the following custom formatting:

[>1000000]0.0,,\M;0.0,k

Result:

enter image description here

更多推荐

本文发布于:2023-08-06 12:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1448644.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:单元格   动态   Dynamically   format   cell

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!