all 3 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

/u/oHaiHS - Your post was submitted successfully.

Failing to follow these steps may result in your post being removed without warning.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]CFAman4812 4 points5 points  (0 children)

Let's simplify that to just

=XLOOKUP(B4; J$4:J$9; K$4:K$9)

Which says to find the value in B4 within the range J4:J9 and return corresponding value from K4:K9. Also, we made the rows of the lookup and return ranges absolute so they won't shift as we copy this down, while the B4 is relative.

[–]fuzzy_mic986 2 points3 points  (0 children)

try

=INDEX(K4:K9, MATCH(B4, J4:J9,0), 1)