=INDEX($I$2:$I$12062,MATCH(K2,$I$2:$I$12062,0)+1)

currently using this formula to get data

column I column J column k outcome column
Apple apple 1
1 a BERRY 3
2 z
3 a

Berry
3
2
1

my question is how can i change the formula to get the 'a' for apple instead of 1
thanks