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

Data Analysis

  • How to create running total in an Excel Table
  • Everything about Charts in Excel
  • How to Create One and Two Variable Data Tables in Excel
  • How to combine 2 or more chart types in a single chart in Excel
  • How to Create Area Chart in Excel

References

  • Multi-criteria lookup and transpose in Excel
  • Two-column Lookup in Excel
  • Find closest match in Excel
  • How to get last row in mixed data with blanks in Excel
  • Excel Advanced Lookup using Index and Match Functions

Data Validations

  • Excel Data validation don’t exceed total
  • Excel Data validation number multiple 100
  • Excel Data validation specific characters only
  • Excel Data validation allow weekday only
  • Excel Data validation whole percentage only

Lookup latest price in Excel

by

This tutorial shows how to Lookup latest price in Excel using the example below;

Formula

=LOOKUP(2,1/(item="hat"),price)

Explanation

To lookup the most recent price for an item in a list, where latest items appear last, you can use a formula based on the LOOKUP function. In the example show, the formula in G7 is:

=LOOKUP(2,1/(item=F7),price)

where item is the named range B5:B12, and price is the named range D5:D11.

How this formula works

The LOOKUP function assumes data is sorted, and always does an approximate match. If the lookup value is greater than all values in the lookup array, default behavior is to “fall back” to the last previous value. This formula exploits this behavior by creating an array that contains only 1s and errors, then deliberately looking for the value 2, which will never be found.

LOOKUP searches the array for a value of 2, falls back to the last 1, and returns a value at the corresponding position in the results array.

First, this expression is evaluated:

item=F7

When F7 contains “sandals” the result is:

{FALSE;TRUE;FALSE;TRUE;FALSE;FALSE;TRUE;FALSE}

which next serves as the divisor to 1, producing the final lookup array:

{#DIV/0!;1;#DIV/0!;1;#DIV/0!;#DIV/0!;1;#DIV/0!}

The lookup function looks for 2, then falls back to the last 1 (position 7 in the array), and returns the 7th item on the lookup array, a price of $15.

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

  • OR function: Description, Usage, Syntax, Examples and Explanation
  • How to use IFS function in Excel
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • SWITCH function example in Excel

Date Time

  • How to calculate months between dates in Excel
  • Convert decimal hours to Excel time
  • How to calculate project start date based on end date in Excel
  • Convert Excel time to decimal hours in Excel
  • Get age from birthday in Excel

Grouping

  • Group numbers with VLOOKUP in Excel
  • Group times into 3 hour buckets in Excel
  • Categorize text with keywords in Excel
  • Map inputs to arbitrary values in Excel
  • Group times into unequal buckets in Excel

General

  • Basic text sort formula in Excel
  • List worksheet index numbers in Excel
  • How to increase by percentage in Excel
  • Delete Blank Rows at Once in Excel
  • Find, Select, Replace and Go To Special in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning