+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting of blank/empty cells in Excel 2007

  1. #1
    Forum Contributor
    Join Date
    01-09-2009
    Location
    NJ/NY
    MS-Off Ver
    Excel 2007 & 2016
    Posts
    124

    Conditional Formatting of blank/empty cells in Excel 2007

    I'm new to Excel 2007, and I'm having some problems with conditional formatting. I have two columns of data, N and I. Some of the cells in column I are empty/blank, and the conditional formats are in column N. For example, if I2*1.05 is greater than the value of N2, I want N2 to be boldfaced red. If I2 is empty/blank, I want the format of N2 to be unchanged. The first conditional format, "if I2*1.05 is greater than N2, then the N2 value is boldfaced red" is easy, but what is the syntax for "if I2 is empty/blank, then leave N2 formating unchanged?"

    Thank you.

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Try:

    =AND(I2<>"", I2*1.05>N2)

    HTH

    Jason

  3. #3
    Forum Contributor
    Join Date
    01-09-2009
    Location
    NJ/NY
    MS-Off Ver
    Excel 2007 & 2016
    Posts
    124
    Thank you, Jason.

    I'm still missing something. This is what I have entered as conditional formats:
    Condition 1:
    Formula: =AND(I2<>"", I2*1.05>N2)
    Format: regular font, automatic color
    Applies to: =$N$2:$N$138
    Stop if True: not checked

    Condition 2:
    Cell Value: >I2*1.05
    Format: bold font, red color
    Applies to: =$N$2:$N$138
    Stop if True: not checked

    I still get the boldfaced red font in the cell in column N when the cell in column I is empty. Changing the order of these conditions doesn't help, nor does checking the Stop if True boxes.

    What am I doing wrong here?

    Thank you again - OverKnight

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    You only need one condition.

    Condition1:

    Formula Is: =AND(I2<>"", I2*1.05>N2)
    Format: Bold red font

    This is assuming that the "normal" format of the cell has automatic color, regular font.

    HTH

    Jason

  5. #5
    Forum Contributor
    Join Date
    01-09-2009
    Location
    NJ/NY
    MS-Off Ver
    Excel 2007 & 2016
    Posts
    124
    That's the ticket...

    Thank you, Jason.

+ 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