Hi All,
I'm hoping someone can help me make this work. My sample data is as follows:
A1:A6 = ("Letters",a,b,c,d,c)
B1:B6 = ("Numbers",20,30,40,50,60)
So basically two columns, one with the header "Letters" and one with the header "Numbers" with their respective content below them:
Letters | Numbers
a | 20
b | 30
c | 40
d | 50
c | 60
Next you need to accept that this data cannot be sorted before it is searched due to the way other people are using the source data in this sample table.
Now, I could use a forumla like the one below and it would return the value 40 (the first match for "c").
But, there are two "c" values in Column A, I'm looking for something that will return the second match and it's corresponding value (60). Does anyone know a robust formula for doing this?Index(A1:B6, Match("c",A1:A6,0), Match("Numbers",A1:B1,0))
The following formula achieves this:
But:=LOOKUP(COUNTIFS($A$1:$A$6,"c"),1/($A$1:$A$6="c"),$B$1:$B$6)
1. It's not as robust as Index(Match,Match) is when it comes to having columns and rows added
2. I don't understand how it works, specifically this bit:
How does that produce a [Lookup_Vector] for the lookup function?1/($A$1:$A$6="c")
Can anyone help me to 'merge' these two formulas into a robust solution to lookup the bottom most value in a table?
Thanks!
Bookmarks