+ Reply to Thread
Results 1 to 9 of 9

Creating A Formula Based On Multiple Outcomes

  1. #1
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Creating A Formula Based On Multiple Outcomes

    Hello,
    I need help creating a formula that chooses a result based upon multiple outcomes.

    The following is what I trying to express:

    If High – Entry >= .002 and Low – Entry < .004 = Profit
    If Close – Entry >= 0 and Low – Entry < .0040 = Profit

    If High – Entry < .002 and Low – Entry >= .004 = Loss
    If High – Entry < .002 and Close – Entry < 0 = Loss

    I think I expressed what's above correctly. It's what's below that I'm having problems with. I also want the formula to look for the following possibilities.

    If Entry < Resistance1 and Entry + .001 <= Resistance1 and If High + .0004 >= Resistance1 = Close at High
    If Entry < Resistance1 and Entry + .001 > Resistance1 = No Entry
    If Entry > Resistance1 = Resistance1 Non Factor

    If Entry < Resistance2 and Entry + .001 <= Resistance2 and If High + .0004 >= Resistance2 = Close at High
    If Entry < Resistance2 and Entry + .001 > Resistance2 = No Entry
    If Entry > Resistance2 = Resistance2 Non Factor


    Please see the attached spreadsheet. I’ve attempted to do it myself, but I got stuck when working with the adding the resistance options.

    Any help you can provide would be greatly appreciated.


    - Thanking You In Advance
    Attached Files Attached Files
    Last edited by artiststevens; 01-20-2012 at 12:29 AM.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Creating A Formula Based On Multiple Outcomes

    Hello just trying ok.

    try this one for the first RESISTANCES 1


    =IF(AND(I2<M2,I2+0.001<=M2,J2+0.0004>=M2),"Close at High",IF(AND(I2<M2,I2+0.001>M2),"No Entry",IF(I2>M2,"Non Factor","")))

    don't know if i got it correct
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Creating A Formula Based On Multiple Outcomes

    I'll give it a try Vlady. Thank you.

  4. #4
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Creating A Formula Based On Multiple Outcomes

    Hello Vlady,
    When I combine your formula with mine. I receive the #VALUE error for some of the cells. Also, any thoughts on how to work in the 2nd Resistance? Any help would be greatly appreciated. I attached an updated spreadsheet.

    Here's the combo formula:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    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: Creating A Formula Based On Multiple Outcomes

    Hi.

    Maybe, just maybe..something like this??

    =IF((AND(O2>=0,002));"Profit";(IF((AND(Q2>=0;P2>-0,004));"Profit";(IF((AND(O2<0,002;P2<=-0,0001;Q2<0));"Loss";IF(AND(I2<M2;I2+0,001<=M2;J2+0,0004>=M2);"Close at High";IF(AND(I2<M2;I2+0,001>M2);"No Entry";IF(I2>M2;"Non Factor";""))))))))

    Hope to helps you
    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.

  6. #6
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Creating A Formula Based On Multiple Outcomes

    Hi Fotis,
    I appreciate the help, but it's saying the formula you typed contains an error. Any help with this?

  7. #7
    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: Creating A Formula Based On Multiple Outcomes



    Take a look to the example, pls..
    Attached Files Attached Files

  8. #8
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Creating A Formula Based On Multiple Outcomes

    Hello artist

    also look at this one..
    combined resistances with win/loss


    resistance12winloss.xls

    and btw fotis sample works.

  9. #9
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Creating A Formula Based On Multiple Outcomes

    Thank you Vlady! Thanks exactly what I was looking for! Thank you too Fotis for your input it.

+ 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