Link to home
Start Free TrialLog in
Avatar of Stuart Stout
Stuart StoutFlag for United Kingdom of Great Britain and Northern Ireland

asked on

VBA to remove duplicated lines from 2 tables pulled from a url

Hello.

on the attached ss the URL tab,  I have 2 tables being pulled from a url,  what i need to do is remove the lines in the second table  l18:t78 where they appear in the top 24 rows of the first table  B18:j78.
ASA--Swimming---2018-British---Home.xlsm
Avatar of Peter Chan
Peter Chan
Flag of Hong Kong image

1. If the lines are not sorted well, you can presort the lines first in Excel

2. Then use a loop to scan through the list to find out duplicated lines.
Avatar of Stuart Stout

ASKER

hi, due to both tables being a qualification list that is not an option.
Do you need to compare both lists or not?
I need to remove the line in the second table where it appears in the top 24 rows of table 1
the data in the tables is fluid and changes daily plus depends upon the selection made in rows 4, 6, 7 & 8
Avatar of Subodh Tiwari (Neeraj)
If a row from table2 appears below row24 of table1, should it remain intact? i.e. not considered as a duplicate row?
yes, only remove from table 2 if it appears in the top 24 rows of table 1 .
the data in the tables is fluid and changes daily plus depends upon the selection made in rows 4, 6, 7 & 8

You have to scan the list per your given conditions you already mentioned
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just the  job. Did exactly what was required many thanks
You're welcome Stuart!