【发布时间】:2021-04-02 00:00:36
【问题描述】:
我在谷歌电子表格中有一些数据。 好像——
+----+--------------+---------+
|user|cos_similarity|item_rank|
+----+--------------+---------+
| u1| 0.004437351| 1|
| u1| 0.0043772724| 2|
| u1| 0.004322561| 3|
| u1| 0.004322561| 3|
| u2| 0.004557799| 1|
| u2| 0.004471699| 1|
| u2| 0.0043906723| 1|
| u2| 0.0043018474| 2|
| u2| 0.0042955037| 3|
+----+--------------+---------+
我想根据名为“item_rank”的列中的值对电子表格(所有行)进行颜色编码。
所以整行的颜色来自“item_rank”列中的值。颜色应该反映我通过特定列中的值定义的组。
预期输出-
Rows 1, 5, 6 should be having the same color because they have 'item_rank'=1.
Rows 2, 8 should be having the same color because they have 'item_rank'=2.
Rows 3, 4, 9 should be having the same color because they have 'item_rank'=3.
我如何做到这一点?
【问题讨论】:
标签: google-sheets formatting spreadsheet conditional-formatting