Forum Discussion

  • Haytham Amairah's avatar
    Haytham Amairah
    Silver Contributor

    Dear,

     

    Go to the Conditional Formatting Rules Manager, and select the last rule.

     

     

     

     

    If you want the weedend to be Friday & Saturday, replace that formula by this one: 

     

    =OR(LEFT(C$5,2)="FR",LEFT(C$5,2)="SA", COUNTIF(lstHolidays, C6)>0)

     

    Or, if you want it to be Friday only or Saturday, use this:

     

    For Friday:

     

    =OR(LEFT(C$5,2)="FR", COUNTIF(lstHolidays, C6)>0)

     

    For Saturday:

     

    =OR(LEFT(C$5,2)="SA", COUNTIF(lstHolidays, C6)>0)

     

     

    Hope you find this information useful!

    Regards,

    • Noctis Fate's avatar
      Noctis Fate
      Copper Contributor

      In my country Saturday and Sunday are counted in your "vacation" time frame. I see that you show how to select different dates for weekends, but I need the chart to count all days to be working days. So that the vacation count on the "Calendar View" and "Employee Leave Tracker" Show the correct amount of dates.

       

      For example I have logged in the "Employee Leave Tracker" Employee 1 Start date Jan 29, 2018, End Date Feb 23rd, 2018; it counts as 20 days when I want it to count as 26 days (Including Sat and Sun).

       

      Appreciate your help,

      Thanks in advance.

    • littlema1007's avatar
      littlema1007
      Copper Contributor

      I have 2 questions:

       

      1. I'm using the excel 2013 employee attendance tracker on excel but I need to be able to count sat & sun as work days. We work 7 days a week.

       

      2. I have added more leave types but the colors are not corresponding on the calendar nor counting them...I have copied the formula over but it still isn't working properly.

       

      Can anyone assist with either of these?

      • SergeiBaklan's avatar
        SergeiBaklan
        MVP

        Hi,

         

        If all days are working when in formula for Work Days change NETWORKDAYS on NETWORKDAY.INTL and add third parameter as the string with 7 zeroes (all day on the week are working)

        =NETWORKDAYS.INTL(DATE(Calendar_Year,1,1),EDATE(DATE(Calendar_Year,1,1),12)-1,"0000000")

        For the leaves if you added more types you have OR condition (in Leave 1 OR in Leave 2 OR in Leave 3, ...).

        Straightforward way to correct formula in conditional formatting is to take sum of COUNTIFS for each leave (instead of only one leave in template)

        =(
        COUNTIFS(lstEmpNames,valSelEmployee,lstSdates,"<="&C6,lstEDates,">="&C6,lstHTypes,'Leave Types'!$B$4)+
        COUNTIFS(lstEmpNames,valSelEmployee,lstSdates,"<="&C6,lstEDates,">="&C6,lstHTypes,'Leave Types'!$B$8)+
        COUNTIFS(lstEmpNames,valSelEmployee,lstSdates,"<="&C6,lstEDates,">="&C6,lstHTypes,'Leave Types'!$B$9)
        )>0

        Like attached

    • Dan Young's avatar
      Dan Young
      Copper Contributor

      Hi,

      I run a department of around 40 colleagues, many of which have different days off.  I would like to use this template but im not sure how i can implement it for each colleagues days off.

       

      Any help would be greatly appreciated

       

      Dan

      • kishorvijayKV's avatar
        kishorvijayKV
        Copper Contributor

        Do we have a work around for this one ?  I am also looking for custom options to pick /assign working days for employees / week off for specific employees

    • Haidar Habibie's avatar
      Haidar Habibie
      Copper Contributor

      Hi Sergei.

       

      How if I want to categorize who are employees that get Sat & Sun Holiday and who are employees that only get Sun for Holiday using conditional formatting?

      Kindly need your help ASAP.

Resources