Harry_1234
New Member
- Joined
- Aug 19, 2017
- Messages
- 47
I am looking for a more sophisticated query to compare values of a column in a sheet against multiple sheets and if the value is found return values from a different column. I was able to achieve this with iferror and vlookup but i have about 20 sheets to compare values against.
Sheet1: (Column A is where the values exist to be compared against rest of the sheets and return the values in column B/C/D depending on whichever column has the status data in that particular sheet)
[TABLE="width: 64"]
<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][TABLE="width: 64"]
<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Name[/TD]
[/TR]
[TR]
[TD]RED[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]
Sheet2:
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Name[/TD]
[TD="width: 64"]Status[/TD]
[/TR]
[TR]
[TD]RED[/TD]
[TD]Deployed[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 150"]
<colgroup><col span="2"></colgroup><tbody></tbody>[/TABLE]
Sheet3:
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Name[/TD]
[TD="width: 64"]Stage[/TD]
[TD="width: 64"]Status[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]I[/TD]
[TD]Not Deployed[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]II[/TD]
[TD]Not Deployed[/TD]
[/TR]
</tbody>[/TABLE]
Sheet1: (Final Result_
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Name[/TD]
[TD="width: 64"]Status[/TD]
[/TR]
[TR]
[TD]RED[/TD]
[TD]Deployed[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Not Deployed[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]Not Deployed[/TD]
[/TR]
</tbody>[/TABLE]
Sheet1: (Column A is where the values exist to be compared against rest of the sheets and return the values in column B/C/D depending on whichever column has the status data in that particular sheet)
[TABLE="width: 64"]
<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][TABLE="width: 64"]
<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Name[/TD]
[/TR]
[TR]
[TD]RED[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]
Sheet2:
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Name[/TD]
[TD="width: 64"]Status[/TD]
[/TR]
[TR]
[TD]RED[/TD]
[TD]Deployed[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 150"]
<colgroup><col span="2"></colgroup><tbody></tbody>[/TABLE]
Sheet3:
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Name[/TD]
[TD="width: 64"]Stage[/TD]
[TD="width: 64"]Status[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]I[/TD]
[TD]Not Deployed[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]II[/TD]
[TD]Not Deployed[/TD]
[/TR]
</tbody>[/TABLE]
Sheet1: (Final Result_
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Name[/TD]
[TD="width: 64"]Status[/TD]
[/TR]
[TR]
[TD]RED[/TD]
[TD]Deployed[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Not Deployed[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]Not Deployed[/TD]
[/TR]
</tbody>[/TABLE]