Use Formula Is, rather than Cell Value Is, in your Conditional Formatting.
Specify an appropriate formula using the value in the previous cell, if
that's what you want to use to determine the colour of both cells. If you
use absolute addressing the same formula will do for both cells.