How to use conditional formatting to highlight rank in Microsoft Excel – TechRepublic

May 29, 2022 by The Beat Maker - 0 Comments

Register for your free TechRepublic membership or if you are already a member, sign in using your preferred method below.
We recently updated our Terms and Conditions for TechRepublic Premium. By clicking continue, you agree to these updated terms.
Invalid email/username and password combination supplied.
An email has been sent to you with instructions on how to reset your password.
By registering, you agree to the Terms of Use and acknowledge the data practices outlined in the Privacy Policy.
You will also receive a complimentary subscription to TechRepublic’s News and Special Offers newsletter and the Top Story of the Day newsletter. You may unsubscribe from these newsletters at any time.
Username must be unique. Password must be a minimum of 6 characters and have any 3 of the 4 items: a number (0 through 9), a special character (such as !, $, #, %), an uppercase character (A through Z) or a lowercase (a through z) character (no spaces).
How to use conditional formatting to highlight rank in Microsoft Excel
Your email has been sent
Microsoft Excel’s RANK.EQ() function ranks a set of values, but in a busy sheet, the top-ranking items might get lost. You can combine RANK.EQ() with a conditional formatting rule to highlight the top-ranking items so they’re easy to find.
Microsoft Excel’s RANK.EQ() function shows the relationship between values by ranking those items by some numerical value. Unfortunately, in a busy sheet, the highest or lower ranking items might be difficult to spot visually.
A PivotTable can help you wrangle a lot of data, but you might not want that structure. In this tutorial, I’ll show you how to use a conditional format to highlight the top-three ranking values. First, we’ll look at the two functions used and then we’ll get down to business by building a conditional formatting expression.
SEE: Windows, Linux, and Mac commands everyone needs to know (free PDF) (TechRepublic)
I’m using Microsoft 365 desktop on a Windows 10 64-bit system, but you can use older versions down to Microsoft Excel 2010. For your convenience, you can download the demonstration .xlsx. Excel for the web supports everything in this article.
The first step to using a conditional format to highlight the first three ranking values in a data set is to use RANK.EQ() as a helper column:
=RANK.EQ([@Views],[Views])
as you can see in Figure A. If you’re not using a Table object, use the following function:
=RANK.EQ(C3:C42, C3:C42)
Figure A
The result is a list of values — the ranking of each item in relationship to the other items. Try to find the top-three ranking values. It’s difficult, and you might make a mistake.
Before we continue, let’s look at how Excel’s RANK.EQ() function works. This function returns the rank of a number within a list of other numbers and uses the following syntax:
RANK.EQ(number, ref, [order])
An explanation of the arguments follows:
Microsoft Excel’s RANK.EQ() function replaces the older RANK() function but performs the same as RANK(). To learn more about RANK.EQ(), read How to calculate rank in an Excel sheet. RANK() is still around for backward compatibility only. You don’t need to update existing RANK() functions (at least not yet) but use RANK.EQ() going forward.
In a busy sheet, finding the numbers 1, 2 and 3 — the top three ranking values — would surely be difficult. That’s why you might want to add a conditional format rule to make these values stand out among the others.
Microsoft Excel’s OR() function will help us find the top-three ranking values: 1, 2 and 3. We’ll use the OR() function in our conditional format formula.
This function returns TRUE if any logic arguments are true. OR() uses the following syntax:
OR(logic1, logic2, logic3, …)
where the function has only one required argument – logic1. If even one logic argument returns true, the function itself returns TRUE. Now, let’s add the conditional format expression.
Using RANK.EQ() at the sheet level lets you see both the numerical rank of each value and the conditional formatting that will make the top-three ranking titles easy to find.
Now, let’s add the conditional format, which we’ll base on the RANK.EQ() results:
Figure B and Figure C show the results.
Figure B
Figure C
The conditional formatting exposes something you might easily miss if visually checking for the first three ranking titles: There’s a tie for third place!
The OR() function results are easy to understand, but let’s work through the first highlighted rank in row 20. When the function encounters the value 3, the OR function evaluates as follows:
OR($D20=1,$D20=2,$D20=3)
OR(FALSE,FALSE,TRUE)
TRUE
Consequently, the conditional formatting rule flips on the format for this record. You don’t have to stop at 3 though. You could easily rank the top 5, top 10, and so on by adding new logic arguments.
You can hide the helper column, but I shy away from doing so. It’s easy to forget that something out of sight is in play, which can lead to errors and frustration.
Earlier, I mentioned that RANK.EQ() has an optional argument to determine the sort. Our earlier use of RANK.EQ() omits the argument, which means an ascending sort. Subsequently, the values 1, 2 and 3 represent the three highest titles by view.
We can quickly reverse that by modifying the function to include the optional argument:
=RANK.EQ([@Views],[Views],1)
Instead of ranking the highest-ranking numbers as 1, 2 and 3, this function will identify the three lowest ranking articles, as shown in Figure D. In addition, the conditional formatting still works.
Figure D
To learn more about ranking in Microsoft Excel, you can read the following articles:
Be your company’s Microsoft insider by reading these Windows and Office tips, tricks, and cheat sheets.
How to use conditional formatting to highlight rank in Microsoft Excel
Your email has been sent
Your message has been sent
These 11 cloud-to-cloud solutions back up your organization’s data so you’ll be covered in the event of deletions, malware or outages. Compare the best online cloud backup services now.
You can use a mobile device to speak with another person directly through the Teams app. Lance Whitney shows you how to use this handy feature.
A phishing technique called Browser in the Browser (BITB) has emerged, and it’s already aiming at government entities, including Ukraine. Find out how to protect against this new threat.
With so many project management software options to choose from, it can seem daunting to find the right one for your projects or company. We’ve narrowed them down to these nine.
Start-ups, DARPA and Accenture Ventures announce research partnerships, new hardware and strategic investments.
IIoT software assists manufacturers and other industrial operations with configuring, managing and monitoring connected devices. A good IoT solution requires capabilities ranging from designing and delivering connected products to collecting and analyzing system data once in the field. Each IIoT use case has its own diverse set of requirements, but there are key capabilities and …
Recruiting an Operations Research Analyst with the right combination of technical expertise and experience will require a comprehensive screening process. This Hiring Kit provides an adjustable framework your business can use to find, recruit and ultimately hire the right person for the job.This hiring kit from TechRepublic Premium includes a job description, sample interview questions …
The digital transformation required by implementing the industrial Internet of Things (IIoT) is a radical change from business as usual. This quick glossary of 30 terms and concepts relating to IIoT will help you get a handle on what IIoT is and what it can do for your business.. From the glossary’s introduction: While the …
Procuring software packages for an organization is a complicated process that involves more than just technological knowledge. There are financial and support aspects to consider, proof of concepts to evaluate and vendor negotiations to handle. Navigating through the details of an RFP alone can be challenging, so use TechRepublic Premium’s Software Procurement Policy to establish …

source

Leave a Comment