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

Eb0la11

Board Regular
Joined
Apr 2, 2007
Messages
56
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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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,224,847
Messages
6,181,337
Members
453,032
Latest member
Pauh

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