+ Reply to Thread
Results 1 to 5 of 5

Conditional formating two criteria

  1. #1
    Forum Contributor
    Join Date
    02-12-2014
    Location
    al ain
    MS-Off Ver
    Excel 2016
    Posts
    149

    Cool Conditional formating two criteria

    Hi All,
    I have a table consists of two columns A and B.
    Now my question is how can I get the cells red If column A is not blank and column B is blank.
    Thank you.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,000

    Re: Conditional formating two criteria

    Here's one way. use this as the CF formula:

    =AND(ISBLANK(B2),NOT(ISBLANK(A2)))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Conditional formating two criteria

    Or
    =AND(ISBLANK(Table1[@Age]),NOT(ISBLANK(Table1[@Name])))

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,716

    Re: Conditional formating two criteria

    Select cells B2 to B8, click on Conditional Formatting | New Rule | Use a Formula... , then enter this formula in the dialogue box:

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

    Click on the Format button | Fill tab and choose red, then click OK twice to exit the dialogue box - Excel will adjust the cell references to suit all the cells that were selected, so you only have to do this once.

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    02-12-2014
    Location
    al ain
    MS-Off Ver
    Excel 2016
    Posts
    149

    Re: Conditional formating two criteria

    That was helpful. thank you!

+ 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. [SOLVED] Conditional formating 2 columns unique criteria
    By jaime1134 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 11-01-2016, 03:42 PM
  2. VBA code for Conditional formating for more rows and columns and criteria
    By antoanand1981 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-28-2014, 12:17 AM
  3. Criteria Conditional Formating
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-01-2013, 05:40 AM
  4. [SOLVED] Conditional formating based on multiple criteria.
    By mark.studley in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-14-2013, 05:52 AM
  5. [SOLVED] Conditional Formating with 2 criteria
    By rizmomin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-03-2013, 11:17 AM
  6. Conditional formating with multiple criteria
    By jlkirk in forum Excel General
    Replies: 9
    Last Post: 11-17-2010, 07:01 PM
  7. Counting the number of cells meeting conditional formating criteria
    By Jeff in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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