Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

 How to find and get the largest value based on multiple criteria in Excel?

In Excel, we can apply the max function to get the largest number as quickly as we can. But, sometimes, you may need to find the largest value based on some criteria, how could you deal with this task in Excel?

Find and get the largest value based on one criterion with array formula

Find and get the largest value based on multiple criteria with formula


Find and get the largest value based on one criterion with array formula


In this example, I will get the largest or second largest or nth largest value based on the product “Apple”, please do as this:

Enter this array formula: =LARGE(IF(A2:A14="Apple",B2:B14),1) into a blank cell where you want to output the result, and then press Ctrl + Shift +Enter keys together, and the largest value based on “Apple” has been extracted, see screenshot:

Note: In the above formula:

A2:A14="Apple": is the criterion that you want to get the largest value based on;

B2:B14: is the column data you want to get the largest value from;

The number 1: indicates that this formula will get the first largest value, if you want to get the second or nth largest value, just change it to 2 or n.


Find and get the largest value based on multiple criteria with formula

If there are multiple criteria, such as getting the largest value based on the product “Apple” and the region “West”, how to solve this job?

Please enter this formula: =SUMPRODUCT(LARGE(($A$2:$A$14="Apple")*($B$2:$B$14="West")*($C$2:$C$14),1)), and then press Enter key, and the matching value is extracted at once, see screenshot:

Note: In the above formula:

A2:A14="Apple", B2:B14="West": are the criteria that you want to get the largest value based on;

C2:C14: is the column data you want to get the largest value from;

The number 1: indicates that this formula will get the first largest value, if you want to get the second or nth largest value, just change it to 2 or n.


Recommended Productivity Tools for Excel

kte tab 201905

Kutools for Excel Helps You Always Finish Work Ahead of Time, and Stand Out From Crowd

  • More than 300 powerful advanced features, designed for 1500 work scenarios, increasing productivity by 70%, give you more time to take care of family and enjoy life.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Brings Tabbed Browsing and Editing to Microsoft Office, Far More Powerful Than The Browser's Tabs

  • Office Tab is designed for Word, Excel, PowerPoint and Other Office Applications: Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.