如何在Excel中使用单位缩写? [英] How to use unit abbreviation in Excel?

查看:278
本文介绍了如何在Excel中使用单位缩写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Excel科学数字格式如下:

  1,000,000>> 1.00E + 06 

330,000>> 3.30E + 05

如何转换为此格式:

  1,000,000>> 1M 

330,000>> 330K

(使用千,兆,毫里等)

解决方案

您可以通过右键单击单元格并选择格式单元格来为每个单元格使用自定义数字格式。



例如,如果要显示数百万用户使用以下自定义格式

 #,,M






对于数千人使用此格式

 #,K






如果要在两种数字格式之间动态更改,您可以设置条件。请注意,您一次只能设置两个条件,因此您无法处理所有可能的单位。



自定义格式将如下所示,以测试是否应使用K或M:

  [&999999]#,,M;#,K






编辑



As @Doug Glancy指出,您可以使用条件格式设置来设置数字格式,这些值将为您提供更多条件。这也是很好的,你可以很容易地将条件应用于一系列单元格。




Excel Scientific Number Formatting is Like This:

1,000,000  >> 1.00E+06

330,000    >> 3.30E+05

How Can I Convert To This Format :

1,000,000  >> 1M

 330,000    >> 330K

(Use kilo, mega, milli and etc)

解决方案

You can use custom number formats for each cell by right clicking the cell and choosing 'format cell'.

For example if you want to show millions use the following custom format

#,,"M"


For thousands use this format

#,"K"


If you want to dynamically change between two number formats you can set conditions. Note that you can only set two conditions at a time so you wont have enough to handle all possible units.

Custom format would look like this to test if it should use K or M:

[>999999]#,,"M";#,"K"


EDIT

As @Doug Glancy pointed out you can use conditional formatting to set number formats based on values which gives you more conditions. This is also nice in the sense that you can apply the condition to a range of cell's easily.

这篇关于如何在Excel中使用单位缩写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆