+ Reply to Thread
Results 1 to 4 of 4

Conditonal formatting if day after and before certain time

Hybrid View

  1. #1
    Registered User
    Join Date
    10-13-2021
    Location
    Europe
    MS-Off Ver
    MS365 2202
    Posts
    73

    Conditonal formatting if day after and before certain time

    Good afternoon,

    I am looking to highlight the cell in red whenever:
    • C2 date is at least one day after B2


    and if
    • C2 time is before A2 time
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Halidat; 12-15-2021 at 04:01 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,760

    Re: Conditonal formatting if day after and before certain time

    Select the entire column C (including header row)

    Create a conditional formatting rule with this formula:

    Formula: copy to clipboard
    =AND(INT(C1)>=INT(B1+1),MOD(C1,1)<A1)
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-13-2021
    Location
    Europe
    MS-Off Ver
    MS365 2202
    Posts
    73

    Re: Conditonal formatting if day after and before certain time

    Thank you it works perfectly!

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,760

    Re: Conditonal formatting if day after and before certain time

    You're welcome and thanks for the rep!

+ 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. how to automate conditional formatting and reverse conditonal formatting
    By anita2017 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2019, 12:36 PM
  2. conditonal formatting
    By Burt_100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2014, 05:35 PM
  3. Conditonal Formatting VB help
    By dshilan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2011, 07:03 AM
  4. Conditonal formatting help?
    By char81 in forum Excel General
    Replies: 2
    Last Post: 08-21-2011, 06:42 AM
  5. Conditonal Formatting
    By Lorna B in forum Excel General
    Replies: 4
    Last Post: 09-15-2009, 08:16 AM
  6. VBA Conditonal Formatting
    By Salient in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2009, 01:34 PM
  7. Conditonal formatting based off date&time
    By crizzle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-01-2008, 03:06 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