[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Check[/TD]
[TD]Status[/TD]
[TD]ID[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Valid[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Valid[/TD]
[TD]234[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Invalid[/TD]
[TD]345[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Valid[/TD]
[TD]345[/TD]
[/TR]
</tbody>[/TABLE]
I am looking for a formula (or possibly a macro) to place in the first column where it checks the ID column. If there is more than one row for the same ID, it looks at the status for all of them, and if just one of the values state "Valid", it updates the status to valid and deletes the rows for the other duplicates.
<tbody>[TR]
[TD]Check[/TD]
[TD]Status[/TD]
[TD]ID[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Valid[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Valid[/TD]
[TD]234[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Invalid[/TD]
[TD]345[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Valid[/TD]
[TD]345[/TD]
[/TR]
</tbody>[/TABLE]
I am looking for a formula (or possibly a macro) to place in the first column where it checks the ID column. If there is more than one row for the same ID, it looks at the status for all of them, and if just one of the values state "Valid", it updates the status to valid and deletes the rows for the other duplicates.