Looking Up the Next Value after I locate the correct row of the value i need

55 views Asked by At

enter image description hereIf i have the unique number, how can i get the next value from column M? Say, my unique number is 10, then the value that i need is the value from 13. I attached the picture to illustrate.

enter image description here

I tried doing Offset function but doesn't work. Please help.

In the second screenshot, I used this:

=let(Σ,xmatch(K2,K:K)+1,+tocol(indirect("M"&Σ&":M"),1))

By the way, I am using Google Sheets

2

There are 2 answers

0
z.. On

Use INDEX-XMATCH with dynamic offset:

=LET(n,10,k,K2:K,m,M2:M,
     INDEX(m,XMATCH(n,k)+
       MMULT(
         TOROW(QUERY(FILTER(ROW(m),n<=k,""<>m),"limit 2")),
         {-1;1})))
6
rockinfreakshow On

You may try:

=let(Σ,xmatch(10,K:K)+1,
     +tocol(indirect("M"&Σ&":M"),1))

enter image description here