Excel Formula: Rank Based on Achieved% and Sales not Targeted (According to Attached Table)

Abstract: Rank sales performance by prioritizing achieved percentage over raw sales volume using a composite key formula to ensure fair comparison across different quotas.

Created: 2026-10-02 by
Use the RANK.EQ function to rank sales performance by prioritizing achieved percentage over raw sales volume. This approach ensures that targets are met before comparing absolute numbers, providing a fairer hierarchy for teams with different quotas. The formula combines ranking logic with conditional checks to handle edge cases like zero targets or blank cells effectively.

Understanding the Ranking Logic

When evaluating sales performance, raw revenue figures can be misleading if team members have significantly different targets. A salesperson who hits 100% of a small target may appear less valuable than someone at 50% of a massive target, even though the former is more efficient. To solve this, you must create a composite ranking key that weighs the achieved percentage higher than the absolute sales figure. This method aligns incentives with goal attainment rather than just top-line growth.

The core challenge lies in creating a single numeric value that Excel can sort or rank. If you simply rank by percentage, ties will occur when multiple people hit their goals exactly. You need a secondary sort criterion: the actual sales amount. By combining these two metrics into one sortable number, you can use standard ranking functions without complex helper columns or array formulas that might slow down your workbook.

Constructing the Composite Key

To rank based on achieved percentage first and then sales, you need to normalize both values so they occupy similar scales. Since percentages range from 0 to 1 (or 0% to 100%) and sales figures can be in thousands, direct addition would bury the percentage data. Instead, multiply the percentage by a large factor, such as 1,000,000, and add the sales figure. This creates a unique identifier where the integer part represents the scaled percentage and the decimal part represents the sales volume.

For example, if Employee A has 80% achievement and $50,000 in sales, the key becomes 800000 + 50000 = 850000. If Employee B has 90% achievement and $40,000 in sales, the key is 900000 + 40000 = 940000. Clearly, Employee B ranks higher because the percentage component dominates the total. This technique allows you to use the RANK.EQ function directly on this calculated column, treating it as a simple numerical list.

Implementing the Formula

Assume your data is structured with Column A for Names, Column B for Target Sales, Column C for Actual Sales, and Column D for Achieved Percentage. You should create a helper column, say Column E, to hold the composite key. In cell E2, enter the following formula:

=IF(B2=0, C2, (C2/B2)*1000000 + C2)

This formula checks if the target is zero to avoid division errors. If the target is non-zero, it calculates the percentage, scales it by multiplying by 1,000,000, and adds the actual sales. Note that we assume Column D already contains the percentage. If not, replace (C2/B2)*100 with your existing percentage calculation. Once this column is populated, drag the formula down for all rows.

Next, in Column F, apply the ranking function. In cell F2, use:

=RANK.EQ(E2, $E$2:$E$100)

This ranks each employee against the entire list. Lower scores indicate better performance if you want the highest achievers at the top. However, since our composite key increases with better performance, you may want to reverse the rank. To get Rank 1 for the best performer, use:

=COUNTA($E$2:$E$100) - RANK.EQ(E2, $E$2:$E$100) + 1

This subtracts the default rank from the total count, flipping the order so that the highest composite key receives Rank 1.

Handling Edge Cases

Real-world data often contains blanks or zeros. If an employee has no target assigned, the ratio is undefined. The IF statement in the composite key handles this by falling back to ranking solely on sales volume. This prevents #DIV/0! errors and ensures every row remains valid. Additionally, if you have negative sales returns, ensure your percentage calculation accounts for them, as negative percentages will drastically alter the composite key position.

Another common issue is ties. The RANK.EQ function assigns the same rank to identical values. If two employees have the exact same percentage and sales, they share a rank. For most business reporting, this is acceptable. If strict uniqueness is required, you could add a third-tier tie-breaker using employee ID or date, but this complicates the formula significantly. For standard sales leaderboards, the two-tier system described above is sufficient.

Optimizing Performance

While helper columns are easy to understand, they increase file size. If your dataset exceeds 10,000 rows, consider using dynamic arrays in newer versions of Excel. You can generate the entire ranked list in a single cell using LAMBDA or SORTBY functions. For instance, SORTBY(A2:C100, D2:D100, DESCEND, C2:C100, ASCEND) sorts the data directly without intermediate keys. However, for compatibility with older Excel versions, the helper column method remains the most robust and widely supported solution.

If you frequently update this report, format the composite key column as hidden or place it off-screen. This keeps the dashboard clean while preserving the underlying logic. Remember to lock the reference ranges in your RANK.EQ formula using dollar signs ($) to prevent shifting when copying down.

Frequently Asked Questions

What happens if two employees have the same achieved percentage?

The formula uses the actual sales amount as a tie-breaker due to the additive nature of the composite key. The employee with higher absolute sales will receive a higher composite score and thus a better rank, assuming you want higher sales to break ties.

Can I use this formula for quarterly rankings instead of annual?

Yes, simply adjust the data range in the RANK.EQ function to reflect only the current quarter's data. Ensure the helper column also recalculates based on quarterly targets to maintain accuracy across different time periods.

Why does my rank show #N/A?

This error usually occurs if the lookup range in RANK.EQ includes header text or if the cell references are broken. Ensure the range $E$2:$E$100 matches the data extent exactly and contains only numeric values.

How do I handle negative sales figures?

Negative sales will result in negative percentages if targets are positive. This will lower the composite key significantly, pushing the employee to the bottom of the list. Review your data cleaning process to ensure returns are handled correctly before applying the ranking formula.

Is there a way to rank without helper columns?

In Excel 365, you can use SORTBY combined with LET to perform multi-criteria sorting in one step. However, this requires a subscription to the latest Office version and may not be compatible with legacy systems used by some organizations.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More