InfiniteDoors
New Member
- Joined
- Nov 25, 2013
- Messages
- 2
Okay, so what I'm trying to do is something similar to a v-look up, except I want to search by a column name.
For instance:
I have Excel file 1 with only two column names, "Fruits" in A1 and, "Vegetables" in D1. So it looks like:
[TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl63, width: 64"]Fruits
[/TD]
[/TR]
</tbody>[/TABLE]
Vegetables
In Excel file 2 I have again two column names (however there could be other names depending on the workbook) of, "Vegetables" in A1 and "Fruits" in F1. In this file I have items listed under vegetables and fruits. So it looks like:
[TABLE="width: 77"]
<tbody>[TR]
[TD]Vegetables[/TD]
[/TR]
[TR]
[TD]asparagus[/TD]
[/TR]
[TR]
[TD]green beans[/TD]
[/TR]
[TR]
[TD]spinach[/TD]
[/TR]
[TR]
[TD]broccoli[/TD]
[/TR]
[TR]
[TD]cabbage[/TD]
[/TR]
[TR]
[TD]carrots
[TABLE="width: 122"]
<tbody>[TR]
[TD]Fruits[/TD]
[/TR]
[TR]
[TD]orange,banana[/TD]
[/TR]
[TR]
[TD]pear,apple[/TD]
[/TR]
[TR]
[TD]strawberry[/TD]
[/TR]
[TR]
[TD]peach,blueberries[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Now, what I would like to be able to do is something like search the column name, "Fruits" and have it return the columns values that go under the header in File 2 to show in File 1. So essentially it is matching the column header names, then returning the column on where it located the name. Is this possible?
I appreciate the help.
For instance:
I have Excel file 1 with only two column names, "Fruits" in A1 and, "Vegetables" in D1. So it looks like:
[TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl63, width: 64"]Fruits
[/TD]
[/TR]
</tbody>[/TABLE]
Vegetables
In Excel file 2 I have again two column names (however there could be other names depending on the workbook) of, "Vegetables" in A1 and "Fruits" in F1. In this file I have items listed under vegetables and fruits. So it looks like:
[TABLE="width: 77"]
<tbody>[TR]
[TD]Vegetables[/TD]
[/TR]
[TR]
[TD]asparagus[/TD]
[/TR]
[TR]
[TD]green beans[/TD]
[/TR]
[TR]
[TD]spinach[/TD]
[/TR]
[TR]
[TD]broccoli[/TD]
[/TR]
[TR]
[TD]cabbage[/TD]
[/TR]
[TR]
[TD]carrots
[TABLE="width: 122"]
<tbody>[TR]
[TD]Fruits[/TD]
[/TR]
[TR]
[TD]orange,banana[/TD]
[/TR]
[TR]
[TD]pear,apple[/TD]
[/TR]
[TR]
[TD]strawberry[/TD]
[/TR]
[TR]
[TD]peach,blueberries[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Now, what I would like to be able to do is something like search the column name, "Fruits" and have it return the columns values that go under the header in File 2 to show in File 1. So essentially it is matching the column header names, then returning the column on where it located the name. Is this possible?
I appreciate the help.
Last edited: