Good Morning,
I am completely confused on how I can parse the file sort it by dates but retain only the last 6 months then remove duplicate computer names.
Need a solution to open a txt file that is comma delimited with four fields. I need all duplicate Workstation removed but retain the recent date within the last six months.
example to the text file
Date,Workstation,Username,Domain
"2019-08-10 07:00:38","Computer1","User","Domain"
"2020-02-10 08:47:20","Computer2","User","Domain"
"2020-03-01 09:01:00","Computer3","User","Domain"
"2020-04-01 10:05:58","Computer1","User","Domain"
"2020-05-07 08:15:15","Computer2","User","Domain"
Output:
CELL(1,1) = 2020-05-07
CELL(1,2) = Computer2
CELL(2,1) = 2020-04-01
CELL(2,2) = Computer1
CELL(3,1) = 2020-03-01
CELL(3,2) = Computer3
Thanks in advance.
I am completely confused on how I can parse the file sort it by dates but retain only the last 6 months then remove duplicate computer names.
Need a solution to open a txt file that is comma delimited with four fields. I need all duplicate Workstation removed but retain the recent date within the last six months.
example to the text file
Date,Workstation,Username,Domain
"2019-08-10 07:00:38","Computer1","User","Domain"
"2020-02-10 08:47:20","Computer2","User","Domain"
"2020-03-01 09:01:00","Computer3","User","Domain"
"2020-04-01 10:05:58","Computer1","User","Domain"
"2020-05-07 08:15:15","Computer2","User","Domain"
Output:
CELL(1,1) = 2020-05-07
CELL(1,2) = Computer2
CELL(2,1) = 2020-04-01
CELL(2,2) = Computer1
CELL(3,1) = 2020-03-01
CELL(3,2) = Computer3
Thanks in advance.