All,
I am having trouble getting a value to return that I need from a table in a named range. I use VLOOKUP and HLOOKUP all the time, but in this case, the value I'm looking for is not the first column, and I need to return the 1st column value when I match the value anywhere in the table.
For example:
The data above shows that the range can have blank values, which is fine. But what I need to do is say, locate "John Deer", and then return "Bill". VLOOKUP won't let me do that and I've tried lots of things with INDEX and MATCH, but the help is less than clear on their usage, especially in combination. Can someone help me with this? (Assume Name is Name is column A, then B, C, etc, and John is on Row 1).
I have something like:
=INDEX(PersonLookup,MATCH(C21,PersonLookup,0),1)
Where PersonLookup is a named range including all the data above, and C21 = "John Deer" from elsewhere on my spreadsheet.
Best Regards,
Scott
"Everything should be made as simple as possible, and no simpler."![[hammer] [hammer] [hammer]](/data/assets/smilies/hammer.gif)
I am having trouble getting a value to return that I need from a table in a named range. I use VLOOKUP and HLOOKUP all the time, but in this case, the value I'm looking for is not the first column, and I need to return the 1st column value when I match the value anywhere in the table.
For example:
Code:
John Blue Tractor Case
Bill Green Wagon John Deer
Scott Purple Wheels Good Year Rubber
Mary Turtle Dead
The data above shows that the range can have blank values, which is fine. But what I need to do is say, locate "John Deer", and then return "Bill". VLOOKUP won't let me do that and I've tried lots of things with INDEX and MATCH, but the help is less than clear on their usage, especially in combination. Can someone help me with this? (Assume Name is Name is column A, then B, C, etc, and John is on Row 1).
I have something like:
=INDEX(PersonLookup,MATCH(C21,PersonLookup,0),1)
Where PersonLookup is a named range including all the data above, and C21 = "John Deer" from elsewhere on my spreadsheet.
Best Regards,
Scott
"Everything should be made as simple as possible, and no simpler."
![[hammer] [hammer] [hammer]](/data/assets/smilies/hammer.gif)