masud8956
Board Regular
- Joined
- Oct 22, 2016
- Messages
- 163
- Office Version
- 2016
- 2011
- 2007
- Platform
- Windows
Hello experts!
I don't know if it is too much to ask.
I have a situation like the following:
A2:A10 shows the timeline of a project. C2:C10 lists all working days between A2 and A10 excluding weekends (marked in red)and public holidays. C2=A2 but for C3 I have used
and copied it down to C10.
Public holidays (marked in blue) other than weekends are listed in I2:I10. Column B and D lists amount of day wise work hour by an employee.
In D2:D10 I have used the formula
What I am looking for is:
1. A formula at E2:E10 to list all holidays between A2:A10 automatically and a formula at F2:F10 to list the work hours basing on E2:E10 date.
2. I also need a formula at G2:H10 to list all the dates on which the employee actually worked (including holidays) along with the work hours in progressive format.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]DATE RANGE[/TD]
[TD="align: center"]WORK DURATION
(HR)[/TD]
[TD="align: center"]DATES
(EXCLUDING ALL HOLIDAYS)[/TD]
[TD="align: center"]WORK DURATION
ON WORKDAYS (HR)[/TD]
[TD="align: center"]LIST OF HOLIDAYS[/TD]
[TD="align: center"]WORK DURATION HOLIDAY
(HR)[/TD]
[TD="align: center"]ACTUAL WORK DAYS[/TD]
[TD="align: center"]PROGRESSIVE WK HR[/TD]
[TD="align: center"]Public holidays (other than weekly holidays)[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]5 NOV 19[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]5 NOV 19[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]8 NOV 19[/TD]
[TD="align: center"][/TD]
[TD="align: center"]5 NOV 19[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]10 NOV 19[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]6 NOV 19[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]6 NOV 19[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]9 NOV 19[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]6 NOV 19[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]12 NOV 19[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]7 NOV 19[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]7 NOV 19[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]10 NOV 19[/TD]
[TD="align: center"][/TD]
[TD="align: center"]7 NOV 19[/TD]
[TD="align: center"]21[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]8 NOV 19[/TD]
[TD="align: center"][/TD]
[TD="align: center"]11 NOV 19[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]12 NOV 19[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]9 NOV 19[/TD]
[TD="align: center"]31[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]9 NOV 19[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]13 NOV 19[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]11 NOV 19[/TD]
[TD="align: center"]40[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]10 NOV 19[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]12 NOV 19[/TD]
[TD="align: center"]42[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]11 NOV 19[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]13 NOV 19[/TD]
[TD="align: center"]52[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"]12 NOV 19[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"]13 NOV 19[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Is it possible? I do not prefer VBA unless there is no other way around.
TIA
I don't know if it is too much to ask.
I have a situation like the following:
A2:A10 shows the timeline of a project. C2:C10 lists all working days between A2 and A10 excluding weekends (marked in red)and public holidays. C2=A2 but for C3 I have used
Code:
=WORKDAY.INTL(C2,1,7,$H$2:$H$10)
Public holidays (marked in blue) other than weekends are listed in I2:I10. Column B and D lists amount of day wise work hour by an employee.
In D2:D10 I have used the formula
Code:
=VLOOKUP(C2,$A$2:$B$10,2)
What I am looking for is:
1. A formula at E2:E10 to list all holidays between A2:A10 automatically and a formula at F2:F10 to list the work hours basing on E2:E10 date.
2. I also need a formula at G2:H10 to list all the dates on which the employee actually worked (including holidays) along with the work hours in progressive format.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]DATE RANGE[/TD]
[TD="align: center"]WORK DURATION
(HR)[/TD]
[TD="align: center"]DATES
(EXCLUDING ALL HOLIDAYS)[/TD]
[TD="align: center"]WORK DURATION
ON WORKDAYS (HR)[/TD]
[TD="align: center"]LIST OF HOLIDAYS[/TD]
[TD="align: center"]WORK DURATION HOLIDAY
(HR)[/TD]
[TD="align: center"]ACTUAL WORK DAYS[/TD]
[TD="align: center"]PROGRESSIVE WK HR[/TD]
[TD="align: center"]Public holidays (other than weekly holidays)[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]5 NOV 19[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]5 NOV 19[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]8 NOV 19[/TD]
[TD="align: center"][/TD]
[TD="align: center"]5 NOV 19[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]10 NOV 19[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]6 NOV 19[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]6 NOV 19[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]9 NOV 19[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]6 NOV 19[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]12 NOV 19[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]7 NOV 19[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]7 NOV 19[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]10 NOV 19[/TD]
[TD="align: center"][/TD]
[TD="align: center"]7 NOV 19[/TD]
[TD="align: center"]21[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]8 NOV 19[/TD]
[TD="align: center"][/TD]
[TD="align: center"]11 NOV 19[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]12 NOV 19[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]9 NOV 19[/TD]
[TD="align: center"]31[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]9 NOV 19[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]13 NOV 19[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]11 NOV 19[/TD]
[TD="align: center"]40[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]10 NOV 19[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]12 NOV 19[/TD]
[TD="align: center"]42[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]11 NOV 19[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]13 NOV 19[/TD]
[TD="align: center"]52[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"]12 NOV 19[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"]13 NOV 19[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Is it possible? I do not prefer VBA unless there is no other way around.
TIA
Last edited: