Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • How to get address of first cell in range in Excel
  • How to use Excel MATCH Function
  • How to get address of last cell in range in Excel
  • Excel Advanced Lookup using Index and Match Functions
  • Multi-criteria lookup and transpose in Excel

Data Analysis Examples

  • How to Create Area Chart in Excel
  • How to count table rows in Excel
  • Subtotal function in Excel
  • Excel Bar Chart
  • Conditional Formatting Rules in Excel

Data Validation Examples

  • Excel Data validation allow weekday only
  • Excel Data validation require unique number
  • Excel Data validation allow uppercase only
  • Excel Data validation date in next 30 days
  • Prevent invalid data entering in specific cells

Next largest match with the MATCH function in Excel

by

This tutorial shows how to  calculate Next largest match with the MATCH function in Excel using the example below;

Formula

=MATCH(value,array,-1)

Explanation

To lookup the “next largest” match in a set of values, you can use the MATCH function in approximate match mode, with -1 for match type. In the example shown, the formula in F7 is:

=MATCH(F6,length,-1)

where “length” is the named range B5:B11, and “cost” is the named range C5:C11.

Worked Example:   Position of max value in list in Excel

How this formula works

The default behavior of the MATCH function is to match the “next smallest” value in a list that’s sorted in ascending order. Essentially, MATCH moves forward in the list until it encounters a value larger than the lookup value, then drops back to the previous value.

Worked Example:   Find closest match in Excel

So, when lookup values are sorted in ascending order, both of these formulas return “next smallest”:

=MATCH(value,array) // default
=MATCH(value,array,1) // explicit

However, by setting match type to -1, and sorting lookup values in descending order, MATCH will return the next largest match. So, as seen in the example:

=MATCH(F6,length,-1)

returns 4, since 400 is the next largest match after 364.

Worked Example:   Perform case-sensitive Lookup in Excel

Find associated cost

The full INDEX/MATCH formula to retrieve the associated cost in cell F8 is:

=INDEX(cost,MATCH(F6,length,-1))

Post navigation

Previous Post:

Multiple matches in comma separated list in Excel

Next Post:

Partial match with VLOOKUP 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
  • SUBSTITUTE function: Description, Usage, Syntax, Examples and Explanation
  • Remove file extension from filename in Excel
  • LOWER function: Description, Usage, Syntax, Examples and Explanation
  • Remove leading and trailing spaces from text in one or more cells in Excel
  • How to create email address from name in Excel
  • Get days before a date in Excel
  • Display the current date and time in Excel
  • How to get same date next month or previous month in Excel
  • How to Calculate Age in Excel
  • Add decimal minutes to time in Excel
  • VDB function: Description, Usage, Syntax, Examples and Explanation
  • Calculate loan interest in given year in Excel
  • Bond valuation example in Excel
  • PRICE function: Description, Usage, Syntax, Examples and Explanation
  • Calculate payment periods for loan in Excel
© 2022 xlsoffice . All Right Reserved. | Teal Smiles