vicomte777
New Member
- Joined
- Jul 24, 2014
- Messages
- 8
Hi MrExcel experts
there has been many an occasion I have turned to forums such as these for answers, yet have found answers without need of registering. This is the first time I've been unable to work out a solution and thus must plead for your kindness.
I have three worksheets (excuse the below, I'm making it up off the top of my head for illustration purposes only):
Sheet1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Title 1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Category A[/TD]
[TD]Category B[/TD]
[TD]Category C[/TD]
[TD]Category D[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1[/TD]
[TD]GM[/TD]
[TD]Car[/TD]
[TD]Like[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]2[/TD]
[TD]Ford[/TD]
[TD]Car[/TD]
[TD]Dislike[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]3[/TD]
[TD]Boeing[/TD]
[TD]Plane[/TD]
[TD]Like[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]4[/TD]
[TD]Subaru[/TD]
[TD]Car[/TD]
[TD]Dislike[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]5[/TD]
[TD]Airbus[/TD]
[TD]Plane[/TD]
[TD]Dislike[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]6[/TD]
[TD]Daihatsu[/TD]
[TD]Car[/TD]
[TD]Like[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sheet2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Title 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Category A[/TD]
[TD]Category B[/TD]
[TD]Category C[/TD]
[TD]Category D[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]7[/TD]
[TD]Apples[/TD]
[TD]Fruit[/TD]
[TD]Like[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]8[/TD]
[TD]Watermelon[/TD]
[TD]Fruit[/TD]
[TD]Dislike[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]9[/TD]
[TD]Cauliflower[/TD]
[TD]Vegetable[/TD]
[TD]Like[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]10[/TD]
[TD]Carrot[/TD]
[TD]Vegetable[/TD]
[TD]Dislike[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want to make a list/table on Sheet3 which lists the corresponding Category A number to only those items in the above two worksheets, which are Like'd.
I've attempted nesting Match calls within Index formulas and various vlookup options, however as I'm searching through a column on the right for 'like's and then trying to find their corresponding reference numbers to the left, vlookup doesn't give me much luck.
Notes:
The lists on Sheet1 and Sheet2 are not of uniform length,so was attempting to wrap IFERROR formula around the INDEX(MATCH) combo so that when it finished looking through one worksheet, it would error and go to the Sheet2.
I'm trying to get the subset of column A from both sheets that correspond to values of 'Like' to appear, one after the other.
Once I have these values appearing properly, the Category B and Category C colums can fairly easily be filled through Vlookup formula.
I'm trying to come towards a table which looks like this:
Sheet3
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Title 3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Category A[/TD]
[TD]Category B[/TD]
[TD]Category C[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1[/TD]
[TD]GM[/TD]
[TD]Car[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]3[/TD]
[TD]Boeing[/TD]
[TD]Plane[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]6[/TD]
[TD]Daihatsu[/TD]
[TD]Car[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]7[/TD]
[TD]Apples[/TD]
[TD]Fruit[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]9[/TD]
[TD]Cauliflower[/TD]
[TD]Vegetable[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I hope I explained myself well enough...
there has been many an occasion I have turned to forums such as these for answers, yet have found answers without need of registering. This is the first time I've been unable to work out a solution and thus must plead for your kindness.
I have three worksheets (excuse the below, I'm making it up off the top of my head for illustration purposes only):
Sheet1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Title 1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Category A[/TD]
[TD]Category B[/TD]
[TD]Category C[/TD]
[TD]Category D[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1[/TD]
[TD]GM[/TD]
[TD]Car[/TD]
[TD]Like[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]2[/TD]
[TD]Ford[/TD]
[TD]Car[/TD]
[TD]Dislike[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]3[/TD]
[TD]Boeing[/TD]
[TD]Plane[/TD]
[TD]Like[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]4[/TD]
[TD]Subaru[/TD]
[TD]Car[/TD]
[TD]Dislike[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]5[/TD]
[TD]Airbus[/TD]
[TD]Plane[/TD]
[TD]Dislike[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]6[/TD]
[TD]Daihatsu[/TD]
[TD]Car[/TD]
[TD]Like[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sheet2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Title 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Category A[/TD]
[TD]Category B[/TD]
[TD]Category C[/TD]
[TD]Category D[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]7[/TD]
[TD]Apples[/TD]
[TD]Fruit[/TD]
[TD]Like[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]8[/TD]
[TD]Watermelon[/TD]
[TD]Fruit[/TD]
[TD]Dislike[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]9[/TD]
[TD]Cauliflower[/TD]
[TD]Vegetable[/TD]
[TD]Like[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]10[/TD]
[TD]Carrot[/TD]
[TD]Vegetable[/TD]
[TD]Dislike[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want to make a list/table on Sheet3 which lists the corresponding Category A number to only those items in the above two worksheets, which are Like'd.
I've attempted nesting Match calls within Index formulas and various vlookup options, however as I'm searching through a column on the right for 'like's and then trying to find their corresponding reference numbers to the left, vlookup doesn't give me much luck.
Notes:
The lists on Sheet1 and Sheet2 are not of uniform length,so was attempting to wrap IFERROR formula around the INDEX(MATCH) combo so that when it finished looking through one worksheet, it would error and go to the Sheet2.
I'm trying to get the subset of column A from both sheets that correspond to values of 'Like' to appear, one after the other.
Once I have these values appearing properly, the Category B and Category C colums can fairly easily be filled through Vlookup formula.
I'm trying to come towards a table which looks like this:
Sheet3
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Title 3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Category A[/TD]
[TD]Category B[/TD]
[TD]Category C[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1[/TD]
[TD]GM[/TD]
[TD]Car[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]3[/TD]
[TD]Boeing[/TD]
[TD]Plane[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]6[/TD]
[TD]Daihatsu[/TD]
[TD]Car[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]7[/TD]
[TD]Apples[/TD]
[TD]Fruit[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]9[/TD]
[TD]Cauliflower[/TD]
[TD]Vegetable[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I hope I explained myself well enough...