» Retrieving the Closest Larger / Closest Smaller Values from a List when there is No Exact Match
CATEGORY - Lookup Formulas
VERSION - All Microsoft Excel Versions
Problem: Listed in cells B2:B5 are values to look up in column A.
We want to create formulas to look up each value and, in the case of there being no exact match, return the closest larger and the closest smaller number that is in the list.
Solution:
To find the closest larger number or an exact match in column A, use the SMALL and COUNTIF functions as shown in the following formula:
=SMALL($A$2:$A$7,COUNTIF($A$2:$A$7,"<"&B2)+1)
To find the closest smaller number or an exact match in column A, use the LARGE and COUNTIF functions as shown in the following formula:
=LARGE($A$2:$A$7,COUNTIF($A$2:$A$7,">"&B2)+1)
Book Store:
Recommended Books:
- The Intelligent Investor: The Definitive Book On Value Investing, Revised Edition
- Marketing Plans
- H&R Block's Just Plain Smart(tm) Tax Planning Advisor: A year-round approach to lowering your taxes this year, next year and beyond
- Your First Business Plan: A Simple Question and Answer Format Designed to Help You Write Your Own Plan (3rd Ed)
- The Basics of Finance: Financial Tools for Non Financial Managers
- Special Edition Using Microsoft Excel 2002
No comments have been submitted.

