Nov 16 2008

Find the 2nd Largest Value in a Range

Excel provides an easy way to list the k-th (first, second, third, etc.) largest number in a range.  We’ll also take a look at the opposite situation where you want to find the 2nd smallest value in a range, for example.

Large & Small Formulas
So let’s go ahead and take a look at the formulas:
 

=Large(range, k)

where range is the list of number you want to find the values of, and k is the largest number you want to find. Similarly, the Small formula looks like this:

=Small(range, k)

where range is again the list of numbers you want to find the values up, and k is the smallest number you want to find.  Now’s let’s look at a few examples.

Examples

Large and Small Formula Example

Large and Small Formula Example

 

 

 

=LARGE(B2:B6,2) will return 86, since 86 is the 2nd largest number in that range of numbers.

=LARGE(B2:B6,5) will return 12, since it is the 5th largest number in the range (also the smallest in this example)

=SMALL(B2:B6,1) will return 12, since it is the smallest number in the range.

=SMALL(B2:B6,3) will return 45 for the 3rd largest number.

** Excel Hints provides Excel Tips and Excel Help for All Levels.

More Excel Tips

Did you find this post helpful? Try signing up for our free daily tips.

Enter your email address: 

          

4 Comments on this post

Trackbacks

  1. Kevin said:

    AHT (Sec) AHT Ranking Amt of Day At Work
    640 65 5
    699 85 4
    852 117 5
    774 100 5
    737 94 5

    How do i return a value in the first colum as the lowest number if the matching row value is 5 in the third column?

    Thanks,
    Kevin

    January 23rd, 2009 at 1:43 pm
  2. john said:

    This is a tricky formula. Use the small formula in a similar manner to this:

    =SMALL((B1:B10=5)*A1:A10,ROWS(B1:B10)-COUNTIF(B1:B10,5)+1)

    where Column B contains the 4’s and 5’s and column A is the column of data you are trying to get the min from. After you enter this formula, you will have to hit Ctrl+Shirt+Enter to get it to work. Brackets {} will show up surrounding the formula in the formula bar if you have done it correctly.

    Hope this helps,
    John

    January 23rd, 2009 at 3:07 pm
  3. Joe said:

    Hi,
    I have a similar problem,
    How can I find the largest number in a range of numbers in a single col, and delete that number from the cell leaving the rest of the numbers unchanged?
    I will need to put this in a macro.

    I’m having trouble using MATCH, LARGE, ADDRESS.

    Thanks for the help
    JOe

    June 2nd, 2009 at 11:13 am
  4. john said:

    Hi Joe. This doesn’t sound like it would be too difficult to handle with a macro. Would you want to shift up the deleted number or just clear the cell of that value?

    June 3rd, 2009 at 8:46 pm

LEAVE A COMMENT

Subscribe Form

Subscribe to Blog

  • Get Expert Excel Help Today! 714.262.6893

Categories

Excel Poll of the Week

How often do you use Excel at work?

View Results

Loading ... Loading ...