I have a file containing date and time in one column, code, description, status and user in other columns.
I will have code and description same or different with different dates and status changed on each date.
I need a macro which can find out the status and user of the record with latest date.
For ex:
Date Code Description Status user
10/03/2008 8:15 A123 Main Data Read M
11/03/2008 6:15 A123 Main Data Write M
12/03/2008 3:15 A123 Main Data Read M
13/03/2008 7:15 A123 Main Data Write M
12/03/2008 3:15 A123 Test Data Read T
13/03/2008 7:15 A123 Test Data Write T
11/03/2008 8:15 B456 Prod Data Read P
12/03/2008 4:15 B456 Prod Data Write P
14/03/2008 2:15 B456 Test Data Write T
17/03/2008 1:15 B456 Test Data Read T
Output:
13/03/2008 7:15 A123 Main Data Write M
13/03/2008 7:15 A123 Test Data Write T
12/03/2008 4:15 B456 Prod Data Write P
17/03/2008 1:15 B456 Test Data Read T
I will have code and description same or different with different dates and status changed on each date.
I need a macro which can find out the status and user of the record with latest date.
For ex:
Date Code Description Status user
10/03/2008 8:15 A123 Main Data Read M
11/03/2008 6:15 A123 Main Data Write M
12/03/2008 3:15 A123 Main Data Read M
13/03/2008 7:15 A123 Main Data Write M
12/03/2008 3:15 A123 Test Data Read T
13/03/2008 7:15 A123 Test Data Write T
11/03/2008 8:15 B456 Prod Data Read P
12/03/2008 4:15 B456 Prod Data Write P
14/03/2008 2:15 B456 Test Data Write T
17/03/2008 1:15 B456 Test Data Read T
Output:
13/03/2008 7:15 A123 Main Data Write M
13/03/2008 7:15 A123 Test Data Write T
12/03/2008 4:15 B456 Prod Data Write P
17/03/2008 1:15 B456 Test Data Read T