I’m trying to do a “backwards” lookup.
Please see JsFiddle here for show and where I have created a little table.
TopRow 1 2 3 4 5 6 A B T C K D E T F
With Vlookup-function I can easily look up what is on the table. But I need to get returned what is in
TopRow. E.g. If I select
C I will have
How do I do that?
Thanks in advance.
I am aware of this earlier question but it is numbers only:
Lookup Return Top Row
Assuming a datasetup like this:
In cell J2 and copied down is this formula:
Assuming your table is in A1:G7 you could set your formula up as follows:
I placed the row name that was being looked up in I2
Now you did not say what you wanted to happen if nothing was found, but you can wrap the whole thing in an IFERROR statement that will say “Not Found” or “All Blank”