P
puiuluipui
Hi, i need a macro to delete all rows except for the smallest and biggest
time in column "B". But i need the code to look in other columns before that.
Some kind of macro criteria.
Ex:
A B C D E
Date Time Station Id Name
01.12.09 08:01:19 IN 5 John
01.12.09 09:05:30 IN 5 John
01.12.09 14:30:58 out 5 John
01.12.09 16:30:19 out 5 John
01.12.09 07:59:23 IN 5 Mary
01.12.09 11:54:20 IN 5 Mary
01.12.09 16:29:13 out 5 Mary
01.12.09 16:34:29 out 5 Mary
02.12.09....
03.12.09....
This is an example for one day (01.12.2009). All days are consecutive.
I need the macro to look first at the "Date", then at "Name", then at the
"Station", then at "Time". I need the smallest "IN" time and the biggest
"out" time.
Result after macro:
01.12.09 08:01:19 IN 5 John
01.12.09 16:30:19 out 5 John
01.12.09 07:59:23 IN 5 Mary
01.12.09 16:34:29 out 5 Mary
Can this be done?
Thanks!
time in column "B". But i need the code to look in other columns before that.
Some kind of macro criteria.
Ex:
A B C D E
Date Time Station Id Name
01.12.09 08:01:19 IN 5 John
01.12.09 09:05:30 IN 5 John
01.12.09 14:30:58 out 5 John
01.12.09 16:30:19 out 5 John
01.12.09 07:59:23 IN 5 Mary
01.12.09 11:54:20 IN 5 Mary
01.12.09 16:29:13 out 5 Mary
01.12.09 16:34:29 out 5 Mary
02.12.09....
03.12.09....
This is an example for one day (01.12.2009). All days are consecutive.
I need the macro to look first at the "Date", then at "Name", then at the
"Station", then at "Time". I need the smallest "IN" time and the biggest
"out" time.
Result after macro:
01.12.09 08:01:19 IN 5 John
01.12.09 16:30:19 out 5 John
01.12.09 07:59:23 IN 5 Mary
01.12.09 16:34:29 out 5 Mary
Can this be done?
Thanks!