+ Reply to Thread
Results 1 to 7 of 7

Conditional Format Question

  1. #1
    Registered User
    Join Date
    04-09-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    19

    Conditional Format Question

    I have a column that makes up the net change between two other columns. I would like to put in a conditional format that does the following:

    1) Any cell in this column unchanged (a value of 0) will be one color
    2) Any cell in this column greater than 0 will be a different color

    I'm new to conditional formats so any help would be greatly appreciated.

    Thanks in advance.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Format Question

    Try this...

    Let's assume the range of interest is A2:A10

    Select the *entire* range A2:A10 starting from cell A2.
    Cell A2 will be the active cell. The active cell is the
    one cell in the selected range that is not shaded. The
    formula will be relative to the active cell.

    Goto the Home tab>Styles>Conditional Formatting>
    Manage rules>New rule>Use a formula to determine
    which cells to format

    Enter this formula in the box below:

    =COUNT(A2)*(A2=0)

    Click the Format button
    Select the desired style(s)
    OK>OK>New rule>Use a formula to determine which cells to format

    Enter this formula in the box below:

    =COUNT(A2)*(A2>0)

    Click the Format button
    Select the desired style(s)
    OK out
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    04-09-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Conditional Format Question

    Thank you very much. It worked perfectly.

  4. #4
    Registered User
    Join Date
    05-07-2014
    Location
    Boston, MA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Conditional Format Question

    You can select this third column that calculates the difference between the first two columns, and set up two separate conditional formats from there. For the first one you want equal to zero, go to "Conditional Formatting>New Rule>Format Cells That Contain>Equal To>0>select your format". Leave the column highlighted, then go to "Conditional Formatting>New Rule>Format Cells That Contain>Greater than>0>select your format".

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Format Question

    You're welcome. Thanks for the feedback!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,675

    Re: Conditional Format Question

    @Biff: what's the advantage of using those formulae as opposed to a simple cell value check (equal/not equal to 0)?

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Format Question

    Don't know if there's an advantage or not.

    In all the years I've been using Excel I have never used the selectable rules.

    I've only used formulas to define the rules.

    Why? I don't know why!

+ 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] Question regarding conditional format question that covers two range criteria
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-06-2013, 12:32 PM
  2. [SOLVED] Conditional format question (I think!)
    By GregSpurs in forum Excel General
    Replies: 12
    Last Post: 04-30-2012, 08:03 AM
  3. Conditional Format Question
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-20-2008, 05:07 PM
  4. Conditional Format Question
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-15-2007, 10:31 PM
  5. Conditional Format Question
    By lilsnoop in forum Excel General
    Replies: 2
    Last Post: 04-21-2007, 07:34 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