+ Reply to Thread
Results 1 to 8 of 8

Create conditional formatting between 2 date time

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

    Create conditional formatting between 2 date time

    Hello everyone,

    I am importing data from outside source, and would like to highlight in red whenever A2 is not equal to B2.

    I tried with highlight using conditionnal formatting whenever A2 wasn't equal to the cell B2, but everything became red.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Halidat; 12-15-2021 at 12:19 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,518

    Re: Create conditional formatting between 2 date time

    Just select row 2 down and use the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,427

    Re: Create conditional formatting between 2 date time

    Note that both sets of data have seconds associated with them, although your formatting does not show these. Consequently, you may get cells highlighted which look to be the same as the adjacent cell.

    Pete

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,518

    Re: Create conditional formatting between 2 date time

    Mmm, Pete's right. I hadn't checked the workbook.

    This might be closer to what you need:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Re: Create conditional formatting between 2 date time

    Hello,

    Thank you for your reply!

    It almost worked, but it highlight the ones that are equal, and I am looking for the ones not equal
    Attached Images Attached Images

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,427

    Re: Create conditional formatting between 2 date time

    Change the equals sign, = , to not equal to, i.e. < > in the formula.

    Hope this helps.

    Pete

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

    Re: Create conditional formatting between 2 date time

    It works thank you!!!

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,518

    Re: Create conditional formatting between 2 date time

    You're welcome.

    And thanks Pete


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] Create conditional formatting for only specific time
    By Halidat in forum Excel General
    Replies: 3
    Last Post: 12-02-2021, 10:58 AM
  2. [SOLVED] Create conditional formatting using date-time / text
    By Halidat in forum Excel General
    Replies: 8
    Last Post: 10-19-2021, 05:45 AM
  3. [SOLVED] Create conditional formatting using time / date-time
    By Halidat in forum Excel General
    Replies: 3
    Last Post: 10-13-2021, 11:12 AM
  4. Replies: 1
    Last Post: 02-04-2021, 02:46 PM
  5. [SOLVED] Conditional Formatting Time Limit / Due Date
    By Wilkinson921 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-30-2020, 08:20 AM
  6. [SOLVED] Conditional formatting based on date and time
    By Jalex5134 in forum Excel General
    Replies: 6
    Last Post: 10-26-2017, 05:55 PM
  7. [SOLVED] Conditional Formatting with Date/Time with Date/Time of another cell
    By jnepsa in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-20-2017, 10:48 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