Hi, good evening everyone.
I would like to ask question that I've been stuck for a very long time, so I made a decision to ask in this forum.
Roughly, I have TWO(2) worksheets. One sheet is Onhand, another sheet is input.
This is table for sheet Onhand,
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Loc[/TD]
[/TR]
[TR]
[TD]Chicken[/TD]
[TD]MV1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Fish[/TD]
[TD]MV2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Rabbit[/TD]
[TD]Mv3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Butterfly[/TD]
[TD]Mv4[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
This is table for sheet input, in this sheet input, there are TWO(2) tables.
This table 1 is, if Column A in Sheet Onhand = Chicken Or Fish
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sloc[/TD]
[TD]Loc[/TD]
[/TR]
[TR]
[TD]Mv1[/TD]
[TD]alien[/TD]
[/TR]
[TR]
[TD]mv2[/TD]
[TD]alien[/TD]
[/TR]
[TR]
[TD]mv3[/TD]
[TD]tupper[/TD]
[/TR]
[TR]
[TD]mv4[/TD]
[TD]cheese[/TD]
[/TR]
</tbody>[/TABLE]
This table 2 is, if Column A in Sheet Onhand = Butterfly OR Rabbit
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sloc[/TD]
[TD]Loc[/TD]
[/TR]
[TR]
[TD]Mv1[/TD]
[TD]alien[/TD]
[/TR]
[TR]
[TD]mv2[/TD]
[TD]alien[/TD]
[/TR]
[TR]
[TD]mv3[/TD]
[TD]tupper[/TD]
[/TR]
[TR]
[TD]mv4[/TD]
[TD]cheese[/TD]
[/TR]
</tbody>[/TABLE]
My question is,
I need to do,
if (Column A in Sheet OnHand = chicken OR Column A = Fish), then Column "Loc" will VLOOKUP with table 1.
if (Column A in Sheet OnHand = Butterfly OR Column A = Rabbit), then Column "Loc" will VLOOKUP with table 2.
Help me,...
I'm not sure how to vlookup with so many options with two table. I've try so many type of vlookup, but doesn't work. T_T
Thankyou in advance!
I would like to ask question that I've been stuck for a very long time, so I made a decision to ask in this forum.
Roughly, I have TWO(2) worksheets. One sheet is Onhand, another sheet is input.
This is table for sheet Onhand,
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Loc[/TD]
[/TR]
[TR]
[TD]Chicken[/TD]
[TD]MV1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Fish[/TD]
[TD]MV2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Rabbit[/TD]
[TD]Mv3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Butterfly[/TD]
[TD]Mv4[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
This is table for sheet input, in this sheet input, there are TWO(2) tables.
This table 1 is, if Column A in Sheet Onhand = Chicken Or Fish
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sloc[/TD]
[TD]Loc[/TD]
[/TR]
[TR]
[TD]Mv1[/TD]
[TD]alien[/TD]
[/TR]
[TR]
[TD]mv2[/TD]
[TD]alien[/TD]
[/TR]
[TR]
[TD]mv3[/TD]
[TD]tupper[/TD]
[/TR]
[TR]
[TD]mv4[/TD]
[TD]cheese[/TD]
[/TR]
</tbody>[/TABLE]
This table 2 is, if Column A in Sheet Onhand = Butterfly OR Rabbit
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sloc[/TD]
[TD]Loc[/TD]
[/TR]
[TR]
[TD]Mv1[/TD]
[TD]alien[/TD]
[/TR]
[TR]
[TD]mv2[/TD]
[TD]alien[/TD]
[/TR]
[TR]
[TD]mv3[/TD]
[TD]tupper[/TD]
[/TR]
[TR]
[TD]mv4[/TD]
[TD]cheese[/TD]
[/TR]
</tbody>[/TABLE]
My question is,
I need to do,
if (Column A in Sheet OnHand = chicken OR Column A = Fish), then Column "Loc" will VLOOKUP with table 1.
if (Column A in Sheet OnHand = Butterfly OR Column A = Rabbit), then Column "Loc" will VLOOKUP with table 2.
Help me,...
I'm not sure how to vlookup with so many options with two table. I've try so many type of vlookup, but doesn't work. T_T
Thankyou in advance!