+ Reply to Thread
Results 1 to 21 of 21

How to Exclude Weekends in Employee Absence Tracker Count

  1. #1
    Registered User
    Join Date
    07-28-2018
    Location
    Jordan
    MS-Off Ver
    2016
    Posts
    7

    How to Exclude Weekends in Employee Absence Tracker Count

    Hello experts, Please need help. I am creating a employee holiday and absence calendar and how can I exclude specific columns which is weekend with =countif()
    Last edited by pugz; 07-28-2018 at 05:03 AM.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Employee absence tracker

    I suggest you take a look at the functions in Excel
    NETWORKDAYS will exclude the weekends and if you add a range that contains holidays even those will not be counted.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    07-28-2018
    Location
    Jordan
    MS-Off Ver
    2016
    Posts
    7

    Re: Employee absence tracker

    Thanks so much Keebellah, I tried NETWORKDAYS it did not work for me. My intension is to count rows when mark with holidays but excluding weekends even if the weekends are marked too.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    Thanks for updating the title.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    07-28-2018
    Location
    Jordan
    MS-Off Ver
    2016
    Posts
    7

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    Dear, Here what I want to do. in this holiday planning I would like exclude weekends, so even if the weekend is filled or accidentally filled they will be excluded in the total.
    I hope you get the attachement here
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    So, for example in AH20 (September sheet):

    =SUMPRODUCT((C20:AG20="x")*(WEEKDAY(C6:AG6,1)<6))

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  8. #8
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    Dear to you too, first let's put things right.
    The worksheet for September has errors. because you enter a date in two different locations, C6 and C7 you make mistakes, C7 is for 2019 and C6 is for 2018
    I corrected this for you and made it a little more efficient.
    1. In B5 you enter the date for the the first day of that month.
    2. C6 is = to B5
    3. C7 is = B5
    4. Then conditional formatting for the area $C$8:$AG$45 to highlight the weekend days so that you do not have to do that every time you create a new month

    I have not done the formula yet, I am not that great with formulas, but will try and see if I can help.
    For now just uploading the correct version (only September) you can do that for the other month

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    'Dear' is the English translation of 'habibi', which is used often in Arabic countries as a term of endearment (men to men as well as men to women and women to men). It's a bit like saying 'mate' or 'love' in English.

    We often see it used here in posts by members from Arabic-speaking countries.
    Last edited by AliGW; 07-29-2018 at 06:58 AM.

  10. #10
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    Thank you for the lesson, will keep it in mind, I used to be able to read and write it (1966) but lack of practice well... lost it a bit, but did not know that 'Dear' translated from 'habibi' , learned something new

    Okay, I got a working solution for September.
    I don't know if I can explian it correctly but here goes.
    I used the area C5 AG5 to place a 1 if it's a weekend day, else it's a 0
    I also unmerged the cells under TOTAL DAYS and placed the letter for that option in the row below (row 7) and this I placed in the formula's

    The formula in row 20

    Please Login or Register  to view this content.
    Hope that when you look at it, it becomes clear.

  11. #11
    Registered User
    Join Date
    07-28-2018
    Location
    Jordan
    MS-Off Ver
    2016
    Posts
    7

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    Ohhhh yes I forgot to clear data, Appologies .

  12. #12
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    About the holidays, I added a worksheet named Holidays.
    Fill in the dates for the public holidays and the other Holidays.
    These are two dynamic ranges named Public_Holidays and Holidays, you can use these to show these too.
    Fill these in and I'll help you once you're done.
    August is updated too.

  13. #13
    Registered User
    Join Date
    07-28-2018
    Location
    Jordan
    MS-Off Ver
    2016
    Posts
    7

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    Dears, WOW.... You are a genious guys! AliGW & Keebellah thank you ever so much. Both works well I just wonder which formula will work better if added public holidays?

    Thank you so much

  14. #14
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    You will have to make minor modifications once you have the public holidays in the sheet

  15. #15
    Registered User
    Join Date
    07-28-2018
    Location
    Jordan
    MS-Off Ver
    2016
    Posts
    7

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    Dear Keeballah, Mainly this Holiday and absence planing is for the year 2019 and beyond and I am just starting to prepare this earlier. So About the holiday is undecided yet my most concern now is how can I change weekend to Fri, Sat? I am trying but cant make it
    Last edited by pugz; 07-29-2018 at 07:55 AM.

  16. #16
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    My mistake, I did not take it into account that the weekends are Friday and Saturday in Islamic countries
    in row 5

    Please Login or Register  to view this content.
    should be

    Please Login or Register  to view this content.

    Weekdays start with 1 (Sunday) through 7 (Saturday), so weekend days for you are 6 (Friday) and 7 (Saturday)

    The same with the Conditional formatting

  17. #17
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    Corrected for Islamic weekends

  18. #18
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    I added two Islamic public holidays and as holidays the beginning of Ramadan for 2018

  19. #19
    Registered User
    Join Date
    07-28-2018
    Location
    Jordan
    MS-Off Ver
    2016
    Posts
    7

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    Dear Keebellah.... Habibi, Thank you everso much for solving my problem. You are a genious you just inpire me more to study excel. Thank you... Thank you!

  20. #20
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  21. #21
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: How to Exclude Weekends in Employee Absence Tracker Count

    I am very happy that my solution pleases you.
    Excel permits you to do many things, the only thing you really need is time and not be afraid to try things out.
    Just post if you have questions.
    Happy coding.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Absence Tracker Template by employee
    By sabrinaxiomara in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-07-2015, 09:44 PM
  2. [SOLVED] Employee Absence Schedule
    By CPAC in forum Excel General
    Replies: 6
    Last Post: 06-08-2015, 06:37 AM
  3. Absence tracker problem
    By pandabear28 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-12-2014, 05:23 AM
  4. Replies: 1
    Last Post: 07-31-2014, 01:43 AM
  5. Absence Tracker will not calculate
    By Vmgballer1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-13-2013, 08:48 AM
  6. [SOLVED] Employee Absence Schedule Template
    By Jayant in forum Excel General
    Replies: 10
    Last Post: 06-04-2013, 10:18 AM
  7. Check this Employee was off or Absence
    By oxogen in forum Excel General
    Replies: 3
    Last Post: 04-01-2013, 10:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1