Forum Discussion

Heapug's avatar
Heapug
Copper Contributor
Mar 19, 2022
Solved

Cond. format: each cell in one col based on same row in another col

I'm useless at Excel -- but I have a 3000+ row sheet in which I'd like to be able to highlight with text colour, where a cell in (say) col D differs from a cell in (say) col M in the same row. I'm ...
  • HansVogelaar's avatar
    Mar 19, 2022

    Heapug 

    Select the range you want to format conditionally, say D1:D100.

    The active cell in the selection should be the topmost cell, in this example D1.

    On the Home tab of the ribbon, click Conditional Formatting > New Rule...

    Select 'Format only cells that contain'.

    Leave the first drop-down set to 'Cell Value'.

    Select 'not equal to' from the second drop-down.

    In the box next to it, enter the formula =M1 where M is the column you want to compare to and 1 is the row number of the active cell.

    Click Format...

    Activate the Font tab.

    Select a font color.

    Click OK, then click OK again.

Resources