+ Reply to Thread
Results 1 to 6 of 6

Prevent Conditional Formatting on Blank Cells

  1. #1
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Prevent Conditional Formatting on Blank Cells

    I want to highlight identical entries between two columns, using conditional formatting on the first column, but if the entry in both columns is blank, I don't want the cell highlighted. I tried using

    =NOT(ISBLANK(A1))=NOT(ISBLANK(C1))

    but this doesn't prevent blank matches from being highlighted, is there any wayto do this? I've attached a quick sample. In the sample I wouldn't want cell A6 to be highlighted because both A6 and C6 are blank.

    Many thanks
    Attached Files Attached Files

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Prevent Conditional Formatting on Blank Cells

    I would change it to:
    =AND(A1<>"",A1=C1)

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Prevent Conditional Formatting on Blank Cells

    Just a quick question, for row 9, A9 = "SNAIL" and C9 = "ZEBRA", but it is highlighted.

    I want to highlight identical entries between two columns
    Do you only want to highlight duplicates?
    HTH
    Regards, Jeff

  4. #4
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Prevent Conditional Formatting on Blank Cells

    dredwolf,

    Many thanks, that worked perfectly...

  5. #5
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Prevent Conditional Formatting on Blank Cells

    You are welcome

    Please remember to mark the thread as solved if you are satisfied with your solution :
    To mark thread "Solved", go to the top of the thread,click "Thread Tools",click "Mark as Solved"

  6. #6
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Prevent Conditional Formatting on Blank Cells

    Hi Jeff,

    Yes, it should only be the duplciates that are highlighted. I think the fact that Snail and Zebra are highlighted, just highlights that my formula doesn't work!

    Many thanks

+ 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