![]() |
Leading the way in Microsoft Office Development |
| Home | | | Excel | | | Word | | | PowerPoint | | | Consultancy | | | Feedback | | | Contact |
| Microsoft Excel > Conditional Formatting > Highlight Duplicate Entries | < Previous | Next > |
Step 1 - Highlight the cells |
This example shows you how to use Conditional Formatting to highlight all the duplicate entries in a list | ||
If you have a large list of data you may find it useful to be able to identify any duplicate entries in a list | ||
Select the cells you want to apply the conditional formatting to, in this case "B2:B13". |
![]() |
Step 2 - Enter Conditions |
Press (Format > Conditional Formatting) to display the Conditional Formatting dialog box. | ||
Select the "Formula is" in the first drop-down list and enter the formula "COUNTIF($B$2:$B$13,B2)>1". | ||
You can either type the cell references or you can use your mouse to select the cell ranges. | ||
You can also use the F4 key to toggle between the absolute and relative cell references. | ||
When using functions and especially cell references it is important to understand the significance between using absolute and relative references. |
![]() |
Press OK to apply the conditional formatting. |
![]() |
If you wanted to highlight the values that appeared twice you could change the formula to "=COUNTIF($B$2:B$13,B2)=2". | ||
If you wanted to highlight the values that appeared more than twice you could change the formula to "=COUNTIF($B$2:B$13,B2)>2". |
| Copyright © 2004-2007 Better Solutions Limited. All Rights Reserved. | < Previous | Top | Next > |