I am trying to create a macro that populates a new worksheet based off of a master worksheet. The data being populated is non-contiguous in the same row and only populates if a particular cell in that row is populated with "Y" as data. (Example below).
Worksheet 1 (Master)
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]ID[/TD]
[TD]PRIORITY[/TD]
[TD]TEAM NAME[/TD]
[TD]DESCRIPTION[/TD]
[TD]TEAM LOCATION[/TD]
[TD]START DATE[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]TEAM A[/TD]
[TD]PRIMARY[/TD]
[TD]LONDON[/TD]
[TD]9.10.15[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Y[/TD]
[TD]TEAM B[/TD]
[TD]SECONDARY[/TD]
[TD]SINGAPORE[/TD]
[TD]10.11.15[/TD]
[/TR]
</tbody>[/TABLE]
If column B "Priority" is populated with a "Y" then populated worksheet 2 with the following data from worksheet 1
Worksheet 2 (New) After running Macro
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Team Name[/TD]
[TD]TEAM LOCATION[/TD]
[TD]START DATE[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]TEAM B[/TD]
[TD]SINGAPORE[/TD]
[TD]10.11.15[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
*Note that Team one does not populate because column B is not populated with a "Y" and the description column from worksheet 1 does not get get pulled in to worksheet 2. Does anyone have a recommendation for this combination of requirements?
Thank you
FOMOF
Worksheet 1 (Master)
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]ID[/TD]
[TD]PRIORITY[/TD]
[TD]TEAM NAME[/TD]
[TD]DESCRIPTION[/TD]
[TD]TEAM LOCATION[/TD]
[TD]START DATE[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]TEAM A[/TD]
[TD]PRIMARY[/TD]
[TD]LONDON[/TD]
[TD]9.10.15[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Y[/TD]
[TD]TEAM B[/TD]
[TD]SECONDARY[/TD]
[TD]SINGAPORE[/TD]
[TD]10.11.15[/TD]
[/TR]
</tbody>[/TABLE]
If column B "Priority" is populated with a "Y" then populated worksheet 2 with the following data from worksheet 1
Worksheet 2 (New) After running Macro
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Team Name[/TD]
[TD]TEAM LOCATION[/TD]
[TD]START DATE[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]TEAM B[/TD]
[TD]SINGAPORE[/TD]
[TD]10.11.15[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
*Note that Team one does not populate because column B is not populated with a "Y" and the description column from worksheet 1 does not get get pulled in to worksheet 2. Does anyone have a recommendation for this combination of requirements?
Thank you
FOMOF