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

Data Analysis

  • How to count table rows in Excel
  • Move chart to a separate worksheet in Excel
  • How To Load Analysis ToolPak in Excel
  • Conflicting Multiple Conditional Formatting Rules in Excel
  • How To Create Pareto Chart in Excel

References

  • Merge tables with VLOOKUP in Excel
  • How to use Excel OFFSET function
  • Last row number in range
  • How to use Excel MMULT Function
  • How to get last column number in range in Excel

Data Validations

  • Excel Data validation don’t exceed total
  • Excel Data validation with conditional list
  • Excel Data validation date in next 30 days
  • Excel Data validation exists in list
  • 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.

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.

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.

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:

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

  • How to use Excel TRUE Function
  • SWITCH function example in Excel
  • Nested IF function example in Excel
  • Extract multiple matches into separate rows in Excel
  • Return blank if in Excel

Date Time

  • Get first day of previous month in Excel
  • Get days between dates ignoring years in Excel
  • Create date range from two dates in Excel
  • Convert Excel time to Unix time in Excel
  • Convert text timestamp into time in Excel

Grouping

  • How to randomly assign people to groups in Excel
  • Map inputs to arbitrary values in Excel
  • Group times into unequal buckets in Excel
  • Running count group by n size in Excel
  • Map text to numbers in Excel

General

  • How to set or clear a print area in Excel Worksheet
  • Count cells that contain errors in Excel
  • How to generate random times at specific intervals in Excel
  • Excel Autofill Cell Ranges, Copy, Paste
  • Check if range contains a value not in another range in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning