I would like to produce a short script that has the ability to loop through a table of cells and delete rows that meet an overlap criteria.
I have three columns for each row. Column 1 is a random number. Column 2 is a starting date value. Column 3 is a ending date value. I would like to test each row against every other row to check for overlapping dates. If the dates overlap I would like to delete the entire row that has the larger random number between the two rows that have overlapping dates.
Any ideas or psuedo code that would accomplish this goal?
Thanks!
I have three columns for each row. Column 1 is a random number. Column 2 is a starting date value. Column 3 is a ending date value. I would like to test each row against every other row to check for overlapping dates. If the dates overlap I would like to delete the entire row that has the larger random number between the two rows that have overlapping dates.
Any ideas or psuedo code that would accomplish this goal?
Thanks!