Excel Powers Active! Vague Excel spreadsheet lookup problem inside.
On preview, I apologize for the messy table below but it should make enough sense. I've got a fairly large Excel table that looks something like this:
ColA ColB ColC ColD
1 Index1 Moretext Evenmore Don't_care...
2 Index2 Stilldifferent Veryfrustarting Don't_care...
3 .....
4 .....
What I would like to do is provide a search key, that should appear in Column B or Column C. And what gets returned is the value in Column A. So if I searched for 'Evenmore' I would get 'Index1' and if I searched for 'Stilldifferent' I would get 'Index2'.
To complicate things, I don't want to search beyond column C.
In reality, I actually have different strings in Columns B to I, and the value I want to look up is in Column A, J, K, or L. I have just simplified the diagram above for your comprehension pleasure. The number of rows is 255, but this could grow. Thanks in advance!
But, if you insist: In the Excel functions, under the "Database" category, there's a function DGET which will do what you want.
posted by orthogonality at 1:51 PM on July 21, 2006