简体   繁体   English

Excel 饼图 Colors

[英]Excel Pie Chart Colors

In the attached picture below, I have a pie chart I would like to change the color of it based on it's value.在下面的附图中,我有一个饼图,我想根据它的值更改它的颜色。 So if it is under 100 then red color, if it is above 100 it should be green color.因此,如果低于 100,则为红色,如果高于 100,则应为绿色。

在此处输入图像描述

Use two formula cells - one returns your value if it's less than 100, otherwise 0. The other returns the value if it's >100 otherwise 0. (You need to decide which one 100 exactly falls in) Plot both on your pie chart and format one point as red and the other as green.使用两个公式单元格 - 如果小于 100,一个返回您的值,否则返回 0。另一个返回值,如果它大于 100,否则 0。(您需要确定哪个 100 正好落在饼图和格式上)Plot一个点为红色,另一个为绿色。 Then the appropriate colour will always show based on your actual value然后适当的颜色将始终根据您的实际值显示

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

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