Reputation: 737
I search in the deepest parts on the internet for a google sheets relative conditional formating based on the cell above value, which means, that whenever i add a new value in the cell below, it will automatically check the cell above value and format the cell according to it.
I've finally came to the solution explained below.
The result will be something like this:
I hope it works for you, weary traveller.
Upvotes: 3
Views: 5478
Reputation: 7783
If the range of cells is A2:G, this rule will also work:
=AND(A2<>"",A2<A1) [RED]
=AND(A2<>"",A2>A1) [GREEN]
Upvotes: 6
Reputation: 737
=INDIRECT(ADDRESS(ROW();COLUMN())) > INDIRECT(ADDRESS(ROW()-1;COLUMN()))
=INDIRECT(ADDRESS(ROW();COLUMN())) < INDIRECT(ADDRESS(ROW()-1;COLUMN()))
.Upvotes: 15