+ Reply to Thread
Results 1 to 4 of 4

Conditional format only if two cells are different, but one is not blank

  1. #1
    Registered User
    Join Date
    07-29-2011
    Location
    Charlotte
    MS-Off Ver
    Excel 2010
    Posts
    26

    Conditional format only if two cells are different, but one is not blank

    I need to conditionally format a cell based on wether or not it matches the previous cell.
    I can do that with the formatting tool in 2010. My problem is it formats anything with a blank previous cell. How can I format only when the cells are different, but not blank?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional format only if two cells are different, but one is not blank

    You can use AND function to combine conditions.

    e.g.

    =AND(A1<>"",A2<>"",A2<>A1)

    this checks that A1 and A2 are not blank and that A2 is different than A1
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor gjlindn's Avatar
    Join Date
    08-01-2011
    Location
    Dodgeville, WI
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    369

    Re: Conditional format only if two cells are different, but one is not blank

    In the attached example I used this as a conditional format formula
    Please Login or Register  to view this content.
    Attached Files Attached Files
    -Greg If this is helpful, pls click Star icon in lower left corner

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Conditional format only if two cells are different, but one is not blank

    Or maybe
    Formula;=
    Please Login or Register  to view this content.
    Applies to:=
    Please Login or Register  to view this content.

    This will highlight all duplicates
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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