Hello,
I have done a fair bit of research with no luck and hoping to get some assistance.
I have data from A3 to W10,000 and I am looking for a macro that can remove rows where the name in column C is a duplicate and the date in column W is within 21 days of another date with the duplicated name and NOT the most recent date in that period - please see below extract for a better explanation:
Below is a sample of the data currently (Name is column C and Date is column W)
Name …. Date
SMITH, Tom …. 01/01/2019
SMITH, Tom …. 02/01/2019
SMITH Tom …. 03/01/2019
JONES, Terry …. 12/03/2019
JONES Terry …. 13/03/2019
SMITH, Tom …. 01/06/2019
SMITH, Tom …. 02/06/2019
JONES Terry …. 15/06/2019
Below is the data I would like shown
Name …. Date
SMITH Tom …. 03/01/2019
JONES Terry …. 13/03/2019
SMITH, Tom …. 02/06/2019
JONES Terry …. 15/06/2019
I am grateful for any assistance or guidance provided!
Thank you
I have done a fair bit of research with no luck and hoping to get some assistance.
I have data from A3 to W10,000 and I am looking for a macro that can remove rows where the name in column C is a duplicate and the date in column W is within 21 days of another date with the duplicated name and NOT the most recent date in that period - please see below extract for a better explanation:
Below is a sample of the data currently (Name is column C and Date is column W)
Name …. Date
SMITH, Tom …. 01/01/2019
SMITH, Tom …. 02/01/2019
SMITH Tom …. 03/01/2019
JONES, Terry …. 12/03/2019
JONES Terry …. 13/03/2019
SMITH, Tom …. 01/06/2019
SMITH, Tom …. 02/06/2019
JONES Terry …. 15/06/2019
Below is the data I would like shown
Name …. Date
SMITH Tom …. 03/01/2019
JONES Terry …. 13/03/2019
SMITH, Tom …. 02/06/2019
JONES Terry …. 15/06/2019
I am grateful for any assistance or guidance provided!
Thank you