I have table like this:
+---------------------------------+
| Group1 |
+-------+--------+----------------+
| Item1 | Value1 | Compare |
+-------+--------+----------------+
| Item2 | Value2 | Compare |
+-------+--------+----------------+
| Item3 | Value3 | Do not compare |
+-------+--------+----------------+
| Group2 |
+-------+--------+----------------+
| Item1 | Value1 | Compare |
+-------+--------+----------------+
| Item2 | Value2 | Compare |
+-------+--------+----------------+
| Item3 | Value3 | Do not compare |
+-------+--------+----------------+
In a table like this i can have multiple groups with multiple items. I need to compare only items, where "Compare" is written. For example, i need to change the color of Value1 in Group2, if that value is grater thant Value1 in Group1. How can i do that? If there would be only one line to compare in each group, it would be easy, but i don't know what to do when there are multiple lines.