+ Reply to Thread
Results 1 to 5 of 5

Rota time calculations and colour coding

  1. #1
    Forum Contributor
    Join Date
    08-20-2009
    Location
    Plymouth, England
    MS-Off Ver
    Excel 2013
    Posts
    149

    Rota time calculations and colour coding

    Hi all,

    I am currently working on a rota for my work. What I would like to code is that if a shift begins before 8am and finishes after 2pm it automatically deducts an hour for a lunch break. The spreadsheet currently calculates how long a shift is excluding any calculations for breaks, then checks whether that shift is a normal working day for the staff member, and returns the additional hours the staff member worked on that day. Separately, if possible I would like the spreadsheet to colour code each cell. So if a shift starts before 9am the cell fill color to be red, and if a shift begins after 1:30pm for the cell fill color to be dark red. Apologies if this is quite basic, I'm new to Excel.

    Many thanks,

    Luke
    Last edited by lukela85; 09-14-2013 at 06:29 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Rota time calculations and colour coding

    Hi Luke

    The easiest way of helping with this is if you would mock up an example workbook with a few permutations of shifts and manually add the results you expect to see and the colours.

    In some notes clearly identify which are input cells and which the result cells.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    08-20-2009
    Location
    Plymouth, England
    MS-Off Ver
    Excel 2013
    Posts
    149

    Re: Rota time calculations and colour coding

    Staff rota.xls

    Thanks,

    Luke

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Rota time calculations and colour coding

    Hi,

    Does the attached help. See Sheet1 (2)
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-20-2009
    Location
    Plymouth, England
    MS-Off Ver
    Excel 2013
    Posts
    149

    Re: Rota time calculations and colour coding

    Works perfectly, thanks.

    Marked as solved.

+ 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] Colour coding dates
    By mfairhurst1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-18-2013, 11:13 AM
  2. Replies: 6
    Last Post: 10-05-2012, 05:47 AM
  3. Colour Coding
    By ldorsi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2011, 03:27 AM
  4. Colour coding cells
    By shimoo_c in forum Excel General
    Replies: 2
    Last Post: 03-27-2009, 05:51 AM
  5. Colour Coding ???
    By mrsshadow in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-04-2008, 04:30 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