+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting comparing two dates

Hybrid View

  1. #1
    Registered User
    Join Date
    08-13-2007
    Posts
    16

    Conditional formatting comparing two dates

    I looked, but couldn't find a similar thread.

    I have 2 columns: A and B are both dates

    For each row, I want cell B to turn red if it is a newer date than A in the same row.

    Thanks for your help

  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: Conditional formatting comparing two dates

    Hi,

    Presumably, and assuming the dates are proper date numbers and not text.

    =B2>A2

    Copy the format to the A:B range necessary.
    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 Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,279

    Re: Conditional formatting comparing two dates

    Firstly select range in "B" column.
    Go to "Conditional Formating" > "Manage Rules" > "New Rule
    Select "Use a formula to determine which cell to format" > "In formula tab :
    Formula: copy to clipboard
    =B2>=A2

    Click on format > Select color from "Fill Tab" > "Ok" > "Ok" > "Apply" > "Ok"


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread 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. Conditional formatting comparing 2 dates and using range.
    By K_berly in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-25-2015, 11:54 AM
  2. Conditional Formatting based on comparing the dates in 2 columns
    By ghostface in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-11-2014, 05:54 PM
  3. Conditional formatting by comparing 2 dates with each other.
    By domgilberto in forum Excel General
    Replies: 41
    Last Post: 05-15-2014, 09:10 AM
  4. Replies: 16
    Last Post: 05-08-2014, 04:24 PM
  5. Conditional Formatting (or a formula) For Dates Comparing to the Current Date
    By shoebox54th in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-08-2013, 01:20 PM
  6. [SOLVED] Conditional Formatting or formula for comparing dates
    By sweetds in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2013, 10:34 AM
  7. VBA for comparing dates within conditional formatting?
    By HelenW in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-10-2008, 09:33 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