Hi there. Can anyone shed some light please ... would be very grateful!
I have following data in Excel file :
Name No Date Time
--------- --------- --------- ----------
John 1 1-1-2014 08:00
John 1 1-1-2014 13:00
John 1 1-1-2014 14:00
John 1 1-1-2014 17:00
Kate 2 1-1-2014 09:00
Kate 2 1-1-2014 12:00
Kate 2 1-1-2014 13:00
Kate 2 1-1-2014 18:00
...
What I am looking to do is run a macro to consolidate the data into a new worksheet in the same workbook to look like the following:
Name No Date IN OUT IN OUT >>>
----------- --- ---------- ----- ----- ----- -----
John 1 1-1-2014 08:00 13:00 14:00 17:00 >>>
Kate 2 1-1-2014 09:00 12:00 13:00 18:00 >>>
In other words:
1. I need the row data for each person for each DAY in one line
2. There could be up to 8 records per day per person - eg. In and OUT 4 times
3. All John's entries for the month will be first, then all Kate's etc
Nothing I have tried works ... suspect I need some code to do this!
I am at a loss. Any takers?
I have following data in Excel file :
Name No Date Time
--------- --------- --------- ----------
John 1 1-1-2014 08:00
John 1 1-1-2014 13:00
John 1 1-1-2014 14:00
John 1 1-1-2014 17:00
Kate 2 1-1-2014 09:00
Kate 2 1-1-2014 12:00
Kate 2 1-1-2014 13:00
Kate 2 1-1-2014 18:00
...
What I am looking to do is run a macro to consolidate the data into a new worksheet in the same workbook to look like the following:
Name No Date IN OUT IN OUT >>>
----------- --- ---------- ----- ----- ----- -----
John 1 1-1-2014 08:00 13:00 14:00 17:00 >>>
Kate 2 1-1-2014 09:00 12:00 13:00 18:00 >>>
In other words:
1. I need the row data for each person for each DAY in one line
2. There could be up to 8 records per day per person - eg. In and OUT 4 times
3. All John's entries for the month will be first, then all Kate's etc
Nothing I have tried works ... suspect I need some code to do this!
I am at a loss. Any takers?