I have a timesheet with dates on the one page. Each user has a timesheet and I want to do a lookup to another sheet which contains the duration spent at work.
E F G
2011-08-01 2011-08-02 2011-08-01
Now I have the look up sheet (Sheet1) which contains everyone's names, dates for the month and duration.
A B C
Andrew 2011-08-01 7h40
Andrew 2011-08-02 7h45
Andrew 2011-08-03 8h30
John 2011-08-01 8h15
John 2011-08-02 7h30
Now I need to get the durations for John for the different days in the columns below the dates. In this case into E2,F2,G2.
I use the Match formula to get the row number =MATCH("John",Sheet1!A:A,) and I get the first occurence which is 4. Then I use the same formula to get the date but =MATCH(E1,Sheet1!D:D,) but I get row 1 because I don't know how to combine the two formulas into one. I have used index to try and get the results of the column number - but wasn's lucky in combining them. How can I do this - or is there a better way? Thanks.
E F G
2011-08-01 2011-08-02 2011-08-01
Now I have the look up sheet (Sheet1) which contains everyone's names, dates for the month and duration.
A B C
Andrew 2011-08-01 7h40
Andrew 2011-08-02 7h45
Andrew 2011-08-03 8h30
John 2011-08-01 8h15
John 2011-08-02 7h30
Now I need to get the durations for John for the different days in the columns below the dates. In this case into E2,F2,G2.
I use the Match formula to get the row number =MATCH("John",Sheet1!A:A,) and I get the first occurence which is 4. Then I use the same formula to get the date but =MATCH(E1,Sheet1!D:D,) but I get row 1 because I don't know how to combine the two formulas into one. I have used index to try and get the results of the column number - but wasn's lucky in combining them. How can I do this - or is there a better way? Thanks.