+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting – testing two cells

Hybrid View

jcountzler Conditional Formatting –... 06-24-2010, 05:00 PM
masteff Re: Conditional Formatting –... 06-24-2010, 06:10 PM
jcountzler Re: Conditional Formatting –... 06-25-2010, 03:25 PM
  1. #1
    Registered User
    Join Date
    06-11-2009
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    12

    Conditional Formatting – testing two cells

    I have a budget analysis worksheet that compares budgeted amounts to actual results ($ sales, volume, etc.). A sample of the worksheet is attached. The worksheet calculates $ and % budget variances. I am attempting to construct a conditional formatting that would apply CF, in this case a pattern (cell shading), based upon the result of both the $ and % budget variance.

    For example, if the $ budget variance is less than or greater than $5,000 AND the % budget variance is less than or greater than 5%, the cell(s) would have the CF applied. I have manually shaded the cells in the attached worksheet to show the desired CF result. For purposes of the production worksheet I would reference a range name that contains the desired x$ and x% values to test against.

    I am coding this in Excel 2003 SP3.

    Thank you in advance for any input and guidance on my query.
    Attached Files Attached Files
    Last edited by jcountzler; 06-25-2010 at 03:27 PM.

  2. #2
    Forum Contributor
    Join Date
    08-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    149

    Re: Conditional Formatting – testing two cells

    So, select your range E4:F24, on the menu select Format/Conditional Formatting, in the very first drop down change it from "Cell Value Is" to "Formula Is", and enter =AND(ABS($E4)>5000,ABS($F4)>0.05) , then click the "Format" button and set your pattern.

  3. #3
    Registered User
    Join Date
    06-11-2009
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Conditional Formatting – testing two cells

    Thank you so much for this formula. It is quick and concise.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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