Finding the first instance of a given number in a long column from the bottom up

Marvo

Board Regular
Joined
Nov 27, 2023
Messages
174
Office Version
  1. 2021
Platform
  1. Windows
If you have a column of numbers, is there a way of looking up from the bottom to find the first instance of a number higher than the one you place in a box below?

So in the example picture, A11 would be the cell you'd want.
 

Attachments

  • Mr Excel.JPG
    Mr Excel.JPG
    22.3 KB · Views: 18

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi Marvo

Mappe15
ABC
112
213
323
412
517
619
716
821
916
1023
1113
1216
1321
1420
1525
1612
1715
1821
1924
2015
2113
2220
2325
2422
25
26
27
28212222
Tabelle1
Cell Formulas
RangeFormula
B28B28=LOOKUP(9^99,FILTER(A1:A24,A1:A24>A28))
C28C28=TAKE(FILTER(A1:A24,A1:A24>A28),-1)
 
Upvote 0
Hi Marvo

Mappe15
ABC
112
213
323
412
517
619
716
821
916
1023
1113
1216
1321
1420
1525
1612
1715
1821
1924
2015
2113
2220
2325
2422
25
26
27
28212222
Tabelle1
Cell Formulas
RangeFormula
B28B28=LOOKUP(9^99,FILTER(A1:A24,A1:A24>A28))
C28C28=TAKE(FILTER(A1:A24,A1:A24>A28),-1)
TAKE AND FILTER aren't available in Excel 2021. Perhaps:
=LOOKUP(9^99,IF(A1:A24>A28,A1:A24))

Confirm with CTRL-SHIFT-ENTER instead of just Enter.
 
Upvote 0
Thank you both.

Its not quite what I'm after, what I would like is a result of where to find the answer as the actual column is over 5,000 rows long.

So the preferred result in the example I gave would be A11. If I could get that I may even be able to create a hyperlink to take me to that cell?
 

Attachments

  • Mr Excel.JPG
    Mr Excel.JPG
    39.7 KB · Views: 7
Upvote 0
How about
Excel Formula:
=ADDRESS(XMATCH(A28+0.5,A1:A24,1,-1),1,4)
 
Upvote 0
Solution
Thanks Fluff, that's brilliant, job done. Thanks to the the guys too, I'll leave you all in peace.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
As a bit more feedback, excel changed your formula when I moved it to the big workbook to
=ADDRESS(XMATCH(A28+0.5,A1:A24,1,-1)*1,4)

It still works.
 
Upvote 0
You're missing a comma, & that should return an address in col D not A
 
Upvote 0
Yes, excel said it had made a change and would I accept it.

I've also hit a snag. I need to find the first time the main cell is higher than, not just one more than. I'm searching for more than 10 but the formula is looking for the first instance of 11.
I also have to do the reverse and find the first instance lower than 10, even if that is say 6 or 7.

Most times the result of this search wont matter as it will be very close to the bottom of the column, its only when the team is on a very good or very poor run that this will be used.
 
Upvote 0

Forum statistics

Threads
1,223,920
Messages
6,175,377
Members
452,638
Latest member
Oluwabukunmi

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