0

I am working on a spreadsheet in which I have ticker id in column B, members corresponding to those tickers in column I and rates in column J.

Rates change depending upon the no. of members, so one ticker ids can be in multiple rows.

In my output, I need the rate for a particular ticker id and member. It should lookup exact ticker id but if no. of members is not there in data then it should pick the largest value that is less than or equal to lookup_value.

I have attached snapshot of the data and desired output. any help will be highly appreciated.

I have tried

=INDEX(J2:J57,MATCH(1,(L2=B2:B57)*(L4=I2:I57),0))  

but this is looking for exact match however I need exact match for 1 criteria and greater than match for second

enter image description here

1 Answer 1

2

Use:

=INDEX($J$2:$J$57,MATCH(1,(L3=$B$2:$B$57)*(M3<=$I$2:$I$57),0))

This is an array formula and needs to be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode. If done correctly then Excel will put {} around the formula. If not done correctly you will receive #N/A

enter image description here

Sign up to request clarification or add additional context in comments.

4 Comments

thank you for your quick reply. =INDEX(J2:J57,MATCH(1,(L4=B2:B57)*(M4>=I2:I57),0)) this gives me a #N/A error
Then you did not use Ctrl-Shift-Enter instead of Enter when exiting edit mode like I stated int he answer. Be that as if may the formula was a little wrong, see edit for correct formula.
I had converted into array formula by pressing CSE. I had put > sign instead of < which is why it was showing an error. Anyway, thanks a lot for your help
@ManyaMohan - if this worked for you, you can flag it as The Answer by clicking the check mark left of the post, below the up/down arrows.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.