Google Sheets – Color Row Based on Closest Date to Today

conditional formattingformulasgoogle sheetsgoogle-sheets-dates

If possible, I would like to have a color schema applied to the table.

For instance, the cell that has the closest date to today will be green
The cell that has the furthest date to today will be red.

Note the date in the cells automatically changes and it's not static.

date

Best Answer

  • red color: =IF(MIN($B$2:$B)=$B2, 1)

  • green color: =IF(MAX($B$2:$B)=$B2, 1)

    0

    0