ExcelTip.com
ExcelTip.com
Account Icon Account Icon Account Icon
Google Exceltip.com
JOIN OUR NEWSLETTER
  and receive for joining:
Free eBook Learn More!
Free Excel ADD-IN
Free Weekly Excel Tip
4 e-books in cd-rom
F1 Formulas & Functions
F1 Formulas & Functions
F1 EXCEL
F1 eBook (Spanish)
F1 EXCEL
Financial Statements.xls
 

» Ranking Salespeople According To Sales Figure
Problem:

Range A1:B6 contains salesperson's names and their total number of sales.
We want to rank the top 3 salespeople according to their sales performance.

Solution:

Use the INDEX, MATCH, and LARGE functions as shown in the following formula:
=INDEX($A$2:$A$6,MATCH(LARGE($B$2:$B$6,A9),$B$2:$B$6,0))

Example:

Range1

Name______Total
Mike______500
Donna_____1000
David_____700
Mischelle_300
John______1200

Range2

Rank____Name
1_______John
2_______Donna
3_______David



Screenshot // Ranking Salespeople According To Sales Figure

Ranking Salespeople According To Sales Figure
Rate this tip
12 34 5
  RATING: 2.71
  VIEWS: 9300

READER COMMENTS (view all comments)


Range of numbers is off by one.
Russ911 wrote on June 07, 2005 12:21 EST
The formula shows the ranges as running from row 3 to row 7, while the data are in rows 2 to 6.

Also, the "LARGE" reference cell should be A9, not A12.

The formula should read:

=INDEX($A$2:$A$6,MATCH(LARGE($B$2:$B$6,A9),$B$2:$B$6,0))

Finally, that formula must be copied into each of the "Result" cells to see the person so ranked. I.e., copy it into cells B10, B11, etc.

Cordially,

Russ
Does not work if values are of equal ranking
jwellings wrote on September 01, 2005 18:12 EST
If two people have an identical sales value it repeats the first name twice, in positions 1 and 2.
Eg.
If sales are
Mike 1000
Donna 1000
Bill 900
Fred 800

The rankings shown are
1 Mike
2 Mike
3 Bill
ie. Donna is not shown.

This formula is almost what I need. Any ideas for a fix?
Reply: jwellings
Alan wrote on September 07, 2005 02:04 EST
Hi jwellings,

[QUOTE=jwellings]If two people have an identical sales value it repeats the first name twice, in positions 1 and 2.
Eg.
If sales are
Mike 1000
Donna 1000
Bill 900
Fred 800

The rankings shown are
1 Mike
2 Mike
3 Bill
ie. Donna is not shown.

This formula is almost what I need. Any ideas for a fix?[/QUOTE]You need to create a unique rank number like this (assume your date is in A1:B4) then enter the following in, say, C1 and copy down to C4:

=RANK(B1,B$1:B$4)+COUNTIF(B$1:B1,B1)-1

Then use that unique rank to pull out the names using INDEX or whatever you want to do.

HTH,

Alan.



REGISTERED USERS - Click here to post comments


GUESTS (Click here to register)
Name
Comment Title
Comments

Getting to Yes: Negotiating Agreement Without Giving In

Financial Peace: Revisited

Word 2002: The Complete Reference

Accounting and Financial Fundamentals for Nonfinancial Executives

Financial Shenanigans : How to Detect Accounting Gimmicks & Fraud in Financial Reports

Mortgages For Dummies®

RELATED MICROSOFT EXCEL TIPS


Convert PDF Files to Excel






Excel VBA books
Accounting books
Business Plans
MS Office books
Taxes books

VIEW ALL BOOKS


  Advertise With Us                               

Tips

Add-In in VBA | Applications - Word, Outlook in VBA | Array Formulas | Cells, Ranges, Rows, and Columns in VBA | Counting | Custom Functions | Custom Functions in VBA | Database Formulas | Database in VBA | Date & Time Formulas | Date & Time in VBA | Events in VBA | Excel 2003 | Excel Chart | Excel Consolidating | Excel Counting | Excel Custom Functions using VBA | Excel Customizing | Excel Data | Excel Dates | Excel Editing | Excel Files | Excel Filter | Excel Format | Excel Formula | Excel General | Excel Grouping and Outlining | Excel Importing Text Files | Excel Information | Excel Keyboard Shortcuts | Excel Loan Formulas | Excel Macros - VBA | Excel Pivot Tables | Excel Printing | Excel Range Name | Excel Security - Protection | Excel Sorting | Excel Style | Excel Subtotals | Excel Summing | Excel Text | Excel Time | Excel Tools | Excel Worksheet, Workbook | Files, Workbook, and Worksheets in VBA | Financial Formulas | Formating in VBA | General Topics in VBA | Import and Export in VBA | Information Formulas | Keyboard & Other Shortcuts in VBA | Keyboard Formula Shortcuts | Links between Worksheet and Workbooks | Links in VBA | Logical Formulas | Lookup Formulas | Mail - Send and Receive in VBA | Menus, Toolbars, Status bar in VBA | Modules, Class Modules in VBA | Other Q&A Formulas | Printing in VBA | Protecting in VBA | Summing | Text Formulas | User Forms, Input boxes in VBA | Using Loops | Working with Formulas |

Tips by Version

Microsoft Excel 97 | Microsoft Excel 2000 | Microsoft Excel 2002 | All Microsoft Excel Versions | New in Excel 2002 | New in Excel 2003 - Office 11

Website

Home | Tip of Hour | Recommended Tips | Most Viewed Tips | Tips by Version | Submit a Tip | My Tips
Microsoft Excel Tutorials | Excel Links | Write for Us | About Us | Search Results | Tip Archives | Excel Forum | Excel Forum Archives

Excel Book

Excel 97 Book | Excel 2000 Book | Excel 2002 Book | Excel XP Book | Book Store

Terms and Conditions of use
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Copyright © 2003 ExcelTip.com
Microsoft, Microsoft Excel is a U.S. registered trademark of Microsoft Corporation
Site Developed By: Varien