Merry Xmas forum.
In A1 I have 7.14
in B1 I have =VLOOKUP(A1,C1:D5,2,TRUE)
Range C1:D5 contains the values below.
7.4 1
7.2 2
7.0 3
6.8 4
6.6 5
I want to return 2 but I am returning 5.
Can someone help with this?
Thanks
Merry Xmas forum.
In A1 I have 7.14
in B1 I have =VLOOKUP(A1,C1:D5,2,TRUE)
Range C1:D5 contains the values below.
7.4 1
7.2 2
7.0 3
6.8 4
6.6 5
I want to return 2 but I am returning 5.
Can someone help with this?
Thanks
For an approximate match, the lookup values need to be in ascending order. Try INDEX MATCH with a -1 match.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Because C1:C5 is decreasing, try MATCH instead:
=INDEX(D1:D5,MATCH(A1,C1:C5,-1))
Quang PT
Spot on guys.
Many thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks