You need to anchor the column references in the formula for the conditional format.
Assuming that your data range begins in A1
, you would set a conditional format on the range A1:F1
with a criterion formula $A1<>$A2
and your chosen format.
Then, you would copy the formatting of the row down the range (using Paste Special Format).