+ Reply to Thread
Results 1 to 3 of 3

Multiple IF Statements in Excel 2010

  1. #1
    Registered User
    Join Date
    07-21-2014
    Location
    Hampshire
    MS-Off Ver
    2010
    Posts
    12

    Multiple IF Statements in Excel 2010

    Hi,

    I have 4 columns with percentages in them, which I was like to automatically calculate a Red, Amber or Green status from.

    Two of the columns show Forecast vs Baseline for the current month and year to date and the other two columns show the same data, but include risk.

    The RAG rules I need to calculate are as follows:

    RED: IF: Forecast vs Baseline is less than 90% or greater than 110% and Forecast vs Baseline inc risks is less than 80% or greater than 110%
    AMBER: IF: Forecast vs Baseline is between 90% and 95% and between 105% and 110% and Forecast vs Baseline inc risks between 80% and 90% or between 105% and 110%
    GREEN: IF: Forecast vs Baseline between 95% and 105% and Forecast vs Baseline inc risks between 90% and 105%

    I have attached the example data.

    Thanks
    Rob
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Multiple IF Statements in Excel 2010

    Put this formula in E3 and copy down/across. Then set your conditional formatting to simply go by the words showing in those cells:

    =IF(AND(AND(A3>=95%,A3<=105%),AND(C3>=90%,C3<=105%)),"green",IF(AND(OR(AND(A3>=90%,A3<=95%),AND(A3>=105%,A3<=110%)),OR(AND(C3>=80%,C3<=90%),AND(C3>=105%,C3<=110%))),"amber","red"))


    We check for "Green" first, then "amber". Anything that doesn't match green or amber IS red by default, no need to test for it.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-21-2014
    Location
    Hampshire
    MS-Off Ver
    2010
    Posts
    12

    Re: Multiple IF Statements in Excel 2010

    Great, thanks - thats exactly what I needed.

+ 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] If Statements - Excel 2010
    By Sureshji in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-02-2014, 08:08 AM
  2. Excel 2010 multiple worksheets print to multiple pdf 's is there a macro for this?
    By fontana in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2012, 01:40 PM
  3. Return multiple values across multiple spreadsheets - Excel 2010
    By oppykm2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2012, 08:52 PM
  4. Nested IF / AND statements excel 2010
    By cossie2k in forum Excel General
    Replies: 2
    Last Post: 06-12-2012, 08:30 AM
  5. [SOLVED] Trying to make Case statements in Excel 2010
    By Durlov in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-19-2011, 03:27 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