Home > other >  Conditional formatting if cells in row are less than header
Conditional formatting if cells in row are less than header

Time:02-04

I am trying to find a way to have a cell in column A turn yellow if any cell in the adjacent row is less than the value of its corresponding header. Please see my enter image description here

Then, for yellow you can use:

=COUNTIF(BYCOL($B5:$H5,LAMBDA(each,each<OFFSET(each,4-ROW(each),0))),TRUE)

It checks in each column if the value is smaller than in row 4, and counts the amount of TRUE values

enter image description here

And green should be by default, I understand. Is it useful?

  • Related