» Retrieving the Closest Larger / Closest Smaller Values from a List when there is No Exact Match
CATEGORY - Lookup Formulas
VERSION - All Microsoft Excel Versions
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:
- Excel 2002 For Dummies®
- Lower Your Taxes - Big Time! : Wealth-Building, Tax Reduction Secrets from an IRS Insider
- Getting to Yes: Negotiating Agreement Without Giving In
- Microsoft Excel VBA Programming for the Absolute Beginner
- 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
- The Basics of Finance: Financial Tools for Non Financial Managers
No comments have been submitted.

