You can use the following Custom Formulas from Range C9:9. Feel free to interchange the background color that will fit your needs.
- For Green (Increasing),
=C9>OFFSET(C9,0,-1)
- For Red (Decreasing),
=C9<OFFSET(C9,0,-1)
- For Yellow (Same),
=C9=OFFSET(C9,0,-1)
OFFSET() lets you shift the rows/columns based on a reference cell.
In this custom formulas, I get the previous cell value referenced to the current cell by setting the offset_columns
to -1
.
Sample:
Output:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…