简体   繁体   English

excel显示小数百分比

[英]excel display decimal as percentage?

I am trying to create a formula that will allow me to convert a decimal to a percentage. 我正在尝试创建一个公式,该公式将允许我将小数转换为百分比。

Let me explain. 让我解释。

If a user enters a decimal between 0.1 to 0.10 These should display as negative percentages, ie -10% to -100% 如果用户输入的小数介于0.1到0.10之间,则应显示为负百分比,即-10%到-100%

Then 1.1 to 1.10 should display as 10% to %100. 然后1.1至1.10应显示为10%至%100。

Can someone please show me the correct way to do this? 有人可以告诉我正确的方法吗?

Percentage representation in Excel is created with formatting. Excel中的百分比表示是使用格式创建的。 For values between -100% to 100%, the underlying number is a value between -1 and 0 for negative percentages and between 0 and 1 for positive percentages. 对于介于-100%到100%之间的值,对于负百分比,基础数字是介于-1和0之间的值,对于正百分比,基础数字是介于0和1之间的值。

Assuming there's a typo in your question and you want values between 0 and 1 to show as a negative percentage, whereas values between 1 and 2 should show as positive percentages: This cannot be done with formatting alone. 假设您的问题中有一个错字,并且您希望0到1之间的值显示为负百分比,而1到2之间的值应该显示为正百分比:仅靠格式化是无法做到的。 Formatting cannot change the value of a number. 格式化不能更改数字的值。

You will need to use a formula to subtract a 1 from the value and then format the result as a percentage. 您将需要使用公式从值中减去1,然后将结果格式化为百分比。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM