Compare your sales ranking


To calculate rankings, people often think of using the RANK function. But can RANK compute rankings with conditions? It seems not. Which function should be used instead?

First, let's get to know the RANK function: The RANK function is a ranking function, most commonly used to find the rank of a value within a range. RANK function syntax: RANK(number, ref, [order])
  • number: the value whose rank is required.
  • ref: the reference range for ranking.
  • order: 0 or 1. 0 (default, can be omitted) ranks from largest to smallest; 1 ranks in ascending order.
If you want to compare your sales rank — i.e. add the condition "Salesperson = your name" — you'll find RANK cannot rank by condition.
First, let's get to know the SUMPRODUCT function.
  • This function is regarded as an all-purpose calculation tool. Given limited space, we'll only cover the core concepts. Here's the conclusion — remember it; a detailed explanation will come later.
  • The universal SUMPRODUCT formula is: =SUMPRODUCT((condition1)*(condition2)*...*sum_range)
  • It supports single- and multiple-condition summing. Therefore, in this example the expression inside SUMPRODUCT sums based on a given condition.
So how does SUMPRODUCT obtain the rank when comparing your sales? First, using H2 as an example, the formula is:
=SUMPRODUCT(($G$2:$G$33>G2)*($B$2:$B$33=B2))+1
The above formula has two conditions:
  1. $G$2:$G$33>G2 finds how many people's sales are greater than your own. For example, if 100 sales values are larger than yours, your rank is 100 + 1 = 101st.
  2. $B$2:$B$33=B2 narrows the range further, comparing only where Salesperson = your name.
Both conditions must be true to count how many are greater than G2 when comparing to the current person; adding 1 yields the person's rank. For example, $192 ranks 8th among Tom's 10 sales.

Download sample file


Comprehensive Technical Support Solutions

We provide a range of technical support solutions to meet your needs.
Explore our core services:

man and woman wearing headphones while working in the office

Get on-demand assistance with Microsoft Excel, Word and PowerPoint. Send your question via WhatsApp, and we will help you resolve it promptly.

serious diverse students looking at laptop

Join our Online Learning Group Facebook page. Explore more than 200 tutorials and a comprehensive library of instructional videos at your own pace.

woman in yellow blazer doing a presentation

Build your team’s skills with tailored corporate training programmes. Our courses are designed around your organisation’s needs and equip employees with practical, up-to-date tools.