ConstantCustard
New Member
- Joined
- Jul 19, 2023
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
- Mobile
I have changed contract and the new leave policy is only for working days. Being in the middle east, the weekend is Friday and Saturday, which is why I have used WORKDAY.INTL.
The issue I have is transferring the accrued leave balance from the last working day of the previous month to the starting balance for the next month.
As this is working days, the last working day will change cell reference for each month and year.
I can reference the total accrued leave from the previous month manually as I setup the calendar for each year, however I am hoping there is a smarter way to achieve this
For January the last working day accrued leave is at Y6
I am trying to reference this value in B9 to act as the starting balance for February
As you can see for each month the cell reference for the last working day accrued leave changes.
This is where my knowledge of Excel runs out.
The issue I have is transferring the accrued leave balance from the last working day of the previous month to the starting balance for the next month.
As this is working days, the last working day will change cell reference for each month and year.
I can reference the total accrued leave from the previous month manually as I setup the calendar for each year, however I am hoping there is a smarter way to achieve this
For January the last working day accrued leave is at Y6
I am trying to reference this value in B9 to act as the starting balance for February
As you can see for each month the cell reference for the last working day accrued leave changes.
This is where my knowledge of Excel runs out.
Cell Formulas | ||
---|---|---|
Range | Formula | |
C4,C10,C7 | C4 | =DATE($B$1,$B4,1) |
D4,D10:Z10,D7 | D4 | =WORKDAY.INTL($C4,C$3,"0000110") |
E4:Z4 | E4 | =WORKDAY.INTL($C4,D3,"0000110") |
C6 | C6 | =SUM((IF(C5<>$A$3,$A$2)),(IF(C34=$A$3,$A$4))) |
D6:Y6,D12:X12,D9:Y9 | D6 | =SUM((IF(D5<>$A$3,$A$2)),(IF(D5=$A$3,$A$4)),C6) |
E7:Z7 | E7 | =WORKDAY.INTL($C7,D3,"0000110") |
B9 | B9 | =Y6 |
C9,C12 | C9 | =SUM((IF(C8<>$A$3,$A$2)),(IF(C38=$A$3,$A$4)),B9) |
B12 | B12 | =V9 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
U4:Z4 | Expression | =MONTH(U4)<>$B$4 | text | NO |
U7:Z7 | Expression | =MONTH(U7)<>$B$7 | text | NO |
U10:Z10 | Expression | =MONTH(U10)<>$B$10 | text | NO |
C4:Z39 | Dates Occurring | today | text | NO |
C6:Z6,B9:Z9,B12:Z12,B15:Z15,B18:Z18,B21:Z21,B24:Z24,B27:Z27,B30:Z30,B33:Z33,B36:Z36,B39:Z39 | Cell Value | >=10 | text | NO |
C6:Z6,B9:Z9,B12:Z12,B15:Z15,B18:Z18,B21:Z21,B24:Z24,B27:Z27,B30:Z30,B33:Z33,B36:Z36,B39:Z39 | Cell Value | between 0 and 1 | text | NO |