+ Reply to Thread
Results 1 to 7 of 7

Formula to award points for football score prediction

  1. #1
    Registered User
    Join Date
    06-07-2008
    Posts
    2

    Formula to award points for football score prediction

    Hope this is the right subforum to post in! Basically i'm writing a football table and want to match the scores in a prediction to the actual results and displaying a score based on the predictions

    so for example if you predict the game will end 2-1 and it does end 2-1 return the value 3. If you select the correct WINNER of the match you'll get 1 point and if you don't get the winner right you get 0 points.

    The formulae i tried was

    =IF(AND(B3=K3,C3=L3), D3=3, IF(AND(B3>K3, C3>L3), D3=1, IF(AND(B3<K3, C3<L3), D3=1)))

    Any help appreciated! Thanks.
    Last edited by OliverW; 06-07-2008 at 10:38 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Hello Oliver,

    If you're putting the formula in D3 then you wouldn't normally refer to that cell within the formula. Try this

    =IF(COUNT(B3,C3,K3,L3)=4,IF(AND(B3=K3,C3=L3),3,IF(SIGN(B3-C3)=SIGN(K3-L3),1,0)),"")

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    OliverW

    Welcome to Exceltip forum

    Please take a couple of minutes and read the Forum Rules then edit your thread title by following the instructions in the rules (Rule 1)
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  4. #4
    Registered User
    Join Date
    06-07-2008
    Posts
    2
    Thanks for both replies, firstly because it's fixed and sorry for breaking the rules! I've read them and now fully understand. As this topic is fixed you may lock/delete it if you wish.

    Thanks so much.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Hello Oliver,

    mudraker was, of course, correct. I should have commented on the thread title myself. I have now changed it to something a little more descriptive of your problem.....

  6. #6
    Registered User
    Join Date
    12-30-2008
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    1
    Quote Originally Posted by daddylonglegs View Post
    Hello Oliver,

    If you're putting the formula in D3 then you wouldn't normally refer to that cell within the formula. Try this

    =IF(COUNT(B3,C3,K3,L3)=4,IF(AND(B3=K3,C3=L3),3,IF(SIGN(B3-C3)=SIGN(K3-L3),1,0)),"")
    Hello daddylonglegs

    i know it's been a while since you posted this but i was hoping you might be able to help me out with a little update. Your formula works fine with the exception of.. if the score ends in a 1-1 draw, anyone who has predicted a draw (ie 0-0 or 2-2) is awarded 1 point. when in fact they should be awarded 0 points. i have been trying to develop this sedsheet for ages and you formula was a great help to me. i hope you can come back with a suggestion.

    regards
    pluto

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try changing to

    =IF(COUNT(B3,C3,K3,L3)=4,IF(AND(B3=K3,C3=L3),3,IF(B3<>C3,IF(SIGN(B3-C3)=SIGN(K3-L3),1)))+0,"")

+ 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