Hi everyone,
I've been pulling my hairs in the last 3 weeks trying to find a solution to my Excel (2013) problem online - unfortunately without any success, so I've finally decided to post it and see if anyone would be willing to help.
Anyway, here is the deal:
I have two spreadsheets:
1. Sheet1 is a report that has 3 columns:
A – Employee N
B – Date (the report is weekly so there is a maximum of 7 different values)
C – Hours worked
Example:
[TABLE="width: 249"]
<tbody>[TR]
[TD]Employee N[/TD]
[TD]Date[/TD]
[TD]Hours worked[/TD]
[/TR]
[TR]
[TD]80015[/TD]
[TD]07/07/2016[/TD]
[TD]7.75[/TD]
[/TR]
[TR]
[TD]80015[/TD]
[TD]08/07/2016[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]80016[/TD]
[TD]05/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80016[/TD]
[TD]06/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80016[/TD]
[TD]08/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80017[/TD]
[TD]03/07/2016[/TD]
[TD]8.75[/TD]
[/TR]
[TR]
[TD]80017[/TD]
[TD]05/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80017[/TD]
[TD]06/07/2016[/TD]
[TD]8.75[/TD]
[/TR]
[TR]
[TD]80017[/TD]
[TD]08/07/2016[/TD]
[TD]8.75[/TD]
[/TR]
[TR]
[TD]80018[/TD]
[TD]03/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80018[/TD]
[TD]04/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80018[/TD]
[TD]05/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80018[/TD]
[TD]06/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80018[/TD]
[TD]08/07/2016[/TD]
[TD]8[/TD]
[/TR]
</tbody>[/TABLE]
2. Sheet2 has a little bit more info and it looks like that:
[TABLE="width: 641, align: left"]
<tbody>[TR]
[TD]FORNAMES[/TD]
[TD]SURNAME[/TD]
[TD]CLOCK [/TD]
[TD][/TD]
[TD]3-Jul[/TD]
[TD]4-Jul[/TD]
[TD]5-Jul[/TD]
[TD]6-Jul[/TD]
[TD]7-Jul[/TD]
[TD]8-Jul[/TD]
[TD]9-Jul[/TD]
[TD]TOTAL[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]NUMBER[/TD]
[TD][/TD]
[TD]SUN[/TD]
[TD]MON[/TD]
[TD]TUE[/TD]
[TD]WED[/TD]
[TD]THU[/TD]
[TD]FRI[/TD]
[TD]SAT[/TD]
[TD]HOURS[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]80015[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]7.75 [/TD]
[TD]7[/TD]
[TD][/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]80016[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]8 [/TD]
[TD]8[/TD]
[TD][/TD]
[TD]8[/TD]
[TD][/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]80017[/TD]
[TD][/TD]
[TD]8.75 [/TD]
[TD][/TD]
[TD]8[/TD]
[TD]8.75[/TD]
[TD][/TD]
[TD]8.75[/TD]
[TD][/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]80018[/TD]
[TD][/TD]
[TD]8 [/TD]
[TD]8[/TD]
[TD]8[/TD]
[TD]8[/TD]
[TD][/TD]
[TD]8[/TD]
[TD][/TD]
[TD]0.00[/TD]
[/TR]
</tbody>[/TABLE]
At the moment I am reading the report (sheet1) and manually typing in the hours each worker did in sheet2 on a weekly basis.
If cell FORNAMES is A1, can I make cell E3 to search the whole report (sheet1) and display the value it finds based on two criteria (date and employee/clock N must both match)? Obviously I will extend the formula amongst all cells in the range E3:K6
If there is no such record in the report (sheet1) just leave the relevant cell in sheet2 empty.
Any suggestions?
If more details are required I will be monitoring the thread closely and try to reply asap.
Thanks for your help!
I've been pulling my hairs in the last 3 weeks trying to find a solution to my Excel (2013) problem online - unfortunately without any success, so I've finally decided to post it and see if anyone would be willing to help.
Anyway, here is the deal:
I have two spreadsheets:
1. Sheet1 is a report that has 3 columns:
A – Employee N
B – Date (the report is weekly so there is a maximum of 7 different values)
C – Hours worked
Example:
[TABLE="width: 249"]
<tbody>[TR]
[TD]Employee N[/TD]
[TD]Date[/TD]
[TD]Hours worked[/TD]
[/TR]
[TR]
[TD]80015[/TD]
[TD]07/07/2016[/TD]
[TD]7.75[/TD]
[/TR]
[TR]
[TD]80015[/TD]
[TD]08/07/2016[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]80016[/TD]
[TD]05/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80016[/TD]
[TD]06/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80016[/TD]
[TD]08/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80017[/TD]
[TD]03/07/2016[/TD]
[TD]8.75[/TD]
[/TR]
[TR]
[TD]80017[/TD]
[TD]05/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80017[/TD]
[TD]06/07/2016[/TD]
[TD]8.75[/TD]
[/TR]
[TR]
[TD]80017[/TD]
[TD]08/07/2016[/TD]
[TD]8.75[/TD]
[/TR]
[TR]
[TD]80018[/TD]
[TD]03/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80018[/TD]
[TD]04/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80018[/TD]
[TD]05/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80018[/TD]
[TD]06/07/2016[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]80018[/TD]
[TD]08/07/2016[/TD]
[TD]8[/TD]
[/TR]
</tbody>[/TABLE]
2. Sheet2 has a little bit more info and it looks like that:
[TABLE="width: 641, align: left"]
<tbody>[TR]
[TD]FORNAMES[/TD]
[TD]SURNAME[/TD]
[TD]CLOCK [/TD]
[TD][/TD]
[TD]3-Jul[/TD]
[TD]4-Jul[/TD]
[TD]5-Jul[/TD]
[TD]6-Jul[/TD]
[TD]7-Jul[/TD]
[TD]8-Jul[/TD]
[TD]9-Jul[/TD]
[TD]TOTAL[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]NUMBER[/TD]
[TD][/TD]
[TD]SUN[/TD]
[TD]MON[/TD]
[TD]TUE[/TD]
[TD]WED[/TD]
[TD]THU[/TD]
[TD]FRI[/TD]
[TD]SAT[/TD]
[TD]HOURS[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]80015[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]7.75 [/TD]
[TD]7[/TD]
[TD][/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]80016[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]8 [/TD]
[TD]8[/TD]
[TD][/TD]
[TD]8[/TD]
[TD][/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]80017[/TD]
[TD][/TD]
[TD]8.75 [/TD]
[TD][/TD]
[TD]8[/TD]
[TD]8.75[/TD]
[TD][/TD]
[TD]8.75[/TD]
[TD][/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]80018[/TD]
[TD][/TD]
[TD]8 [/TD]
[TD]8[/TD]
[TD]8[/TD]
[TD]8[/TD]
[TD][/TD]
[TD]8[/TD]
[TD][/TD]
[TD]0.00[/TD]
[/TR]
</tbody>[/TABLE]
At the moment I am reading the report (sheet1) and manually typing in the hours each worker did in sheet2 on a weekly basis.
If cell FORNAMES is A1, can I make cell E3 to search the whole report (sheet1) and display the value it finds based on two criteria (date and employee/clock N must both match)? Obviously I will extend the formula amongst all cells in the range E3:K6
If there is no such record in the report (sheet1) just leave the relevant cell in sheet2 empty.
Any suggestions?
If more details are required I will be monitoring the thread closely and try to reply asap.
Thanks for your help!