bernie1973
New Member
- Joined
- Feb 25, 2017
- Messages
- 6
I am new to excel and self teaching, most likely doing it all the long way but every day is a learning day
I am attempting to extract information from worksheet 1 into worksheet 2.
Worksheet 1 is a record of employees and their hours worked on a daily basis for the full year.
1 employee in per row for 50 rows, 365 columns for each day of the year.
I am required to report back on a weekly basis the hours each individual has taken for annual leave, worked, overtime, sick leave etc
Below is an extract from worksheet 1 looks like
[TABLE="width: 444"]
<colgroup><col width="101" style="width: 76pt; mso-width-source: userset; mso-width-alt: 3693;"> <col width="30" style="width: 23pt; mso-width-source: userset; mso-width-alt: 1097;" span="16"> <tbody>[TR]
[TD="class: xl83, width: 101, bgcolor: transparent"] [/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]01[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]02[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]03[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]04[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]05[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]06[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]07[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]08[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]09[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]10[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]11[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]12[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]13[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]14[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]15[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]16[/TD]
[/TR]
[TR]
[TD="class: xl84, bgcolor: #DDD9C4"] [/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Sun[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Mon[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Tue[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Wed[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Thu[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Fri[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Sat[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Sun[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Mon[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Tue[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Wed[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Thu[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Fri[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Sat[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Sun[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Mon[/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 1[/TD]
[TD="class: xl86"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl86, bgcolor: #EEECE1"] [/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 2[/TD]
[TD="class: xl79"] [/TD]
[TD="class: xl80"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl79, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 3[/TD]
[TD="class: xl86"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl86, bgcolor: #EEECE1"] [/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 4[/TD]
[TD="class: xl79"] [/TD]
[TD="class: xl80"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl79, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 5[/TD]
[TD="class: xl86"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl86, bgcolor: #EEECE1"] [/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 6[/TD]
[TD="class: xl79"] [/TD]
[TD="class: xl80"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl79, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 7[/TD]
[TD="class: xl86"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl86, bgcolor: #EEECE1"] [/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 8[/TD]
[TD="class: xl79"] [/TD]
[TD="class: xl80"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl79, bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
Worksheet 2 layout:
[TABLE="width: 239"]
<colgroup><col width="47" style="width: 35pt; mso-width-source: userset; mso-width-alt: 1718;"> <col width="68" style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486;" span="4"> <tbody>[TR]
[TD="class: xl77, width: 47, bgcolor: #FCD5B4"]Week No[/TD]
[TD="class: xl78, width: 68, bgcolor: #FCD5B4"]Week Start[/TD]
[TD="class: xl78, width: 68, bgcolor: #FCD5B4"]Week Ending[/TD]
[TD="class: xl76, width: 68, bgcolor: #E6B8B7"]Annual Leave (A)[/TD]
[TD="class: xl75, width: 68, bgcolor: #E6B8B7"]Over time (OT)[/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]1[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]01 Jan[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]07 Jan[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]2[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]08 Jan[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]14 Jan[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]3[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]15 Jan[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]21 Jan[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]4[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]22 Jan[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]28 Jan[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]5[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]29 Jan[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]04 Feb[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]6[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]05 Feb[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]11 Feb[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]7[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]12 Feb[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]18 Feb[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]8[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]19 Feb[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]25 Feb[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]9[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]26 Feb[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]04 Mar[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
The formula I am looking for is to be inserted into worksheet 2, from the information be ascertained from worksheet 1 so for calculating for total annual leave at week 1 for all employees the range would be B8:H51, with the permutations to count being a = 12 hours, a11 = 11 hours, a10 = 10hours leave taken all the way down to a1 where only 1 hour of leave has been taken.
Hopefully I have explained it good enough, if not please get back in touch.
I am attempting to extract information from worksheet 1 into worksheet 2.
Worksheet 1 is a record of employees and their hours worked on a daily basis for the full year.
1 employee in per row for 50 rows, 365 columns for each day of the year.
I am required to report back on a weekly basis the hours each individual has taken for annual leave, worked, overtime, sick leave etc
Below is an extract from worksheet 1 looks like
[TABLE="width: 444"]
<colgroup><col width="101" style="width: 76pt; mso-width-source: userset; mso-width-alt: 3693;"> <col width="30" style="width: 23pt; mso-width-source: userset; mso-width-alt: 1097;" span="16"> <tbody>[TR]
[TD="class: xl83, width: 101, bgcolor: transparent"] [/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]01[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]02[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]03[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]04[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]05[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]06[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]07[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]08[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]09[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]10[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]11[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]12[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]13[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]14[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]15[/TD]
[TD="class: xl75, width: 30, bgcolor: #DDD9C4"]16[/TD]
[/TR]
[TR]
[TD="class: xl84, bgcolor: #DDD9C4"] [/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Sun[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Mon[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Tue[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Wed[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Thu[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Fri[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Sat[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Sun[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Mon[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Tue[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Wed[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Thu[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Fri[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Sat[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Sun[/TD]
[TD="class: xl76, bgcolor: #DDD9C4"]Mon[/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 1[/TD]
[TD="class: xl86"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl86, bgcolor: #EEECE1"] [/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 2[/TD]
[TD="class: xl79"] [/TD]
[TD="class: xl80"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl79, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 3[/TD]
[TD="class: xl86"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl86, bgcolor: #EEECE1"] [/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 4[/TD]
[TD="class: xl79"] [/TD]
[TD="class: xl80"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl79, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 5[/TD]
[TD="class: xl86"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl86, bgcolor: #EEECE1"] [/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 6[/TD]
[TD="class: xl79"] [/TD]
[TD="class: xl80"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl79, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 7[/TD]
[TD="class: xl86"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87, bgcolor: #EEECE1"] [/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]d[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl87"]n[/TD]
[TD="class: xl86, bgcolor: #EEECE1"] [/TD]
[/TR]
[TR]
[TD="class: xl81, width: 101, bgcolor: #EEECE1"]Employee 8[/TD]
[TD="class: xl79"] [/TD]
[TD="class: xl80"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"] [/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]d[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl80, bgcolor: transparent"]n[/TD]
[TD="class: xl79, bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
Worksheet 2 layout:
[TABLE="width: 239"]
<colgroup><col width="47" style="width: 35pt; mso-width-source: userset; mso-width-alt: 1718;"> <col width="68" style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486;" span="4"> <tbody>[TR]
[TD="class: xl77, width: 47, bgcolor: #FCD5B4"]Week No[/TD]
[TD="class: xl78, width: 68, bgcolor: #FCD5B4"]Week Start[/TD]
[TD="class: xl78, width: 68, bgcolor: #FCD5B4"]Week Ending[/TD]
[TD="class: xl76, width: 68, bgcolor: #E6B8B7"]Annual Leave (A)[/TD]
[TD="class: xl75, width: 68, bgcolor: #E6B8B7"]Over time (OT)[/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]1[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]01 Jan[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]07 Jan[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]2[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]08 Jan[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]14 Jan[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]3[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]15 Jan[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]21 Jan[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]4[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]22 Jan[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]28 Jan[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]5[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]29 Jan[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]04 Feb[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]6[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]05 Feb[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]11 Feb[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]7[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]12 Feb[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]18 Feb[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]8[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]19 Feb[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]25 Feb[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl79, bgcolor: #FCD5B4"]9[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]26 Feb[/TD]
[TD="class: xl80, bgcolor: #DCE6F1"]04 Mar[/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[TD="class: xl81, bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
The formula I am looking for is to be inserted into worksheet 2, from the information be ascertained from worksheet 1 so for calculating for total annual leave at week 1 for all employees the range would be B8:H51, with the permutations to count being a = 12 hours, a11 = 11 hours, a10 = 10hours leave taken all the way down to a1 where only 1 hour of leave has been taken.
Hopefully I have explained it good enough, if not please get back in touch.