Hi!
I'm trying to delete rows but there is a priority... The file size is 33,000 lines+
The columns look like this.
[TABLE="width: 128"]
<tbody>[TR]
[TD="width: 64"]DUNS[/TD]
[TD="width: 64"] Maintenance Status[/TD]
[/TR]
[TR]
[TD="align: right"]1012319[/TD]
[TD] Active[/TD]
[/TR]
[TR]
[TD="align: right"]1012319[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1012319[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1012319[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1012319[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1012319[/TD]
[TD] Active[/TD]
[/TR]
</tbody>[/TABLE]
What I need to end up with is only one line per DUNs number with "Active" if its available while deleting any other duplicate active and blank lines. Maintenance Status only has the options of : Active, Inactive, ""
I've been messing with functions and different remove duplicate methods but with being required to do this now almost daily having a macro would save a significant amount of time.
I'm trying to delete rows but there is a priority... The file size is 33,000 lines+
The columns look like this.
[TABLE="width: 128"]
<tbody>[TR]
[TD="width: 64"]DUNS[/TD]
[TD="width: 64"] Maintenance Status[/TD]
[/TR]
[TR]
[TD="align: right"]1012319[/TD]
[TD] Active[/TD]
[/TR]
[TR]
[TD="align: right"]1012319[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1012319[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1012319[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1012319[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1012319[/TD]
[TD] Active[/TD]
[/TR]
</tbody>[/TABLE]
What I need to end up with is only one line per DUNs number with "Active" if its available while deleting any other duplicate active and blank lines. Maintenance Status only has the options of : Active, Inactive, ""
I've been messing with functions and different remove duplicate methods but with being required to do this now almost daily having a macro would save a significant amount of time.