+ Reply to Thread
Results 1 to 8 of 8

Timekeeping file in Excel

  1. #1
    Forum Contributor
    Join Date
    10-06-2017
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    123

    Timekeeping file in Excel

    Hello all,

    I am trying to make a timekeeping file for my wife's job and i am so stuck

    Attached you can find an example.

    The ideea is that, in my country, if i am working on saturday i must be free next monday. I tried to automatize a little bit the table, since there are around 200 people on it and she must make it every month...

    So, right now i must combine the formula on M9 with another formula that should look if the last saturday (in this case K9) contains a "/" (free) or an "8" (was working 8 hours). If last saturday contains "/" than M9 should contain an "8", if last saturday contains "8", than M9 should contain an "R" (from recovery).

    I am sure that this can be done much easier than i did, that's why i am asking for help.

    Thank you in advance
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Timekeeping file in Excel

    =IF(OR(WEEKDAY(F$8,)=2,WEEKDAY(F$8)=3,WEEKDAY(F$8)=4,WEEKDAY(F$8)=5,WEEKDAY(F$8)=6),"8","/")

    you could change to

    =IF(AND(WEEKDAY(F$8,)>=2,WEEKDAY(F$8)<=6),"8","/")

    Or if you use the operator and just do a LESS than
    weekday(f$8 , 2) < 6

    what days are automatically filled in
    Tue to Sat ?

    dont understand the automation if timekeeping
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    10-06-2017
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    123

    Re: Timekeeping file in Excel

    Thank you for your answer etaf,
    Your solution simplify the formula, a lot.

    Both of them are working great, even the second one:
    =IF(WEEKDAY(I$8;2) < 6; 8; "/")

    Considering the fact that she will do this every month and the time is limited, i tried to simplify everything as much as possible. For example, if she will change the month in E2, everything will change, including weekends.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Timekeeping file in Excel

    just clarifying

    you want to automatically set
    Sun = /
    Tues to Friday to 8
    sat manually type in 8 or /
    if Sat = 8 - then Mon = /

    and all automatically except the sat

    what about typing in holiday/training / sickness

  5. #5
    Forum Contributor
    Join Date
    10-06-2017
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    123

    Post Re: Timekeeping file in Excel

    Sorry for not being too clear in explaining what exactly am i looking for

    I attached another file that should explain better:
    - we are only allowed to work two weekends every month, so if i am working in 05.01 (J9 = Saturday) i must recover this day on next Monday (L9 = "R"). So when i manually add "8" to J9, the following Monday (L9) should turn from "8" to "R".
    - Then automatically, next Saturday should be free (Q9)and that means that S9 should be a normal working day
    - then the third Saturday (Y9) will be a working day again, resulting that the third Monday of the month (AA9) will be free again ("R")

    So all days will be auto complete with 8, except saturdays and sundays.
    When i manually enter 8 on J9, L9 should transform from 8 to "R", nothing should be changed on next weekend (Q9 & R9), and then Y9 should be again 8 and AA9 should be again "R"

    I hope i made myself understood )
    It's so easy in my head

    Thanx again.

    Edit: regarding holiday/training / sickness, they will be added manually...
    Attached Files Attached Files

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Timekeeping file in Excel

    i have done for any weekend - see attached
    =IF(AND(WEEKDAY(F8,2)=1,D9=8),"R",IF(WEEKDAY(F$8,2) < 6, 8, "/"))
    Theres possibly an issue on the first 2 cells
    as referring back to SAT , if F8 is a Monday - referes to the text - which should be fine , as i dont think you are putting an 8 in those cells]

    So all days will be auto complete with 8, except saturdays and sundays.
    i have not checked the 2 per month , as i assume you would be entering data into the saturdays - so wouldn't enter 8 in sat if not allowed
    but can probably do some sort of countif()

    Anything happen if 8 entered for a Sunday ?
    Attached Files Attached Files
    Last edited by etaf; 04-16-2019 at 01:49 AM.

  7. #7
    Forum Contributor
    Join Date
    10-06-2017
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    123

    Re: Timekeeping file in Excel

    Thank you so much etaf.
    Everything is working as it should.

    Best regards!

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Timekeeping file in Excel

    you are welcome

+ 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. Excel formula for timekeeping
    By hbroson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-28-2019, 11:10 PM
  2. Automated timekeeping
    By Xandler in forum Excel General
    Replies: 1
    Last Post: 07-03-2017, 12:17 PM
  3. [SOLVED] Instruction for timekeeping file
    By Jenny_Truong in forum Excel General
    Replies: 5
    Last Post: 08-25-2016, 11:07 AM
  4. VBA to Prevent Timekeeping Values from being Negative
    By phelbin in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-01-2016, 02:53 PM
  5. Timekeeping
    By cbdeajr in forum Excel General
    Replies: 8
    Last Post: 07-26-2011, 07:00 AM
  6. timekeeping, merge & sort non-adjacent cells
    By BeatBama in forum Excel General
    Replies: 1
    Last Post: 01-14-2011, 12:16 PM
  7. Timekeeping
    By dyscjocki in forum Excel General
    Replies: 5
    Last Post: 09-05-2009, 04:29 PM

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