+ Reply to Thread
Results 1 to 9 of 9

Formula to color cell if value in two cells are not identical

Hybrid View

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2021
    Posts
    50

    Formula to color cell if value in two cells are not identical

    I have a date value in cell R6 and one in S6. I'd like R6 to be colored red, if the dates in R6 and S6 are not identical. Any suggestions?

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula to color cell if value in two cells are not identical

    Select cell R6 and go to conditional formatting, use formula
    =R6<>S6 format as desired
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Formula to color cell if value in two cells are not identical

    Use Conditional Formatting:

    Apply formatting using formula: =R6<>S6

    - Moo

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Formula to color cell if value in two cells are not identical

    In case you are not sure how to do the Conditional Formatting:

    In Excel 2003:

    1. Select cell R6
    2. Choose Format|Conditional Formatting
    3. From the first dropdown, choose Formula Is
    4. For the formula, enter =R6<>S6
    5. Click the Format button.
    6. Select your desired format (Red cell fill).
    7. Click OK
    8. Click OK again

    - Moo

  5. #5
    Registered User
    Join Date
    11-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formula to color cell if value in two cells are not identical

    What about Excel 2007 Moo???

    Please help...
    Thank you.

  6. #6
    Registered User
    Join Date
    11-15-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2021
    Posts
    50

    Re: Formula to color cell if value in two cells are not identical

    Thanks, Moo and ChemistB. Both suggestions worked!

  7. #7
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Formula to color cell if value in two cells are not identical

    To apply Conditional Formatting in Excel 2007:

    1. Select cell R6
    2. On the Ribbon, go to the Home tab and click Conditional Formatting
    3. Click New Rule
    4. Click Use a Formula to Determine Which Cells to Format
    5. For the formula, enter: =R6<>S6
    6. Click the Format button
    7. Select your desired format (Red cell fill).
    8. Click OK
    9. Click OK again

    - Moo

  8. #8
    Registered User
    Join Date
    11-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formula to color cell if value in two cells are not identical

    Thank you, fast reply....

    really appreciated,

    Mihir.

  9. #9
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Formula to color cell if value in two cells are not identical

    You're welcome. Glad I could help.

    - Moo

+ 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