Forum Discussion

Chairod's avatar
Chairod
Copper Contributor
Jan 17, 2019
Solved

Excel Calendar adding extra days.

Anyone know how to eliminate the extra days being added to the end of each month on this Microsoft calendar?

 

  • It 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.

15 Replies

  • It 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.

    • liteshine's avatar
      liteshine
      Copper Contributor
      Sergei, could you explain which part of the formula takes off the extra days?
      I have the following in mine currently:
      =IFERROR(IF(W6>=1,W6+1,""),"")
      it's adding 4 days on to the end of the months currently.
      • liteshine's avatar
        liteshine
        Copper Contributor
        When I try to use the =IFERROR(IF(AND(AG6>=1,AG6+1,<=DATE(Calendar_Year,ROW($A1)+1,0)),AG6+1,""),"")
        it gives me the following error:
        there's a problem with this formula.
        not trying to type a formula?
        when the first character is an equal (=) or minus (-) sign, excel thinks it's a formula.
        etc. etc.
    • BostonHR's avatar
      BostonHR
      Copper Contributor

      SergeiBaklan 

      Hi Sir,

      I would like to change the holiday from sat sun to Friday.

      Could you plz help me for that

      • BostonHR 

        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)

    • Jerimax04's avatar
      Jerimax04
      Copper Contributor
      Good day! I hope It will reach you, I would like to ask for your assistance how to make Friday as Weekday. After opening the Employee Attendance Record Template it is set to Saturday and Sunday as weekend. If you can kindly share information how to change the formula to Friday as Weekend.
      Your reply will be much appreciated.
      • HansVogelaar's avatar
        HansVogelaar
        MVP

        Jerimax04 

        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.

    • Chairod's avatar
      Chairod
      Copper Contributor

      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 :)

Resources