+ Reply to Thread
Results 1 to 19 of 19

Formula for football league

  1. #1
    Registered User
    Join Date
    10-04-2012
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    8

    Question Formula for football league

    Hello everyone..

    i was making one excel sheet for football score prediction league. the rule is to to award 10 points for the exact correct result. ( ex Correct result 2-1, Predicted result 2-1)
    then 8 points for correct match result and correct goal difference (ex Correct result 3-2, Predicted result 2-1, since the match result is same and the goal difference is also same, 8 points)

    3 points for the correct match result ( ex Correct result 3-2, Predicted result 1-0)

    0 for wrong result

    please help me in this... i need excel formula for this...

    if correct result is predicted in B2 AND C2, and Predicted result in B3 AND C3... What FORMULA'S CAN I USE??
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula for football league

    Hi,

    Perhaps
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 10-05-2012 at 11:19 AM. Reason: Correct noted in red
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Formula for football league

    Try this: =IF(B2&"-"&C2=B3&"-"&C3, 10, IF(OR(AND(B2>C2,B3>C3),AND(B2<C2,B3<C3)), IF(B2-C2=B3-C3, 8, 3), 0))
    _________________
    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!)

  4. #4
    Registered User
    Join Date
    10-04-2012
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Formula for football league

    Thanks for the help to both Richard Buttrey and JBeaucaire ... but i found some error in both the formula's..

    in the first one suggested by Buttrey,
    =IF(AND(B2=B3,C2=C3),10,IF(AND(B2-C2=B3-C3,AND(B2>-C2,B3>=C3)),8,IF(AND(B2>C2,B3>C3),3,0)))

    if the correct result is 1-2 and the predicted result is 0-1, according to your formula 0 points is being awarded instead of 8 points..

    and in the second one suggested by JBeaucaire
    =IF(B2&"-"&C2=B3&"-"&C3, 10, IF(OR(AND(B2>C2,B3>C3),AND(B2<C2,B3<C3)), IF(B2-C2=B3-C3, 8, 3), 0))

    if the correct result is 2-2 and the predicted result is 3-3 since both predicted and actual results are draw, 8 points should be awarded.. but according to your formula 0 points has been awarded..

    hope both can sort out this easily.. waiting for the reply..
    Last edited by athullovzu; 10-05-2012 at 06:16 AM. Reason: More clarification

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

    Re: Formula for football league

    Try this one

    =IF(AND(B2=B3,C2=C3),10,IF(OR(AND(B2>C2,B3>C3,ABS(B2-C2)=ABS(B3-C3)),OR(AND(C2>B2,C3>B3,ABS(B2-C2)=ABS(B3-C3)),AND(B2=C2,B3=C3,ABS(B2-B3)=1))),8,IF(OR(AND(B2>C2,B3>C3),AND(C2>B2,C3>B2),AND(B2=C2,B3=C3,ABS(B2-B3)<>1)),3,0)))
    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".

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

    Re: Formula for football league

    Correction to mine:

    =IF(B2&"-"&C2=B3&"-"&C3, 10, IF(OR(AND(B2>=C2,B3>=C3),AND(B2<=C2,B3<=C3)), IF(B2-C2=B3-C3, 8, 3), 0))

    That seems to give 8pts for draws.

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

    Re: Formula for football league

    If that resolves your need, please select Thread Tools from the menu above and mark the thread as solved. Thanks.

  8. #8
    Registered User
    Join Date
    10-04-2012
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Formula for football league

    thanks for the help micope21 and JBeaucaire .. but still its not getting right

    with your formula micope21
    =IF(AND(B2=B3,C2=C3),10,IF(OR(AND(B2>C2,B3>C3,ABS(B2-C2)=ABS(B3-C3)),OR(AND(C2>B2,C3>B3,ABS(B2-C2)=ABS(B3-C3)),AND(B2=C2,B3=C3,ABS(B2-B3)=1))),8,IF(OR(AND(B2>C2,B3>C3),AND(C2>B2,C3>B2),AND(B2=C2,B3=C3,ABS(B2-B3)<>1)),3,0)))

    by using this formula , if the actual score is 3-3 and the predicted score is 1-1, 8 points should be awarded.. but by using your formula only 3 points have been given. (same situation id actual score is 1-1 and predicted score is 3-3)

    with your formula JBeaucaire
    =IF(B2&"-"&C2=B3&"-"&C3, 10, IF(OR(AND(B2>=C2,B3>=C3),AND(B2<=C2,B3<=C3)), IF(B2-C2=B3-C3, 8, 3), 0))

    if the actual score is 2-0 and the predicted score is 1-1 or 2-2... 0 points should be awarded, but according to your formula 3 points have been awarded.

    hope both can sort this out

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

    Re: Formula for football league

    Try this:

    =IF(B2&"-"&C2=B3&"-"&C3, 10, IF(B2-C2=B3-C3, 8, IF(OR(AND(B2>C2,B3>C3),AND(B2<C2,B3<C3)), 3, 0)))

  10. #10
    Registered User
    Join Date
    10-04-2012
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Formula for football league

    thanks a lot JBeaucaire ..that really worked..

    but is there any possibility of adding one more condition?? its like there is 2 rules in this score predictor game. it is that you can place double bank and safe bet on 1 match each in every game week. if you place double bank you will get double the points.
    for ex. actual score is 2-1 and the predicted score is also 2-1 (Double Bet), you will get 20 points (10*2)
    actual score is 2-1 and the predicted score is 1-0 (Double Bet), you will get 16 points (8*2)
    actual score is 2-1 and the predicted score is 3-1 (Double Bet), you will get 6 points (3*2)
    actual score is 2-1 and the predicted score is 1-2 (Double Bet), you will get -10 points (since you placed double bet on completely opposite scoreline)
    actual score is 2-2 and the predicted score is 2-1 (Double Bet) , you will get 0 points
    actual score is 2-1 or 1-2 and the predicted score is 2-2 (Double Bet) , you will get 0 points

    now the safe bet rule, if you place safe bet on a match, and the result goes completely opposite, you will get 5 points

    for ex . actual score is 2-1 and the predicted score is 1-2 (safe bet), you will get 5 points
    actual score is 2-2 and the predicted score is 1-2 (Safe Bet), you will get 0 points.

    note- 5 points will be awarded only if prediction goes completely wrong. and it can't be placed on draws.

    can anyone find a condition formula for this rule. i can add some symbols or something else to cell below or on the same cell to accommodate this condition.

    i think this is bit difficult though, will be very very happy if some one can find a solution for this.

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

    Re: Formula for football league

    Hi

    Reason I did with this formula is If predicted score 1-1. Near to 1-1 like 2-2 or 0-0 would be 8 point. If 3-3 or more from predicted score 1-1 would be 3 point reason 2 space away.
    reason what you say from the 1st post,

    If that not a case. Then use JBeaucaire formula.

  12. #12
    Registered User
    Join Date
    10-04-2012
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Formula for football league

    thanks for the reply micope21

    btw can you help me with this, its like there is 2 rules in this score predictor game. it is that you can place double bank and safe bet on 1 match each in every game week. if you place double bank you will get double the points.
    for ex. actual score is 2-1 and the predicted score is also 2-1 (Double Bet), you will get 20 points (10*2)
    actual score is 2-1 and the predicted score is 1-0 (Double Bet), you will get 16 points (8*2)
    actual score is 2-1 and the predicted score is 3-1 (Double Bet), you will get 6 points (3*2)
    actual score is 2-1 and the predicted score is 1-2 (Double Bet), you will get -10 points (since you placed double bet on completely opposite scoreline)
    actual score is 2-2 and the predicted score is 2-1 (Double Bet) , you will get 0 points
    actual score is 2-1 or 1-2 and the predicted score is 2-2 (Double Bet) , you will get 0 points

    now the safe bet rule, if you place safe bet on a match, and the result goes completely opposite, you will get 5 points

    for ex . actual score is 2-1 and the predicted score is 1-2 (safe bet), you will get 5 points
    actual score is 2-2 and the predicted score is 1-2 (Safe Bet), you will get 0 points.

    note- 5 points will be awarded only if prediction goes completely wrong. and it can't be placed on draws.

    can anyone find a condition formula for this rule. i can add some symbols or something else to cell below or on the same cell to accommodate this condition.

    i think this is bit difficult though, will be very very happy if some one can find a solution for this.

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

    Re: Formula for football league

    I'm going to let this thread continue without me. Sorry for the inconvenience, but "feature creep" like this gets my goat a little, so I'm going to let you folks continue on ad nauseum.

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

    Re: Formula for football league

    Hi

    Please click on attachment.

    Let me know that what you looking for?
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    10-04-2012
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    8

    Thumbs up Re: Formula for football league

    FCPL SCORE PREDICTION 12-13.xlsxThat was so awesome micope21 u are one genius!!
    but just tell me how to get that to sheet calculation.. suppose i want that that to cell C7, E7, G7 etc...

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

    Re: Formula for football league

    Hi

    Please click on Attachment.

    Good luck
    Cheer
    Attached Files Attached Files
    Last edited by micope21; 10-10-2012 at 06:51 PM.

  17. #17
    Registered User
    Join Date
    10-04-2012
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    8

    Thumbs up Re: Formula for football league

    FCPL SCORE PREDICTION 12-13.xlsxFCPL SCORE PREDICTION 12-13.xlsx

    that almost worked , but it still has some errors.. i have uploaded the excel file and i colored the mistakes with yellow.

    for ex. In cell l19, since the actual score is 1-3 and the predicted score is 1-0( safe bet), 5 points should be awarded instead of 0

    in cell o19, since the actual score is 0-0 and the predicted score is 3-0 (DB) , 0 POINTS should be awarded since the result is not completely wrong!!

    note- no negative points will be given if the result turned out to be a draw on double bet

    Whereas if you had predicted a draw and double banked on it and if either of the team wins, then no points are deducted.

  18. #18
    Registered User
    Join Date
    10-04-2012
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Formula for football league

    and some players missed to predict the scores this week, and i have colored their names with yellow.. but they have been awarded 8 points on draws!! how can i stop that!!

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

    Re: Formula for football league

    Ok No problem

    Sort it.

    Have a look attachment workbook.

    Any problem let me know.

    Cheer
    Attached Files Attached Files
    Last edited by micope21; 10-11-2012 at 09:28 AM.

+ 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