In this article, we will learn how to color unique record in a range. We use the Conditional Formatting option along with COUNTIF function in Microsoft Excel to get the desired outcome.
Conditional Formatting we use to highlight the important points with color in a report.
COUNTIF function we use to count how many times one word is appearing in a column.
Let’s take an example to understand how we can highlight the unique cells.
We have data in range C2:E11 in which column C contains Agents name, column D contains No. of sales and column E contains sales amount. Now, we want to highlight the unique Agents name with the color.
To highlight the Unique Agents name, follow the below given steps:-
- Select the data range C3:C11
- Go to Home Tab
- Select Conditional Formatting from Styles group
- From the Conditional formatting drop down menu, select New Rule
- New Formatting Rule dialog box will appear
- Click on “Use a formula to determine which cells to format” from Select a Rule type
- Write the formula in Formula tab
- Click on Format button
- “Format Cells” dialog box will appear
- In the Fill tab, choose the color as per the requirement
- Click on OK to Format Cells dialog box
- Click on OK to New Formatting Rule’s dialog box
All unique cells will get highlighted with the chosen color. This is the way we can highlight the unique text in a range by using the Conditional Formatting option along with COUNTIF function.
If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at info@exceltip.com