+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting within percentage rage

  1. #1
    Forum Contributor
    Join Date
    02-14-2008
    Location
    Manchester, England
    MS-Off Ver
    2007
    Posts
    110

    Conditional Formatting within percentage rage

    Hello

    Hopefuly someone will be able to help. If I had a value in one cell that is a forecast figure, say this is in A1, in A2 would then be an actual.

    I want to be able to apply some conditional formatting that will colour cell A2 green if it's within 10% either way of the value in A1 or red if more than 10% out.

    Thanks very much

    Dan

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444
    Hi,

    For the green format,

    =(ABS(A$2-A$1)/A$1)<=0.1

    For the red format

    =(ABS(A$2-A$1)/A$1)>0.1

    Please note that if you're going to use this for the whole row, the $ signs are important.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    conditional format
    condition 1 formula is

    =AND(B1<=A1+A1*10%,B1>=A1-A1*10%) green
    condition 2 formula is
    =OR(B1>A1+A1*10%,B1<A1-A1*10%) red

  4. #4
    Forum Contributor
    Join Date
    02-14-2008
    Location
    Manchester, England
    MS-Off Ver
    2007
    Posts
    110
    Thanks very much guys. Works great.

+ 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