How to find a number within a list (near match)

auto.pilot

Well-known Member
Joined
Sep 27, 2007
Messages
734
Office Version
  1. 365
Platform
  1. Windows
Sorry, I can't post a sample from this computer. I've tried using MATCH and a combination of INDEX MATCH, but this problem has me stumped.

Here's what I have:

Range A3:A102 is populated with numbers 1-100, Range B3:B102 is populated with another set of numbers, in numerical order from largest to smallest. In cell D4, I have a single number which is between the highest and lowest numbers in Column B. In cell D5, I'd like a formula which will return the number in column A (1-100), which corresponds with the closest match in column B. Other: The lookup number (D4) will rarely be an exact match to any number in column B & I'd like the result in my formula cell (D5) to round down the result. Example: If the result is between 48 and 49 in column A, then the formula in D5 would return 48.

Tough to explain without posting a sample, hope I have made myself clear.

Thanks

jim
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Excel Workbook
ABCDEFGH
1
2
31499Lookup #
42499460
53497
64494because 460 is between 456 and 474
75491
86481
97481
108481
119474
1210456
1311456
1412450
1513425
1614418
1715418
1816412
1917410
2018408
2119408
2220407
Sheet1
 
Upvote 0
That works.

Using -1 as the match type never occurred to me.

Thanks

jim
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,555
Members
452,928
Latest member
101blockchains

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top