TGViewer
Data Analytics Data Analytics @sqlspecialist ยท 111K subscribers
Post #2982 5.5K
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ: 
You have 2 minutes to solve this Excel problem.

You have the following data:
+----------+--------+
| Employee | Sales  |
+----------+--------+
| John     | 12,000 |
| Sarah    | 18,000 |
| Mike     | 15,000 |
| David    | 20,000 |
| Alice    | 10,000 |
+----------+--------+

How would you rank each employee based on their sales, with the highest sales getting Rank 1?

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

=RANK(C2,C2:C6,0)

๐Ÿ’ก Explanation:

The RANK() function returns the rank of a number within a list.

โ€ข C2 is the sales value to rank.
โ€ข C2:C6 is the fixed range containing all sales values.
โ€ข 0 ranks values in descending order, so the highest sales receive Rank 1.
โ€ข Copy the formula down to rank all employees.

This challenge tests your understanding of: โœ… RANK() 
โœ… Relative & Absolute References 
โœ… Ranking Data 
โœ… Excel Formulas 

๐ŸŽฏ Expected Output Example
+----------+--------+------+
| Employee | Sales  | Rank |
+----------+--------+------+
| John     | 12,000 | 4    |
| Sarah    | 18,000 | 2    |
| Mike     | 15,000 | 3    |
| David    | 20,000 | 1    |
| Alice    | 10,000 | 5    |
+----------+--------+------+

๐Ÿš€ Bonus (Handle Duplicate Rankings)

=RANK.EQ(C2,C2:C6,0)

Or use:

=RANK.AVG(C2,C2:C6,0)

RANK.EQ() assigns the same rank to duplicate values. 
RANK.AVG() assigns the average rank to duplicate values.

๐Ÿš€ Be comfortable using:

โ€ข RANK()
โ€ข RANK.EQ()
โ€ข RANK.AVG()
โ€ข LARGE()
โ€ข SMALL()

These functions are frequently used in sales reports, leaderboards, and performance dashboards.

โค๏ธ React with โค๏ธ for more Excel interview challenges!
  • โค 16
More from @sqlspecialist
  1. Oct 7, 2026๐Ÿ“Š Kandinsky 6.0 Video: AI-Powered Content Creation for Analysts The new Kandinsky 6.0 Vidโ€ฆ
  2. Oct 7, 2026Alternatively, depending on the Excel version and requirement, I could use functions suchโ€ฆ
  3. Oct 7, 2026๐Ÿ“Š Data Analyst Interview Series โ€” Part 5 Guys, let's continue our Data Analyst Interviewโ€ฆ
  4. Oct 7, 2026๐Ÿš€๐—ฃ๐—ฎ๐˜† ๐—”๐—ณ๐˜๐—ฒ๐—ฟ ๐—ฃ๐—น๐—ฎ๐—ฐ๐—ฒ๐—บ๐—ฒ๐—ป๐˜ ๐—ง๐—ฟ๐—ฎ๐—ถ๐—ป๐—ถ๐—ป๐—ด | ๐—•๐—ฒ๐—ฐ๐—ผ๐—บ๐—ฒ ๐—ฎ ๐—™๐˜‚๐—น๐—น๐˜€๐˜๐—ฎ๐—ฐโ€ฆ
  5. Oct 7, 2026๐Ÿ”Ÿ What is the difference between UNION and JOIN? Sample Answer: "JOIN combines columns frโ€ฆ
  6. Oct 7, 2026๐Ÿ“Š Data Analyst Interview Series โ€” Part 4 Guys, let's continue our Data Analyst Interviewโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’