+ Reply to Thread
Results 1 to 11 of 11

assuming its nested if's i need

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    assuming its nested if's i need

    im trying to get a next result on a sheet as in either a win, lose or draw based on the Percentage of games either won, drawn or lost but cant get it to compute, i know its something im doing wrong.......

    Here is the formula im using.......



    =IF(G5>H5+I5,"win",IF(H5>G5+I5,"draw",IF(I5>H5+G5,"lose")))
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: assuming its nested if's i need

    Hi

    Try this =IF(G5>H5,"win",IF(H5>G5,"lose","draw"))
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  3. #3
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: assuming its nested if's i need

    If not correct? Can you post the sample file?

  4. #4
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: assuming its nested if's i need

    even tho we have lost more than we won it says next result would be a win .........

    you can change the scores to see the knock on effect.....

    Thank you for your help
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: assuming its nested if's i need

    Hi,

    Replace H5 in the formula above with I5:
    Formula: copy to clipboard
    =IF(G5>I5,"win",IF(I5>G5,"lose","draw"))


    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' on your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.

  6. #6
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: assuming its nested if's i need

    Hi

    Yes Now I understand what you looking for?

    You looking at last results mean say "Won"?
    If next one Lost mean next result is Lost?
    If that is correct?

    H11
    Formula: copy to clipboard
    =LOOKUP(2,1/(F5:F300<>""),F5:F300)
    Enter. Will show say Won

  7. #7
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: assuming its nested if's i need

    Having re-read this, I think I understand better what you want.

    You want the likely result to be whatever the highest percentage of previous results is, I think. i.e. if you've had 2 wins, 5 draws and 1 loss, you should expect a draw; if 4 wins, 3 draws and 2 losses, a win; if 2 wins, 4 draws and 6 losses, a loss.
    If that's correct, then what you want is to check what the highest percentage is in cells G8:I8 and return Win/Draw/Lose based on that.
    This should do that:
    Formula: copy to clipboard
    =IF(H8=MAX(G8:I8),"Draw",IF(G8=MAX(G8:I8),"Win",IF(I8=MAX(G8:I8),"Lose","??")))


    The only problem with it is if all three percentages are the same, when it defaults to the first named result (i.e. 'Draw'). I think I can fix this with some AND/OR/something but I need to leave work now or my wife will kill me - I'll try to have a look later at home.

    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' on your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.

  8. #8
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: assuming its nested if's i need

    Ok, this checks if the number (percentage) of wins is greater than both number of draws and losses, to return 'Win'. It then does the same for draws > wins & losses to give 'Draw' and for losses > wins & draws to give 'Lose'.
    Because it's possible for the number of wins and draws to be the same, but both more than losses, etc, anything where the highest number (percentage) isn't unique returns 'too close to call'. Just replace "too close to call" with "" if you'd rather have a blank for that.
    Formula: copy to clipboard
    =IF(AND(G8>H8,G8>I8),"Win",IF(AND(H8>G8,H8>I8),"Draw",IF(AND(I8>G8,I8>H8),"Lose","too close to call")))

    If you want to cover all the options, this will do so:
    Formula: copy to clipboard
    =IF(AND(G8>H8,G8>I8),"Win",IF(AND(H8>G8,H8>I8),"Draw",IF(AND(I8>G8,I8>H8),"Lose",IF(AND(G8=H8,G8>I8),"Win/Draw",IF(AND(G8=I8,G8>H8),"Win/Lose",IF(AND(G8<H8,H8=I8),"Draw/Lose",IF(AND(G8=H8,G8=I8),"Win/Draw/Lose")))))))


    I hope that's the sort of thing you want?
    If not, just ignore all of the above...!

    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' on your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.

  9. #9
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: assuming its nested if's i need

    I used this the formula below and changed "win/draw/lose" to "Unable to predict"
    =IF(AND(G8>H8,G8>I8),"Win",IF(AND(H8>G8,H8>I8),"Draw",IF(AND(I8>G8,I8>H8),"Lose",IF(AND(G8=H8,G8>I8),"Win/Draw",IF(AND(G8=I8,G8>H8),"Win/Lose",IF(AND(G8<H8,H8=I8),"Draw/Lose",IF(AND(G8=H8,G8=I8),"Win/Draw/Lose")))))))

    thank you all very much for all your help. ye are just lethal at excel without ye it wouldn't be possible to do what i need thank you all

  10. #10
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: assuming its nested if's i need

    You're very welcome and thanks for the rep.

    Regards,
    Aardigspook

  11. #11
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: assuming its nested if's i need

    your very welcome Aardigspook

+ 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. Stop Excel from assuming data is a date
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-03-2014, 12:10 PM
  2. [SOLVED] File Download Name assuming Thread Title as File Name Windows 2007
    By jaslake in forum Suggestions for Improvement
    Replies: 10
    Last Post: 03-19-2014, 01:07 PM
  3. [SOLVED] Excel 2007 : graphing a continuous data series/assuming zeros
    By Taft584 in forum Excel General
    Replies: 5
    Last Post: 04-29-2012, 05:43 PM
  4. Replies: 2
    Last Post: 03-09-2012, 11:01 AM
  5. How to count dates assuming that the year changes?
    By Zsidat in forum Excel General
    Replies: 5
    Last Post: 03-08-2012, 06:34 PM
  6. String assuming date format
    By humantripod in forum Excel General
    Replies: 2
    Last Post: 12-13-2006, 06:36 PM
  7. average-range assuming all cells have a value > 0
    By Renee - California in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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