Jan 16 2019 04:50 PM
Anyone know how to eliminate the extra days being added to the end of each month on this Microsoft calendar?
Jan 16 2019 05:50 PM
Hello,
can you post the formula that created the day number?
Jan 17 2019 02:27 AM
SolutionIt looks like that's Employee Attendance Record Template.
They use formulas
For the beginning of the month
=IFERROR(IF(TEXT(DATE(Calendar_Year,ROW($A1),1),"ddd")=LEFT(C$5,3),DATE(Calendar_Year,ROW($A1),1),""),"")
In the middle of calendar
=IFERROR(IF(R6>=1,R6+1,""),"")
and at the end of it
=IFERROR(IF(AND(AM6>=1,AM6+1<=DATE(Calendar_Year,ROW($A1)+1,0)),AM6+1,""),"")
You may safely copy cell from the end of the calendar with latest formula (e.g. in column AR) and paste it into the cells starting, let say, from column X or so.
Jan 17 2019 10:36 AM
I copied cells AL through AR and pasted the copied formulas in cells AE through AK and it removed all of the extra days in the month. Now each month only reflects day 1 through 28, 30 or 31 depending on its corresponding last day. Thank you for your help Sergei. I'm still a rookie with excel, but I'm learning everyday.
Jan 17 2019 10:38 AM
Ingeborg - thank you for responding. I received an answer that helped me, but I didn't want to leave you unrecognized. Thank you for being willing to assist me 🙂
Jan 17 2019 01:06 PM
Now that I've copied the formulas as mentioned the "Key Statistics" box counts are not computing.
The formula in the key stats boxes is as follows:
=SUMIFS(LeaveTracker[Days],LeaveTracker[Employee Name],valSelEmployee,LeaveTracker[Start Date],">="&DATE(Calendar_Year,1,1),LeaveTracker[End Date],"<"&DATE(Calendar_Year+1,1,1))
=SUMIFS(LeaveTracker[Days],LeaveTracker[Employee Name],valSelEmployee,LeaveTracker[Start Date],">="&DATE(Calendar_Year,1,1),LeaveTracker[End Date],"<"&DATE(Calendar_Year+1,1,1),LeaveTracker[Type of Leave],'Leave Types'!B4)
It was computing just fine until I copied and pasted the cells as previously discussed.
Jan 17 2019 02:51 PM
Hi Charoid,
What do you mean under Not computing? I tested it with Employees #1 and #3, numbers in the boxes are the same.
To change the formula select cells AR6:AR17 and drag selection to the left till middle of the calendar. Please check attached changed file.
Jan 17 2019 03:05 PM
May 25 2021 04:39 AM
May 25 2021 05:05 AM
Formatting on the Calendar View sheet:
Select C6.
On the home tab of the ribbon, select Conditional Formatting > Manage Rules...
Select the last rule and click Edit.
You'll see the formula
=OR(LEFT(C$5,1)="S", COUNTIF(lstHolidays, C6)>0)
Change it to
=OR(LEFT(C$5,1)="F", COUNTIF(lstHolidays, C6)>0)
2) NETWORKDAYS formulas. On the Calendar View and Employee Leave Tracker sheets, there are several formulas that use NETWORKDAYS. For example, in H20 on the Calendar View sheet:
=NETWORKDAYS(DATE(Calendar_Year,1,1),EDATE(DATE(Calendar_Year,1,1),12)-1)
Change this to
=NETWORKDAYS.INTL(DATE(Calendar_Year,1,1),EDATE(DATE(Calendar_Year,1,1),12)-1,16,lstHolidays)
Similar in H21.
And in F4 on the Employee Leave Tracker sheet:
=NETWORKDAYS([@[Start Date]],[@[End Date]],lstHolidays)
Change this to
=NETWORKDAYS.INTL([@[Start Date]],[@[End Date]],16,lstHolidays)
and fill down.
May 25 2021 05:32 AM
Dec 22 2022 01:49 AM
Hi Sir,
I would like to change the holiday from sat sun to Friday.
Could you plz help me for that
Dec 22 2022 03:49 AM
See my previous reply in this discussion. If you want Friday as the only weekend day, use NETWORKDAYS.INTL with 16 as 3rd argument.
For example, with dates in A2 and B2:
=NETWORKDAYS.INTL(A2, B2, 16)
Dec 04 2023 03:19 PM
Dec 06 2023 09:41 AM
Dec 06 2023 12:08 PM
In
=IFERROR(IF(AND(AG6>=1,AG6+1,<=DATE(Calendar_Year,ROW($A1)+1,0)),AG6+1,""),"")
there is no cell reference before <=
It's not clear what you're trying to do...
Jan 17 2019 02:27 AM
SolutionIt looks like that's Employee Attendance Record Template.
They use formulas
For the beginning of the month
=IFERROR(IF(TEXT(DATE(Calendar_Year,ROW($A1),1),"ddd")=LEFT(C$5,3),DATE(Calendar_Year,ROW($A1),1),""),"")
In the middle of calendar
=IFERROR(IF(R6>=1,R6+1,""),"")
and at the end of it
=IFERROR(IF(AND(AM6>=1,AM6+1<=DATE(Calendar_Year,ROW($A1)+1,0)),AM6+1,""),"")
You may safely copy cell from the end of the calendar with latest formula (e.g. in column AR) and paste it into the cells starting, let say, from column X or so.