Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conditional formatting based on previous cell

I have a list of times in a table that I want to apply some conditional formatting to. I just want them to turn different colours based on whether they're later or earlier than the time in the previous cell. I'm having trouble figuring out the appropriate rule though.

conditional formatting rules

More specifically I'm having trouble thinking of a formula for the rule that I can apply to the whole range of times given in the table. What I need is basically the condition =[current cell]>[current cell-1] and vice versa but don't know how to write this in a formula that I can apply as a rule for the whole range.

How to accomplish this?

like image 756
mlamp Avatar asked Sep 15 '25 00:09

mlamp


1 Answers

Custom Formula:

=B1<A1

Apply to:

B1:Z1

or

B:Z

Color:Green

Add another conditional formula for Red.


See my detailed explanation here

like image 151
TheMaster Avatar answered Sep 17 '25 02:09

TheMaster