I have written the following formula:
=IF(COUNTA(OFFSET(E5,0,0,1,(COLUMN($K5)-COLUMN(E5)+1)))=0,FALSE,TRUE)
e5 - beginning of range, k5 - end of range
It basically colors all cells in the given range (row) until it finds the last non-empty cell.
At least it was supposed to. The problem is - it works as a cell formula, but fails completely when applied as conditional formatting. The formula stays the same.
=IF(condition, FALSE, TRUE)
can be rewritten as=NOT(condition)
. – jsheeran=COUNTA(...)<>0
or even:=0<>COUNTA(...)
– virolinountil it finds the last non-empty cell
- is it in the true / false line, or in the colored line? – virolino