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

Lookup and Reference Examples

  • Create hyperlink with VLOOKUP in Excel
  • Perform case-sensitive Lookup in Excel
  • Extract all partial matches in Excel
  • How to use Excel FORMULATEXT function
  • How to create dynamic named range with OFFSET in Excel

Data Analysis Examples

  • Filter Data Based on Date in Excel
  • Remove Duplicates Example in Excel
  • Error Bars in Excel
  • How to create running total in an Excel Table
  • Everything about Charts in Excel

Data Validation Examples

  • Excel Data validation whole percentage only
  • Excel Data validation allow uppercase only
  • Excel Data validation require unique number
  • Excel Data validation don’t exceed total
  • Excel Data validation date in specific year

INDEX and MATCH descending order in Excel

by

This tutorial shows how to calculate INDEX and MATCH descending order in Excel using the example below;

Formula

=INDEX(range1,MATCH(lookup,range2,-1))

Explanation

To retrieve values from a table where lookup values are sorted in descending order [Z-A] you can use INDEX and MATCH, with MATCH configured for approximate match using a match type of -1. In the example shown, the formula in F5 is:

=INDEX(C5:C9,MATCH(F4,B5:B9,-1))

where values in B5:B9 are sorted in descending order.

Worked Example:   How to get last row in numeric data in Excel

Context

Suppose you have a product that is sold in rolls of 100 feet, and orders are allowed in whole rolls only. For example, if you need 200 feet of material, you need two rolls total, and if you need 275 feet, you’ll need to buy three rolls. In this case, you want the formula to return the “next highest” tier whenever you cross over an even multiple of 100.

Worked Example:   Get address of lookup result in Excel

How this formula works

This formula uses -1 for match type to allow an approximate match on values sorted in descending order. The MATCH part of the formula looks like this:

MATCH(F4,B5:B9,-1)

Using the lookup value in cell F4, MATCH finds the first value in B5:B9 that is greater than or equal to the lookup value. If an exact match is found, MATCH returns the relative row number for that match. When no exact match is found, MATCH continues through the values in B5:B9 until a smaller value is found, then it “steps back” and returns the previous row number.

Worked Example:   Extract multiple matches into separate rows in Excel

In the example shown, the lookup value is 275, so MATCH returns a row number of 3 to INDEX:

=INDEX(C5:C9,3)

The INDEX function then returns the third value in the range C5:C9, which is $383.

Post navigation

Previous Post:

Get nth match with VLOOKUP in Excel

Next Post:

Join tables with INDEX and MATCH 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
  • Count Number of Words in Excel
  • MID, MIDB functions: Description, Usage, Syntax, Examples and Explanation
  • Extract word that begins with specific character in Excel
  • LEFT, LEFTB functions: Description, Usage, Syntax, Examples and Explanation
  • BAHTTEXT function: Description, Usage, Syntax, Examples and Explanation
  • Calculate number of hours between two times in Excel
  • Excel Date & Time Functions Example
  • DAYS function: Description, Usage, Syntax, Examples and Explanation
  • Calculate expiration date in Excel
  • Get project end date in Excel
  • How to set check register balance in Excel
  • How to calculate present value of annuity in excel
  • TBILLYIELD function: Description, Usage, Syntax, Examples and Explanation
  • PMT function: Description, Usage, Syntax, Examples and Explanation
  • PMT, RATE, NPER, PV and FV Financial Functions in Excel
Acronyms, Abbreviations, Initialism & What They Stand For
© 2021 xlsoffice. All Rights Reserved | Teal Smiles