Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to calculate correlation coefficient Correlation in Excel
  • Move chart to a separate worksheet in Excel
  • How to do a t-Test in Excel?
  • Chart Axes in Excel
  • Everything about Charts in Excel

References

  • How to get last column number in range in Excel
  • How to reference named range different sheet in Excel
  • Vlookup Examples in Excel
  • Merge tables with VLOOKUP in Excel
  • How to use Excel VLOOKUP Function

Data Validations

  • Excel Data validation unique values only
  • Excel Data validation whole percentage only
  • Excel Data validation with conditional list
  • Excel Data validation only dates between
  • Excel Data validation exists in list

nth largest value with duplicates in Excel

by

This tutorial shows how to calculate nth largest value with duplicates in Excel using the example below;

Formula

=MAX(IF(range<A2,range))

Explanation

To get the nth largest value in a data set with duplicates, you can use an array formula based on the MAX and IF functions.

Note: the LARGE function will easily return nth values, but LARGE will return duplicates when they exist in the source data.

In the example shown, the formula in E6 is:

=MAX(IF(range<E5,range))

Where  range is B5:B11

How this formula works

First, we get the largest value using the MAX function in E5:

=MAX(range)

Once we have the largest value established, we create another formula that simply checks all values in the named range  against the “last largest value”:

=MAX(IF(range<E5,range))

Note: this is an array formula and must be entered with control + shift + enter.

Any value that is lower than the “last largest” survives the test, and any value that’s not ends up FALSE. The resulting array looks like this:

{12;FALSE;FALSE;11;12;12;10}

As the formula is copied down the column, E5 increments at each row, so that MAX and IF return a new array. The MAX function continues to return the largest value in each array — the nth value in the series.

Post navigation

Previous Post:

How to use Excel CHOOSE Function

Next Post:

Customize Ribbon In Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel AND Function
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • OR function Examples in Excel

Date Time

  • How to calculate nth day of year in Excel
  • How to calculate Day of the Year in Excel
  • DATE function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate project start date based on end date in Excel
  • Sum through n months in Excel

Grouping

  • Group arbitrary text values in Excel
  • Running count group by n size in Excel
  • How to randomly assign data to groups in Excel
  • Group numbers with VLOOKUP in Excel
  • Group times into 3 hour buckets in Excel

General

  • How to calculate percent change in Excel
  • Print Excel Sheet In Landscape Or Portrait
  • Find Most Frequently Occurring Word in Excel Worksheet
  • Find, Select, Replace and Go To Special in Excel
  • Select, Insert, Rename, Move, Delete Worksheets in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning