strongman86
Board Regular
- Joined
- Feb 15, 2017
- Messages
- 115
- Office Version
- 2019
- Platform
- Windows
Lads,
Hope you can help me. I have Table in Sheet1 consisting of 100's of rows and about 20 columns similar to below. I need formula in Sheet2 that looks through Column A Sheet1 and if it finds
APPLE IN CELL then it needs to copy whole row into Sheet2 and same for PEAR. This need to be in the order they appear in Sheet1. Thanks.
Sheet1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]APPLE[/TD]
[TD]UK[/TD]
[TD]10[/TD]
[TD]WEEK1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]BANANA[/TD]
[TD]SPAIN[/TD]
[TD]15[/TD]
[TD]WEEK2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]ORANGE[/TD]
[TD]SPAIN[/TD]
[TD]20[/TD]
[TD]WEEK2[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]APPLE[/TD]
[TD]IE[/TD]
[TD]15[/TD]
[TD]WEEK1[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]LEMON[/TD]
[TD]US[/TD]
[TD]10[/TD]
[TD]WEEK3[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]PEAR[/TD]
[TD]US[/TD]
[TD]20[/TD]
[TD]WEEK5[/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]
[/TR]
[TR]
[TD]1[/TD]
[TD]APPLE[/TD]
[TD]UK[/TD]
[TD]10[/TD]
[TD]WEEK1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]APPLE[/TD]
[TD]IE[/TD]
[TD]15[/TD]
[TD]WEEK1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]PEAR[/TD]
[TD]US[/TD]
[TD]20[/TD]
[TD]WEEK5[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hope you can help me. I have Table in Sheet1 consisting of 100's of rows and about 20 columns similar to below. I need formula in Sheet2 that looks through Column A Sheet1 and if it finds
APPLE IN CELL then it needs to copy whole row into Sheet2 and same for PEAR. This need to be in the order they appear in Sheet1. Thanks.
Sheet1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]APPLE[/TD]
[TD]UK[/TD]
[TD]10[/TD]
[TD]WEEK1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]BANANA[/TD]
[TD]SPAIN[/TD]
[TD]15[/TD]
[TD]WEEK2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]ORANGE[/TD]
[TD]SPAIN[/TD]
[TD]20[/TD]
[TD]WEEK2[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]APPLE[/TD]
[TD]IE[/TD]
[TD]15[/TD]
[TD]WEEK1[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]LEMON[/TD]
[TD]US[/TD]
[TD]10[/TD]
[TD]WEEK3[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]PEAR[/TD]
[TD]US[/TD]
[TD]20[/TD]
[TD]WEEK5[/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]
[/TR]
[TR]
[TD]1[/TD]
[TD]APPLE[/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