You will be redirected back to the New Formatting Rule window and will be given a preview of the formatting you have selected. After having specified the format you want click OK. Change the cell color by clicking on the Fill tab and selecting a colorħ. It is possible to set a different cell color for duplicate values by clicking the Fill tab and selecting a background color. Click on the Format button and specify the format you want to set. =countif($B:$B, $A1) Enter the formula provided in the text boxĦ. Proceed by entering the following formula in the ‘ Format values where this formula is true‘ box: Select the ‘Use a formula to determine which cells to format’ optionĥ. Select ‘ Use a formula to determine which cells to format‘ as a rule in the New Formatting Rule window. Select New Rule from the Conditional Formatting drop-down listĤ. Select the New Rule option from the Conditional Formatting button drop-down list. Select the Conditional Formatting button under the Home tabģ. Select the Conditional Formatting button on the Home tab. Highlight column A by clicking the column headerĢ. Click on the Column Header to highlight Column A. In this tutorial I will show you how to compare two columns in Excel so that the values that appear in both columns become highlighted and you can do something with those duplicate values.