+ Reply to Thread
Results 1 to 11 of 11

Multiple outcomes with mulitple variables

  1. #1
    Registered User
    Join Date
    08-02-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    38

    Multiple outcomes with mulitple variables

    Hi

    I am looking for a formula that will solve the problem below. I guess the complexity of the formula might force me down the path of VB but i would really like to have it solved via excel formulas. (my VB is poor!) No doubt it would require multiple nested IF statements.

    Can any one please help??

    See below:

    Consider a matrix.

    I have 3 outcomes. Call them x,y,z

    Then we have 9 variable running down vertically and 3 variables horizontally.

    Let 9 vertical variables be:

    1
    2
    3
    4
    5
    6
    7
    8
    9

    For 3 horizontal variables:

    A
    B
    C


    For outcome "x" the following conditions are TRUE:

    1A
    2A
    3A
    4A
    7A
    1B
    4B


    For outcome "y" the following conditions are TRUE:

    5A
    6A
    8A
    2B
    3B
    5B
    7B
    8B
    1C
    2C
    4C
    7C

    For outcome "z" the following conditions is TRUE:

    9A
    6B
    9B
    3C
    5C
    6C
    8C
    9C

    I hope this makes sense?

    Any help appreciated!

    Brendon

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Multiple outcomes with mulitple variables

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    08-02-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Multiple outcomes with mulitple variables

    Hi

    Thanks for looking into this!

    Please see attached.
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Multiple outcomes with mulitple variables

    I don't understand what you are looking to do. Please give examples of what you want the data solution to look like. What logic to apply in simple English.

  5. #5
    Registered User
    Join Date
    02-18-2013
    Location
    Georgia
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Multiple outcomes with mulitple variables

    You want:

    Amt < 250k and Age < 30 days, do not escalate
    Amt 500-1000 and Age < 30 days, do not escalate
    Amt >1000 and Age < 30 days, do not escalate

    Amt < 250k and Age 30-60 days, do not escalate
    Amt 500-1000 and Age 30-60 days, escalate to md
    Amt >1000 and Age 30-60 days, escalate to CEO

    Amt < 250k and Age > 60 days, escalate to md
    Amt 500-1000 and Age > 60 days, escalate to CEO
    Amt >1000 and Age > 60 days, escalate to CEO

    Something like this?

  6. #6
    Registered User
    Join Date
    08-02-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Multiple outcomes with mulitple variables

    Thanks for trying Alansidman....sorry the example was not clear.

    Mellowmarshall that's exactly what I'm looking for.

    If between you guys I could see that in a formula that would solve the problem.

    I would prob need to include more variables but once I see the formula I should be able to extrapolate.

    Thanks

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Multiple outcomes with mulitple variables

    Assume Value in A20, Aging in B20, then this should work
    Please Login or Register  to view this content.
    Look here for nesting of if statements

    http://www.techonthenet.com/excel/fo.../if_nested.php

    http://www.techonthenet.com/excel/macros/if_custom.php

  8. #8
    Registered User
    Join Date
    08-02-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Multiple outcomes with mulitple variables

    Ok I think we are close but i think the issue i am having is a limitation of the AND function. My conditions are based off of text NOT integers. i.e

    EG:

    So what i need is:

    IF CELL A1 = "0 - 250k" and CELL B1 = "< 30 days", do not escalate
    IF CELL A1 = "500k -1,000k" and CELL B1 = "< 30 days" do not escalate
    IF CELL A1 = ">1000k" and CELL B1 = "< 30 days" do not escalate

    IF CELL A1 ="0 -250k" and CELL B1 = "30-60 days" do not escalate
    IF CELL A1 = "500-1000k" and CELL B1 = "30-60 days" escalate to md
    IF CELL A1 = ">1000k" and CELL B1 = "30-60 days" escalate to CEO

    IF CELL A1 = "0 - 250k" and CELL B1 = " > 60 days" escalate to md
    IF CELL A1 = "500-1000k" and CELL B1 = "> 60 days" escalate to CEO
    IF CELL A1 = ">1000k" and CELL B1 = "> 60 days" escalate to CEO

  9. #9
    Registered User
    Join Date
    08-02-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Multiple outcomes with mulitple variables

    I am receiving an error message saying that i have too many arguments when i try this formula:

    +IF(AND(B1="0 - 250k",B2="< 30 DAYS"),"Do not Escalate",IF(AND(B1="250k - 1,000k",B2="< 30 DAYS"),"Escalate to MD",IF(B1="250k - 1,000k",B2="30 - 60 DAYS"),"Escalate to CEO",IF(AND(B1="0 - 250k",B2="30 - 60 DAYS"),"Escalate to CEO",IF(AND(B1="0 - 250k",B2="30 - 60 DAYS"),"Do not Escalate","Escalate to CEO")))))

    How do you determine what the last part of the formula should be? i.e. Why would it be "escalate to CEO"?

  10. #10
    Registered User
    Join Date
    08-02-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Multiple outcomes with mulitple variables

    SORRY ALL! I just realized I was missing an (AND.....

    I think its working now!! :-)))))


    But still got to test more....

  11. #11
    Registered User
    Join Date
    08-02-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Multiple outcomes with mulitple variables

    =+IF(AND(U5="0 - 250k",V5="< 30 DAYS"),"No escalation",IF(AND(U5="250k - 1,000k",V5="< 30 DAYS"),"No escalation",IF(AND(U5="> 1,000k",V5="< 30 DAYS"),"No escalation",IF(AND(U5="0 - 250k",V5="30 - 60 DAYS"),"No escalation",IF(AND(U5="250k - 1,000k",V5="30 - 60 DAYS"),"Regional CFO/Head Fin Ops",IF(AND(U5="> 1,000k",V5="30 - 60 DAYS"),"Regional CFO/Head Fin Ops",IF(AND(U5="0 - 250k",V5="30 - 60 DAYS"),"Reinsurance CFO",IF(AND(U5="0 - 250k",V5="30 - 60 DAYS"),"Do not escalate",IF(AND(U5="> 1,000k",V5="> 60 DAYS"),"Reinsurance CFO",IF(AND(U5="<Enter amount>",V5="<Enter amount>"),"No escalation","No escalation"))))))))))

+ 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. help with formula with 3 outcomes and several variables.
    By NICK W in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-10-2013, 02:31 AM
  2. Multiple logical functions resulting in multiple outcomes
    By PaddyG in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-13-2012, 12:20 PM
  3. [SOLVED] IF formula for mulitple conditions and multiple outcomes
    By kazthomas in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-06-2012, 08:31 PM
  4. If formula used for multiple outcomes
    By Scottiexcel in forum Excel General
    Replies: 1
    Last Post: 07-14-2009, 10:58 PM
  5. IF statement using multiple variables to give multiple outcomes
    By stujordan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2009, 06:46 AM

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