+ Reply to Thread
Results 1 to 2 of 2

Conditional Formating Time FunctionOver Midnight

  1. #1
    Registered User
    Join Date
    10-24-2010
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Conditional Formating Time FunctionOver Midnight

    I am responsible for determining staffing levels for a Contact Centre and have used threads on ‘returning a value if the time falls between two intervals to develop a spreadsheet to show at any point in the day the number of people at work.

    I also wanted to colour code people by the shift they are working. So I have used conditional formatting with the Time function to achieve this, but have this problem with the over midnight issue.

    I want to create a formula similar to that below (which does not work) for a shift that starts at 22:00 and ends at 06:00 the following day.

    =AND(=TIME>=(22,0,0),=TIME(<=06,0,0))

    Any help would be appreciated.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Conditional Formating Time FunctionOver Midnight

    Hello,

    you need to understand that comparing a time like 22:00 with 06:00 of the next day, you will need to add one day to the second time value and treat the data as a date with time, not just time, otherwise, the second time value will always be smaller than the first.

    This may be easier to solve if you posted a sample file with your data structure and some sample data, outlining the expected results manually.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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