попробовать вложенный 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}), )))
вставить в B3 :
=IF(G3=0, SPARKLINE(E3, {"charttype", "bar"; "max", C3; "color1", "#6AA84E"}),
IF(G3>0, SPARKLINE(E3, {"charttype", "bar"; "max", C3; "color1", "#2E86DE"}),
IF(G3<0, SPARKLINE(E3, {"charttype", "bar"; "max", C3; "color1", "#CC0000"}), )))