tonkerthomas
Board Regular
- Joined
- Feb 12, 2014
- Messages
- 56
I've tried to find another thread that deals with this topic, without success, so here goes:
I have a very large block of data: thousands of rows by hundreds of columns. I need to identify a known value in that block and return the value two cells to the right of it. I can use INDEX to ascertain which row of my data the value will be in, but it could be in any column. How do I locate the value, and how do I offset my return?
Example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Colhead1[/TD]
[TD]Colhead2[/TD]
[TD]Colhead3[/TD]
[TD]Colhead4[/TD]
[TD]Colhead5[/TD]
[TD]Colhead6[/TD]
[/TR]
[TR]
[TD]TeamA[/TD]
[TD]Dave[/TD]
[TD]Nigel[/TD]
[TD]Sarah[/TD]
[TD]Ryan[/TD]
[TD]Sally[/TD]
[TD]Gav[/TD]
[/TR]
[TR]
[TD]TeamB[/TD]
[TD]Eric[/TD]
[TD]Clive[/TD]
[TD]Agnes[/TD]
[TD]Bert[/TD]
[TD]Dora[/TD]
[TD]Rita[/TD]
[/TR]
[TR]
[TD]TeamC[/TD]
[TD]Katie[/TD]
[TD]Mary[/TD]
[TD]Jake[/TD]
[TD]Will[/TD]
[TD]Kiki[/TD]
[TD]Harry[/TD]
[/TR]
</tbody>[/TABLE]
I'm looking to find Clive, say, and want to return Bert. I know that Clive is in team B but I don't know where in the columns his name appears so I can't INDEX MATCH with Colhead2. I'm sure there's a way of doing this but I don't know how and an hour of Googling hasn't helped me. So, can you guys?
Thanks, as always, in advance for your help
Jeff
I have a very large block of data: thousands of rows by hundreds of columns. I need to identify a known value in that block and return the value two cells to the right of it. I can use INDEX to ascertain which row of my data the value will be in, but it could be in any column. How do I locate the value, and how do I offset my return?
Example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Colhead1[/TD]
[TD]Colhead2[/TD]
[TD]Colhead3[/TD]
[TD]Colhead4[/TD]
[TD]Colhead5[/TD]
[TD]Colhead6[/TD]
[/TR]
[TR]
[TD]TeamA[/TD]
[TD]Dave[/TD]
[TD]Nigel[/TD]
[TD]Sarah[/TD]
[TD]Ryan[/TD]
[TD]Sally[/TD]
[TD]Gav[/TD]
[/TR]
[TR]
[TD]TeamB[/TD]
[TD]Eric[/TD]
[TD]Clive[/TD]
[TD]Agnes[/TD]
[TD]Bert[/TD]
[TD]Dora[/TD]
[TD]Rita[/TD]
[/TR]
[TR]
[TD]TeamC[/TD]
[TD]Katie[/TD]
[TD]Mary[/TD]
[TD]Jake[/TD]
[TD]Will[/TD]
[TD]Kiki[/TD]
[TD]Harry[/TD]
[/TR]
</tbody>[/TABLE]
I'm looking to find Clive, say, and want to return Bert. I know that Clive is in team B but I don't know where in the columns his name appears so I can't INDEX MATCH with Colhead2. I'm sure there's a way of doing this but I don't know how and an hour of Googling hasn't helped me. So, can you guys?
Thanks, as always, in advance for your help
Jeff
Last edited: