+ Reply to Thread
Results 1 to 10 of 10

calculating vacation - working every day 12 h shifts - adding religious holidays

  1. #1
    Registered User
    Join Date
    01-03-2016
    Location
    Serbia
    MS-Off Ver
    2007
    Posts
    25

    calculating vacation - working every day 12 h shifts - adding religious holidays

    Hy,

    =IFERROR(WORKDAY(WORKDAY(EDATE(B20;0);-1);C20;$I$20:$I$28);"enter first day of vacation")

    B20 - begining (date); C20 - number of vacation days(number); I20-I28 non working days - holidays(date);

    whit this formula I'm calculating vacation for employees according to inserted beginning an days of vacation (it excludes holidays and the last weekend of vacation)


    I need to add one more date to it, religious holiday, different for each employee, that prolongates the vacation for one day, if it's within vacation date and if it is not a weekday (sun, sat)

    how to do that?

    Thanks

  2. #2
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: calculating vacation - working every day 12 h shifts - adding religious holidays

    It might be best to upload an example of what you are trying to achieve

    This is the method I have always used to upload files.

    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  3. #3
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: calculating vacation - working every day 12 h shifts - adding religious holidays

    duplicate deleted
    Last edited by Toonies; 04-30-2016 at 07:20 AM.

  4. #4
    Registered User
    Join Date
    01-03-2016
    Location
    Serbia
    MS-Off Ver
    2007
    Posts
    25

    Re: calculating vacation - working every day 12 h shifts - adding religious holidays

    =IFERROR(WORKDAY(WORKDAY(EDATE(B20;0);-1);C20;$I$20:$I$28)+IF(AND(IF(AND(WEEKDAY(E20)<>1;WEEKDAY(E20)<>7);E20;0)>=B20;IF(AND(WEEKDAY(E20)<>1;WEEKDAY(E20)<>7);E20;0)<=D20);1;0);"enter first day of vacation")

    i did it like this (but i have two cels: without religious holiday and with it)

  5. #5
    Registered User
    Join Date
    01-03-2016
    Location
    Serbia
    MS-Off Ver
    2007
    Posts
    25

    Re: calculating vacation - working every day 12 h shifts - adding religious holidays

    ..............
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: calculating vacation - working every day 12 h shifts - adding religious holidays

    You might consider making a separate list of holidays for each religion. You would need to indicate the religion of the employee somewhere in the row, I inserted a column B. You could then use an IF function to find the holidays corresponding to the religion in your formula such as:
    Please Login or Register  to view this content.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    01-03-2016
    Location
    Serbia
    MS-Off Ver
    2007
    Posts
    25

    Re: calculating vacation - working every day 12 h shifts - adding religious holidays

    needs to be added an extra day into vacation only for employees that celebrates that perticular religious holiday an if its between the begining and end of employees vacation.. Its not added if it falls on Saturday or Sunday. Employees select the begining of vacation and the number of days.Vacation can not start on weekday

  8. #8
    Registered User
    Join Date
    01-03-2016
    Location
    Serbia
    MS-Off Ver
    2007
    Posts
    25

    Re: calculating vacation - working every day 12 h shifts - adding religious holidays

    thanks

    how can i calculate, for each day in a year, how much employees are away based on their vacation?

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: calculating vacation - working every day 12 h shifts - adding religious holidays

    Quote Originally Posted by milosvica View Post
    how can i calculate, for each day in a year, how much employees are away based on their vacation?
    If I understand the question correctly you'd like to find how many employees will be away from the job due to holidays for each working day (excludes Saturday and Sunday). I put two columns on the vacation sheet. I put the date Jan. 1, 2016 in A2 and filled the rest of the column using the Workday function: =WORKDAY(A2,1) In the second column I used the Index/match formula to find the number of employees that would be taking each holiday from sheet one, I made up a number (100) for the list of non religious holidays:
    Please Login or Register  to view this content.
    Attached is a copy of the worksheet from post #7 with the formulas applied.
    Let me know if you have any questions.

  10. #10
    Registered User
    Join Date
    01-03-2016
    Location
    Serbia
    MS-Off Ver
    2007
    Posts
    25

    Re: calculating vacation - working every day 12 h shifts - adding religious holidays

    Ex.
    300 employees,
    begining of vacation for each one
    end of vacation for each one
    i need to calculate how many.., number of employees that are apsent for each day of a year to make a chart
    relgious holiday is just one day, that employee can take, witch, if falls between vacation date extends vacation for one day.

+ 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. [SOLVED] peRoster Dilemna: calculate hours worked for scific shifts on public holidays using tables
    By Faboolous in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-18-2016, 09:14 AM
  2. Help recognising bank holidays for colleague shifts
    By qetjack in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 11-16-2015, 01:46 PM
  3. Date and time calculation - networkdays, vacation, holidays
    By N8237 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2013, 10:47 AM
  4. Time Calculations with Shifts, Holidays, etc
    By EPGisHere in forum Excel General
    Replies: 4
    Last Post: 11-30-2011, 01:24 PM
  5. Calculating the remaining shifts for a week?
    By tavlrb in forum Excel General
    Replies: 1
    Last Post: 03-05-2011, 07:47 AM
  6. [SOLVED] Calculating working shifts between two hours
    By zbor in forum Excel General
    Replies: 6
    Last Post: 12-20-2010, 10:22 AM
  7. Calculating Costs over varying shifts
    By AussieFreelance in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-21-2007, 08:39 AM

Tags for this Thread

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