I need to Tag the first instance based on Criteria
I need it to search a all instances and always Tag the first Match if the Item (39576 ) the Table T014 or T011) and if its Passed and Tag the first date of that pass
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Station[/TD]
[TD]Start Time[/TD]
[TD]Result[/TD]
[TD]Tagged[/TD]
[/TR]
[TR]
[TD]39576[/TD]
[TD]T014[/TD]
[TD]10/27/2017 11:59[/TD]
[TD]Fail[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]39576[/TD]
[TD]T014[/TD]
[TD]10/27/2017 12:22[/TD]
[TD]Pass[/TD]
[TD]Tag[/TD]
[/TR]
[TR]
[TD]39576[/TD]
[TD]T014[/TD]
[TD]10/27/2017 14:41[/TD]
[TD]Pass[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]39576[/TD]
[TD]T011[/TD]
[TD]10/27/2017 14:58[/TD]
[TD]Pass[/TD]
[TD]Tag[/TD]
[/TR]
[TR]
[TD]39576[/TD]
[TD]T011[/TD]
[TD]10/27/2017 15:11[/TD]
[TD]Pass[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I need it to search a all instances and always Tag the first Match if the Item (39576 ) the Table T014 or T011) and if its Passed and Tag the first date of that pass
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Station[/TD]
[TD]Start Time[/TD]
[TD]Result[/TD]
[TD]Tagged[/TD]
[/TR]
[TR]
[TD]39576[/TD]
[TD]T014[/TD]
[TD]10/27/2017 11:59[/TD]
[TD]Fail[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]39576[/TD]
[TD]T014[/TD]
[TD]10/27/2017 12:22[/TD]
[TD]Pass[/TD]
[TD]Tag[/TD]
[/TR]
[TR]
[TD]39576[/TD]
[TD]T014[/TD]
[TD]10/27/2017 14:41[/TD]
[TD]Pass[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]39576[/TD]
[TD]T011[/TD]
[TD]10/27/2017 14:58[/TD]
[TD]Pass[/TD]
[TD]Tag[/TD]
[/TR]
[TR]
[TD]39576[/TD]
[TD]T011[/TD]
[TD]10/27/2017 15:11[/TD]
[TD]Pass[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]