Professional Documents
Culture Documents
How To Lookup The Name of The Highest Selling Sales Person in The Month. Learn Microsoft Excel - Five Minute Lessons
How To Lookup The Name of The Highest Selling Sales Person in The Month. Learn Microsoft Excel - Five Minute Lessons
highest selling sales person in the month. Learn Microsoft Excel | Five Minute Lessons
Home
Learn Microsoft Excel
Learn Microsoft Word
Learn Mailchimp
Forums
Contact Us
Home » Learn Microsoft Excel » How to lookup the name of the highest selling sales person in the month
Search
How to lookup the name of the highest selling sales person in the month
Share Tweet
In this lesson, we look at a specific example where you have a table of sales data, and you need to find out the name of the person who had the highest sales for the month. It's one of those
things that seems like it should be easy until you actually try to do it. Most people will immediately think of using VLOOKUP and somehow combining it with the MAX function, which
may work in some cases but not all.
The solutions we present here are not the only way of achieving this, but the do have the advantage of solving the problem with a single formula. The methods here could also be used for a
variety of other applications as well.
The challenge - write a formula to find the name of the salesperson with the highest sales
Suppose you have a table of sales data, and you want to find out the person that made the highest sales in the month:
Excel sales table for use with a formula that uses the ADDRESS, MATCH and MAX functions
We can use the MAX function within the VLOOKUP function to find the highest sales figure in the sales column using this formula:
=VLOOKUP(MAX(B2:B5),B2:B5,1,0) (you can learn more about VLOOKUP here and find out about the MAX function here)
The problem with this scenario is that the Salesperson column is to the left of the Sales column, but VLOOKUP can only return values to the right of the lookup column, but the
Salesperson column is to the left in this example. So we would either have to swap the columns around, or find another solution.
https://fiveminutelessons.com/learn-microsoft-excel/how-lookup-name-highest-selling-sales-person-month 1/5
12/15/2020 How to lookup the name of the highest selling sales person in the month. Learn Microsoft Excel | Five Minute Lessons
=INDEX(A2:A5,MATCH(MAX(B2:B5),B2:B5,0)) (you can learn more about using INDEX and MATCH instead of VLOOKUP here).
This formula:
=INDIRECT(ADDRESS(MATCH(MAX(B1:B5),B1:B5,0),1,4)) (you can learn more about using ADDRESS and INDEX here).
This formula:
1. Uses the MAX function to find the maximum value in the range B2:B5.
2. Uses the MATCH function to find which row in the range B2:B5 contains the maximum value we found in step 1.
3. Adds 1 to the value calculated in step 2, since our MATCH range, B2:B5, starts in row 2 of the spreadsheet.
4. Calculates the address of the cell in column A using the row number calculated in step 3.
5. Uses the INDIRECT function to return the value in the cell address found in step 4.
Dynamically determine which column in which to lookup the name within your formula
The example in this lesson is pretty simple - we have two columns of data, where we need to find a value in one column, and return the value from the same row in the other column.
However, most scenarios are likely to be more complicated than this. This raises the question - what if we don't know which column we need to look in to find the result we want? What if
we need to calculate which column as part of our formula?
It's possible to combine the techniques introduced in this lesson to achieve a solution where you can do just this. We won't cover it here, but you can find a worked example for this scenario
here.
Summary
In this lesson, we looked at how to find the maximum value in one column, and find the related value in the same row in another column.
We saw that the VLOOKUP and MAX functions would work as long as the column containing the related value is to the right of the column containing the lookup value.
We looked at the usual alternative to VLOOKUP, INDEX/MATCH, which solved our problem since it can look to in columns to the left of the lookup value as well as columns to the
right. For that reason, it's worth considering using INDEX/MATCH as a permanent alternative to VLOOKUP.
We then used INDEX/ADDRESS as another way to solve the problem. This was more complicated, but provides the potential for greater flexibility.
Finally, the goal of this lesson was to introduce some advanced methods of solving a specific problem in Excel. Hopefully you can use the techniques covered here to extend other aspects
of the way you use Excel.
Search now
Similar lessons
Use the ADDRESS function to find the address of any cell
Use the MATCH function in Excel to find the position of a value in a list
How to use Excel's INDEX function to find data in a table
How to use INDEX MATCH instead of VLOOKUP
How to use VLOOKUP in Excel
Email Address *
First Name *
Sign me up!
https://fiveminutelessons.com/learn-microsoft-excel/how-lookup-name-highest-selling-sales-person-month 3/5
12/15/2020 How to lookup the name of the highest selling sales person in the month. Learn Microsoft Excel | Five Minute Lessons
Add a comment to this lesson
Just as I was going through the list and the index-match use, a doubt came up...What if two sales persons show the same sales? How do you get the names of the others with the same sale
quantity??
reply
I want to map the dealer salesman category based on their state & no. of salesman as S, A, B, C category wise.
I worked out based on the no. of salesman using if condition, but again to link by different state I have to pay attention in excel. Can we have 1 single formula to pick the state as well.
reply
Add comment
Your Information
Your name *
E-mail *
The content of this field is kept private and will not be shown publicly.
Your Comment
Subject
Comment *
https://fiveminutelessons.com/learn-microsoft-excel/how-lookup-name-highest-selling-sales-person-month 4/5
12/15/2020 How to lookup the name of the highest selling sales person in the month. Learn Microsoft Excel | Five Minute Lessons
CAPTCHA
This question is to test whether or not you are a human visitor and to prevent automated spam submissions.
Save Preview
2010 - 2019 © Millionleaves Ltd. Website development and content by Millionleaves.com. View our Privacy Policy
https://fiveminutelessons.com/learn-microsoft-excel/how-lookup-name-highest-selling-sales-person-month 5/5