Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
If statement 使用嵌套的IF语句更改闪烁颜色_If Statement_Google Sheets_Nested If_Sparklines - Fatal编程技术网

If statement 使用嵌套的IF语句更改闪烁颜色

If statement 使用嵌套的IF语句更改闪烁颜色,if-statement,google-sheets,nested-if,sparklines,If Statement,Google Sheets,Nested If,Sparklines,我正试着根据截图的百分比给我的迷你们画上色码 我可以做两种颜色,但不能把我的头围绕在多个如果 B1可能有3个点 B2第一次得分了吗 B3第二次得分了吗 B4有一个两列的闪烁 B1可以在2到8之间变化。 希望根据以下单元格B1的百分比条件对每列有其自己颜色的迷你线进行颜色编码 >0%但=50%但=75%但100%为蓝色 我使用以下公式创建了两种可能的颜色,其中高颜色是蓝色或绿色 =if(B3>B1, SPARKLINE(B2:B3,{"charttype","column";"color"

我正试着根据截图的百分比给我的迷你们画上色码

我可以做两种颜色,但不能把我的头围绕在多个如果

B1可能有3个点

B2第一次得分了吗 B3第二次得分了吗 B4有一个两列的闪烁

B1可以在2到8之间变化。 希望根据以下单元格B1的百分比条件对每列有其自己颜色的迷你线进行颜色编码

>0%但=50%但=75%但100%为蓝色 我使用以下公式创建了两种可能的颜色,其中高颜色是蓝色或绿色

=if(B3>B1,
 SPARKLINE(B2:B3,{"charttype","column";"color","red";"highcolor","blue";"ymin",0}),
 SPARKLINE(B2:B3,{"charttype","column";"color","red";"highcolor","green";"ymin",0}))
IF语句的嵌套如下所示:

=IF(B3 > B1, SPARKLINE(B2:B3,
             {"charttype", "column"; "color", "red"; "highcolor", "blue";  "ymin", 0}), 
 IF(B3 < B1, SPARKLINE(B2:B3,
             {"charttype", "column"; "color", "red"; "highcolor", "green"; "ymin", 0}), 
 IF(B3 = B1, SPARKLINE(B2:B3,
             {"charttype", "column"; "color", "red"; "highcolor", "pink";  "ymin", 0}), )))
这可能有助于: