Hi, This is my very first post, so apologies if I miss something, but will try to cover and clarify as much as I can.
I have 2 excel workbooks. The first one has a list of names,dates and times and the other workbook has a list of names, dates and times also.
The times in WB 1 is when a message was received. the times in WB 2 is a range by names and what they did on a particular day ( Timesheet).
What I want to do is look up the name on the respective date and find out what that person did after the message was received.
i.e. John - 22/12/12 - 15:35
next workbook
John - 22/12/12 - 08:00 - travel 1
john - 22/12/12 - 09:00 - park 1
john - 22/12/12 - 10:10 - break 1
john - 22/12/12 - 11:30 - travel 2
john - 22/12 12 - 12:50 - park 2
john - 22/12/12 - 14:30 - travel 2
john - 22/12/12 - 15:50 - park 3
john - 22/12/12 - 16:00 - travel 3
john - 22/12/12 - 16:30 - home
peter- 22/12/12 - 08:00 = travel
and so on......
the lookup needs to return the event after 15:35, which would be 'park 3' at 15:50
is this do-able?, and if so, in excel formula, or would it need to be VBA?
i have created a unique key in column A in both worksheets such as john22/12/12, which i have tried to to a vlookup, but it only returns the first row, i need another parameter that would be next event time 'greater than'
Appreciate you guys looking at this
regards- Ash
I have 2 excel workbooks. The first one has a list of names,dates and times and the other workbook has a list of names, dates and times also.
The times in WB 1 is when a message was received. the times in WB 2 is a range by names and what they did on a particular day ( Timesheet).
What I want to do is look up the name on the respective date and find out what that person did after the message was received.
i.e. John - 22/12/12 - 15:35
next workbook
John - 22/12/12 - 08:00 - travel 1
john - 22/12/12 - 09:00 - park 1
john - 22/12/12 - 10:10 - break 1
john - 22/12/12 - 11:30 - travel 2
john - 22/12 12 - 12:50 - park 2
john - 22/12/12 - 14:30 - travel 2
john - 22/12/12 - 15:50 - park 3
john - 22/12/12 - 16:00 - travel 3
john - 22/12/12 - 16:30 - home
peter- 22/12/12 - 08:00 = travel
and so on......
the lookup needs to return the event after 15:35, which would be 'park 3' at 15:50
is this do-able?, and if so, in excel formula, or would it need to be VBA?
i have created a unique key in column A in both worksheets such as john22/12/12, which i have tried to to a vlookup, but it only returns the first row, i need another parameter that would be next event time 'greater than'
Appreciate you guys looking at this
regards- Ash