+ Reply to Thread
Results 1 to 6 of 6

Instruction for timekeeping file

  1. #1
    Registered User
    Join Date
    08-09-2016
    Location
    Ho Chi Minh, Viet Nam
    MS-Off Ver
    2007
    Posts
    7

    Instruction for timekeeping file

    Attached file is my question for the time keeping file.

    In my time keeping file, I have 2 sheets. The first one is working time sheet, this sheet is used for recording the working day and leaves of staff.
    Detail of Working and leaves day will be showed in staff sheet.
    I want to have a formula which can link from staff sheet to the timesheet sheet for each staff at each day. Such as:
    22 is working day of Pete and in timesheet sheet, the X will be fill on F5
    21 is Sunday in the timesheet it will be empty
    25 is compensation day, in timesheet it will be fill full with CP on I6
    26 is annual leaves, in timesheet it will be fill full with AN on J6
    29 : no Oder day = NO on M6
    This will be recorded the same for Nancy’s row in timesheet sheet.
    Do I need to have a VBA code for this job or I just need a formula?

    Kindly give me the instruction for this case.
    Thank guys.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-17-2012
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    221

    Re: Instruction for timekeeping file

    Hi Jenny

    Please see attached for one solution. I had to change the date formats on the individual time-sheets to match that of the summary time-sheet in order to make the lookup formulas work but it seems to be working okay.

    The formula required is as follows:

    =INDEX(Pete!$I$10:$I$19,MATCH(F$5,Pete!$B$10:$B$19,0))

    Hope this helps
    Attached Files Attached Files

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,120

    Re: Instruction for timekeeping file

    With a Table on sheet 1, assigning the abbreviations to each phrase, this formula will do it:

    =IFERROR(VLOOKUP(VLOOKUP(DAY(E$5),INDIRECT("'"&$D6&"'!$B$9:$C$19"),2,FALSE),Sheet1!$A$1:$B$6,2,FALSE),"")

    in E6, copied across and down. You will need to manually adjust the ranges $B19:$C$19 in your real sheet. This solution will work for ALL people who have timesheets, WITHOUT modification.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 08-25-2016 at 03:09 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    08-09-2016
    Location
    Ho Chi Minh, Viet Nam
    MS-Off Ver
    2007
    Posts
    7

    Re: Instruction for timekeeping file

    HI Jeversf,
    Thank you for quickly intrust,
    This formula is ok for my file now
    Thank you alotd\

  5. #5
    Registered User
    Join Date
    08-09-2016
    Location
    Ho Chi Minh, Viet Nam
    MS-Off Ver
    2007
    Posts
    7

    Re: Instruction for timekeeping file

    Quote Originally Posted by Glenn Kennedy View Post
    With a Table on sheet 1, assigning the abbreviations to each phrase, this formula will do it:

    =IFERROR(VLOOKUP(VLOOKUP(DAY(E$5),INDIRECT("'"&$D6&"'!$B$9:$C$19"),2,FALSE),Sheet1!$A$1:$B$6,2,FALSE),"")

    in E6, copied across and down. You will need to manually adjust the ranges $B19:$C$19 in your real sheet. This solution will work for ALL people who have timesheets, WITHOUT modification.
    HI Glenn,
    Thank you so much for your solution. My file is really good with your formula without any modification

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,120

    Re: Instruction for timekeeping file

    You're welcome and thanks for the Reputation.

+ 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. 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
  2. My instruction
    By odrozd in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 05-18-2013, 11:23 AM
  3. Timekeeping
    By cbdeajr in forum Excel General
    Replies: 8
    Last Post: 07-26-2011, 07:00 AM
  4. timekeeping, merge & sort non-adjacent cells
    By BeatBama in forum Excel General
    Replies: 1
    Last Post: 01-14-2011, 12:16 PM
  5. Timekeeping
    By dyscjocki in forum Excel General
    Replies: 5
    Last Post: 09-05-2009, 04:29 PM
  6. Instruction to copy rows from one file to another.
    By listerrose in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-27-2008, 05:28 AM
  7. convert an instruction in vba
    By nec9716 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-01-2006, 12:34 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