Just ensure you use an absolute address to keep the input cell address from changing.

Excel formula: Highlight duplicate rows

Excel formula: Highlight row and column intersection exact match

Article image

Article image

Article image

Article image