johnnyking997
New Member
- Joined
- Dec 16, 2019
- Messages
- 3
- Office Version
- 2019
- Platform
- Windows
Hello!
I hoped it would not be necessary to make a separate thread about my "problem", but I can't find an answer.
I am currently working on a monthly shift calendar that keeps track of how many hours an employee has completed/month, the holiday dates each one reserved for the past, current and next year.
If a specific date is empty(no holiday tag like "CO","CS", etc.), the cell contains the following formula that checks and displays the number of hours that an employee must do on that specific date:
Ex. for E12:
My question to you, how can I keep track of the each employee holidays?
My first ideea was to save the range E12:AI26 to another sheet. I used:
but in the "Current_year_holidays" sheet, I encountered a lot of "#REF!" when pasting:
I am forced to use normal references for ease of use when removing holidays from the calendar by using autofill(it was my first idea on how to "delete" holidays and I haven't found an alternative).
Any tip is appreciated!
Regards,
Alex
I hoped it would not be necessary to make a separate thread about my "problem", but I can't find an answer.
I am currently working on a monthly shift calendar that keeps track of how many hours an employee has completed/month, the holiday dates each one reserved for the past, current and next year.
If a specific date is empty(no holiday tag like "CO","CS", etc.), the cell contains the following formula that checks and displays the number of hours that an employee must do on that specific date:
Ex. for E12:
=IF($B$12 <> "", IF(E8<>"",IF(AND(MOD(E8,4)=0,E8>0),12,IF(AND(MOD(E8,4)=1,E8>0),5,IF(AND(MOD(E8,4)=2,E8>0),7,""))),""), "")
My question to you, how can I keep track of the each employee holidays?
My first ideea was to save the range E12:AI26 to another sheet. I used:
VBA Code:
Worksheets("Calendar").Range("E12:AI26").Copy
Worksheets("Current_year_holidays").Range("some range").PasteSpecial Paste:=xlPasteAll
=IF($B$12<> "", IF(#REF!<>"",IF(AND(MOD(#REF!,4)=0,#REF!>0),12,IF(AND(MOD(#REF!,4)=1,#REF!>0),5,IF(AND(MOD(#REF!,4)=2,#REF!>0),7,""))),""), "")
I am forced to use normal references for ease of use when removing holidays from the calendar by using autofill(it was my first idea on how to "delete" holidays and I haven't found an alternative).
Any tip is appreciated!
Regards,
Alex