Hello, this is going to be a slightly long question. I will try to be as detailed as possible.
I have a workbook with data, and column F contains a long string of text, which is essentially a description. Column E contains either one of two identifiers, "Main" or "Related". When a "Related" lies directly beneath a "Main", the two are considered to be bound as a group.
1. A single "Main" can have any number of "Related" rows bound to it. This is a group.
2. A "Main" can exist as a standalone entity. This is also considered a group.
3. A "Related" cannot exist without being bound to a "Main".
I would like to be able to hide all groups that do not have a particular word "WORD1" in the description (Column F) of the "Main" that is associated with the group. Using the below table as an example, if only Description4 contains my chosen word "WORD1", then I would want to hide rows 1-3, 8-10.
Preferably this word can be entered into a cell, and I can repeat the process with other words (WORD2, WORD3 etc.).
Any help would be immensely appreciated.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Main[/TD]
[TD]Description1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Main[/TD]
[TD]Description2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Related[/TD]
[TD]Description3[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Main[/TD]
[TD]Description4[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Related
[/TD]
[TD]Description5[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Related[/TD]
[TD]Description6[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Related[/TD]
[TD]Description7[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Main[/TD]
[TD]Description8[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Main[/TD]
[TD]Description9[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Main[/TD]
[TD]Description10[/TD]
[/TR]
</tbody>[/TABLE]
I have a workbook with data, and column F contains a long string of text, which is essentially a description. Column E contains either one of two identifiers, "Main" or "Related". When a "Related" lies directly beneath a "Main", the two are considered to be bound as a group.
1. A single "Main" can have any number of "Related" rows bound to it. This is a group.
2. A "Main" can exist as a standalone entity. This is also considered a group.
3. A "Related" cannot exist without being bound to a "Main".
I would like to be able to hide all groups that do not have a particular word "WORD1" in the description (Column F) of the "Main" that is associated with the group. Using the below table as an example, if only Description4 contains my chosen word "WORD1", then I would want to hide rows 1-3, 8-10.
Preferably this word can be entered into a cell, and I can repeat the process with other words (WORD2, WORD3 etc.).
Any help would be immensely appreciated.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Main[/TD]
[TD]Description1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Main[/TD]
[TD]Description2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Related[/TD]
[TD]Description3[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Main[/TD]
[TD]Description4[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Related
[/TD]
[TD]Description5[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Related[/TD]
[TD]Description6[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Related[/TD]
[TD]Description7[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Main[/TD]
[TD]Description8[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Main[/TD]
[TD]Description9[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Main[/TD]
[TD]Description10[/TD]
[/TR]
</tbody>[/TABLE]
Last edited by a moderator: