+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting using midnight

  1. #1
    Registered User
    Join Date
    08-30-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    6

    Conditional Formatting using midnight

    Hi All, Hoping I can get some help here. I have successfully used this forum many times for answers but am having trouble with this one so thought I best post my own question.

    I am trying to use conditional formatting for employee's shift hours. If they work between 22:00 to midnight they get 1.25 penalty rates. And if they work between Midnight to 7am they get 1.50 penalty.

    I am basically trying to highlight cells a particular colour if an end time finishes between specific times as per below. This is so Managers can clearly see who is working at what penalties however I am having trouble as it runs through midnight.

    This is the conditions I am after.
    Between 22:15 to 00:00 = Highlighted Red
    Between 00:15 to 6:45 = Highlighted Yellow
    Between 7:00 to 22:00 = no formatting required

    As per attached example, I can only get between 22:15 to 23:45 to work. Not sure if I am on the right track or completely off the mark!

    It would be greatly appreciated if anyone has some answers for me.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Conditional Formatting using midnight

    Pl see attached file.
    Attached Files Attached Files

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Conditional Formatting using midnight

    @ kvsrinivasamurthy
    It would be very much helpful if you also share the formula being used in the solution provided so that other members can view the formula suggested without opening the attachment.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Conditional Formatting using midnight

    @sktneer
    As per your sugession,
    For A2
    For Yellow
    Please Login or Register  to view this content.
    For Red
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Conditional Formatting using midnight

    Duplicate,deleted

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Conditional Formatting using midnight

    @ kvsrinivasamurthy
    Thanks a lot.
    Actually right now I am accessing this thread on my mobile and you know that opening an attachment on mobile is certainly not very convenient.
    Hope you understand.

  7. #7
    Registered User
    Join Date
    08-30-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Conditional Formatting using midnight

    @kvsrinivasamurthy
    Perfect!! Thanks so much, really appreciate it

+ 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. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  2. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  3. Replies: 4
    Last Post: 01-11-2012, 07:59 PM
  4. [SOLVED] Conditional Formating Time FunctionOver Midnight
    By AlexRoberts in forum Excel General
    Replies: 1
    Last Post: 10-31-2010, 05:32 AM
  5. Formatting time after midnight
    By Jessica.Bush in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-09-2010, 04:26 AM

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