+ Reply to Thread
Results 1 to 7 of 7

comparing dates using a formula

  1. #1
    Registered User
    Join Date
    06-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Exclamation comparing dates using a formula

    I have a due date and completed date column, I want the completed date to be highlighted in Green if the dates match and RED if they do not match.
    Without having to do each cell.

    Thank You

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: comparing dates using a formula

    Conditional formatting:
    Create a rule for turning cells green if they are "equal to" each other,
    and a second rule for turning cells red if they are "not equal to" each other.

  3. #3
    Registered User
    Join Date
    06-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: comparing dates using a formula

    That would mean I would have to apply this rule to each cell one at a time for different dates entered. That is what I am trying to avoid.

  4. #4
    Forum Contributor BenMiller's Avatar
    Join Date
    12-06-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: comparing dates using a formula

    Once you apply the rule (make sure it is written like A1 and not $A$1), select the cell you applied it to, copy, highlight the rest of the cells, right-click>paste special>formats.

  5. #5
    Forum Contributor
    Join Date
    02-15-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2003
    Posts
    125

    Re: comparing dates using a formula

    Apply conditional formatting to the whole column by clicking on the letter at the top of the column.

    Edit: or copy down like BenMiller said.

    Edit2: for clarity.
    Last edited by roki4; 06-08-2012 at 01:37 PM.
    B.Econ, CFA

  6. #6
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: comparing dates using a formula

    Quote Originally Posted by roki4 View Post
    Edit: or copy down like Ben said.
    No I didn't I left it implicit--
    Quote Originally Posted by BenMiller View Post
    Once you apply the rule...
    BenMiller

    Oh.

    n/m

  7. #7
    Registered User
    Join Date
    06-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: comparing dates using a formula

    Solved.. thx for your help.. under Conditional formatting:New Rule I selected: use a formula to determine which cells to format.
    formula: =E<>G1 forma to RED. I also had changed my text in that column GREEN, so I only had to create one rule.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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