+ Reply to Thread
Results 1 to 9 of 9

Excel 2007 Conditional Formatting help

  1. #1
    Registered User
    Join Date
    07-03-2013
    Location
    Wales
    MS-Off Ver
    Excel 2007
    Posts
    3

    Excel 2007 Conditional Formatting help

    Hi all,

    Would be very grateful for some conditional formatting help, I have a spreadsheet that shows estimated number of days, actual days and the difference

    A (Estimate) B (Actual) C (% Diff)
    4 9 125%
    20 18 -10%
    5 3 -40%
    6 10 67%
    2 5 150%
    4 4 0%

    I'd like to amend the background colour for column C if the following conditions are met, (i) the estimated days (Column A) are >=5 AND (ii) the percentage (Column C) is >= 20% OR >=-20%. In this example -40% and 67% would be highlighted.

    Grateful for any help.

    Thanks

    Matt

  2. #2
    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,503

    Re: Excel 2007 Conditional Formatting help

    Assuming data starts in row 2, select cell C2 down to the end of the data (column).

    Condition: =IF(AND(A2>=5, OR(C2<=-0.2, C2>=0.2)))


    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


  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Excel 2007 Conditional Formatting help

    In CF rules

    =OR(AND($A1>=5,$C1>=20%),AND($A1>=5,$C1<=-20%))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Excel 2007 Conditional Formatting help

    Maybe..

    =AND(A2>=5,ABS(C2)>=0.2)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    07-03-2013
    Location
    Wales
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Excel 2007 Conditional Formatting help

    Thank you so much for the great help and speedy replies.

    I've added the following (=OR(AND($A1>=5,$C1>=20),AND($A1>=5,$C1<=-20)) and am now nearly there. Anything >= 5 and a difference of 20% or -20% will be highlighted in RED, I've also added a CF to highlight in GREEN anything with an estimate <5. My only issue now is the numbers than fall between these two parameters (i.e >-5 but less than 20% or -20%.

    I've attached my effort so far, I'd be grateful for any further advise.
    Attached Files Attached Files

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Excel 2007 Conditional Formatting help

    Perhaps..

    =AND($B3>ABS(5),$D3<ABS(20))
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-03-2013
    Location
    Wales
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Excel 2007 Conditional Formatting help

    Many thnaks to everyone for your help

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Excel 2007 Conditional Formatting help

    You are welcome and thanks for the feed back.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thank you.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  9. #9
    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,503

    Re: Excel 2007 Conditional Formatting help

    You're welcome. Thanks for the rep.

+ 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