I am trying to apply conditional formatting to a range of data, but not able to find a solution for it.
I am trying to do two types of formatting.
When a value in a row is less than the value in the previous column, I want the cell highlighted in red. For example, in the image below, cell
T2should be highlighted in red becauseT2<S2.![Sample 1]()
When a value in a row is greater than the value in the previous column, I want the cell to be highlighted in green. For example, in the image below,
Q4should be highlighted in green becauseQ4>P4.![Sample 2]()
The values are only compared to the previous column in the same row, but I want to apply the conditional formatting rule to all the rows in the table.

