+ Reply to Thread
Results 1 to 3 of 3

Timesheet with Highlight Annual Leave and auto populate hours in cells

  1. #1
    Registered User
    Join Date
    10-11-2019
    Location
    Nottingham
    MS-Off Ver
    MS Office
    Posts
    70

    Timesheet with Highlight Annual Leave and auto populate hours in cells

    Hello Friends I would like to thank all of this forum members and especially "protonLeah " in helping me design a timesheet spreadsheet to help my team .I am not sure if it is possible but I would like to have a vb script in which the holiday start to holiday end dates are coloured in any colour ignoring the Weekends as weekends are coloured using conditional formatting, and the columns A.M. IN / A.M. OUT / P.M. IN are populated with the following hours 800/1200/1230/1600 if the holiday is for full day and if it is Am then 800/1200 if its is PM then it should be 1200/1600 again ignoring weekends.
    Attached Files Attached Files

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

    Re: Timesheet with Highlight Annual Leave and auto populate hours in cells

    As the original post is just over 24 hrs old, it may be too early to start offering conditional formatting alternatives to VBA solutions, but here goes.
    1. Change the layout on the annual leave sheet as shown in A8:B13,
    2. Populate Q4:S4 with Full, AM and PM respectively.
    3. Populate Q5:S using: =IF(WEEKDAY($A5,2)>5,"",INDEX('Annual Leave'!$B$9:$B$13,MATCH($A5,'Annual Leave'!$A$9:$A$13,0))=Q$4)
    4. Condition formatting rules:
    For Full: =$Q5=TRUE
    For AM: =$R5=TRUE
    For PM: =$S5=TRUE
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    10-11-2019
    Location
    Nottingham
    MS-Off Ver
    MS Office
    Posts
    70

    Re: Timesheet with Highlight Annual Leave and auto populate hours in cells

    Quote Originally Posted by JeteMc View Post
    As the original post is just over 24 hrs old, it may be too early to start offering conditional formatting alternatives to VBA solutions, but here goes.
    1. Change the layout on the annual leave sheet as shown in A8:B13,
    2. Populate Q4:S4 with Full, AM and PM respectively.
    3. Populate Q5:S using: =IF(WEEKDAY($A5,2)>5,"",INDEX('Annual Leave'!$B$9:$B$13,MATCH($A5,'Annual Leave'!$A$9:$A$13,0))=Q$4)
    4. Condition formatting rules:
    For Full: =$Q5=TRUE
    For AM: =$R5=TRUE
    For PM: =$S5=TRUE
    Let us know if you have any questions.
    thank you so much my friend , I will look into this and let you know .

+ 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] Auto filling an annual leave calendar
    By TomH89 in forum Excel General
    Replies: 12
    Last Post: 07-15-2016, 04:14 AM
  2. Annual Leave and Sick Leave fiel
    By lauphyon in forum Excel General
    Replies: 2
    Last Post: 06-24-2014, 05:00 AM
  3. Sick leave annual leave minutes spreadsheet
    By News12kim in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-22-2013, 03:28 AM
  4. Replies: 1
    Last Post: 05-18-2011, 10:46 PM
  5. Timesheet Annual
    By Hoopsah in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-21-2007, 10:14 AM
  6. [SOLVED] timesheet auto populate date?
    By ll in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2006, 10:55 AM
  7. Replies: 0
    Last Post: 07-21-2005, 02:05 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