danhenshy23
New Member
- Joined
- Oct 3, 2016
- Messages
- 38
- Office Version
- 2019
- Platform
- Windows
Hi,
I have a series of data running across a number of columns. Where a certain word appears in the data, I am wanting to colour fill the 3 cells to the left of it.
Using the below example, where the word Dog appears, I would like the 3 cells to the left of the cell containing the word Dog to be filled in.
Is this possible?
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Dog[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Dog[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Pig[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Dog[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Cat[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Cat[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Dog[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Owl[/TD]
[/TR]
</tbody>[/TABLE]
Thanks
Dan
I have a series of data running across a number of columns. Where a certain word appears in the data, I am wanting to colour fill the 3 cells to the left of it.
Using the below example, where the word Dog appears, I would like the 3 cells to the left of the cell containing the word Dog to be filled in.
Is this possible?
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Dog[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Dog[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Pig[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Dog[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Cat[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Cat[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Dog[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[TD]Owl[/TD]
[/TR]
</tbody>[/TABLE]
Thanks
Dan
Last edited: