paulevans85
New Member
- Joined
- Jul 8, 2008
- Messages
- 4
Ok so I have two spreadsheets: One has a column (say C) that is a list of text strings and the other has a big table made up of said text strings. This table has each of the strings organized by the group it belongs to with the name of that group as the column header. What I'm trying to do is match each string in the first spreadsheet to the second one and return the header of the column in which it appears.
Example:
File 1:
c d
1 text1 ?
2 text2 ?
3 text3 ?
File 2:
a b c
1 group1 group2 group3
2 text4 text3 text2
3 text4 text5 text2
4 text1 text6
So for C1 of the first file, I want to somehow output (say in D1) "group1."
The code I have thus far is
=INDEX('[File 2.xls]Sheet 1'!$A$1:$C$4,1,MATCH(C1,'[File 2.xls]Sheet 1'!$A$4:$C$4,FALSE))
but I couldn't figure out how to get it to iterate through the rows of data (without the use of a macro/VB) and so I kinda got the feeling I was on the wrong track.
Thanks in advance,
Paul
Example:
File 1:
c d
1 text1 ?
2 text2 ?
3 text3 ?
File 2:
a b c
1 group1 group2 group3
2 text4 text3 text2
3 text4 text5 text2
4 text1 text6
So for C1 of the first file, I want to somehow output (say in D1) "group1."
The code I have thus far is
=INDEX('[File 2.xls]Sheet 1'!$A$1:$C$4,1,MATCH(C1,'[File 2.xls]Sheet 1'!$A$4:$C$4,FALSE))
but I couldn't figure out how to get it to iterate through the rows of data (without the use of a macro/VB) and so I kinda got the feeling I was on the wrong track.
Thanks in advance,
Paul