Find the First Number In a Table of Sorted Numbers That is Smaller Than Another Number

Eb0la11

Board Regular
Joined
Apr 2, 2007
Messages
55
Office Version
  1. 365
Hey all, I have a calculated number that could be between 10-448 in Cell C1, I want to then compare that calculated number to a chart of numbers that are sorted smallest to largest and return the first number in that chart that is larger than my calculated number. Here is a picture of my chart of numbers it would look to. What would be a smooth formula to do that?
capture.png
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi,
What is your current XL version? You should update your Account Details to let other members know.
 
Upvote 0
For D365, XLOOKUP should do the job. For prior versions, I think INDEX/MATCH accomplish the same thing. Adjust the range references as needed.
Book1
ABCDEFG
1RowsHeight 55D365OlderVersions
21109090
3250
4390
54102
65142
76182
87194
98234
109274
11
Sheet5
Cell Formulas
RangeFormula
E2E2=XLOOKUP(TRUE,B2:B10>C1,B2:B10)
F2F2=INDEX(B2:B10,MATCH(TRUE,B2:B10>C1,0))
 
Upvote 0
A couple of other options depending on your excel version
Excel Formula:
=MINIFS(B3:B17,B3:B17,">"&C1)
Excel Formula:
=AGGREGATE(15,6,B3:B17/(B3:B17>C1),1)
 
Upvote 0
Thanks everyone, I updated my account details as well, we are running 365 and so I used the XLookup solution and think it will work. I'll plug that in and see if I have any issues, and if not I will try the others. Have a great weekend everyone!
 
Upvote 0

Forum statistics

Threads
1,215,212
Messages
6,123,655
Members
449,113
Latest member
Hochanz

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