+ Reply to Thread
Results 1 to 5 of 5

premiership football prediction system, need help with the coding to check results

  1. #1
    Registered User
    Join Date
    08-23-2009
    Location
    Blackpool, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    premiership football prediction system, need help with the coding to check results

    ok guys i have set up a competition in my pub, which is like the football pools system. A person looks at the football fixtures in the premiership for the week and decided whether it will be a home win (1), draw (2) or away win (3). I have created a excel spreadsheet with the persons name and their team name and their predictions in it.

    I want to make it easier on my self so i have added all the peoples details who have entered and their predictions, and at the bottom i have created a row with the correct choices. How do i create a forumla that looks at what the person has predicted and the correct decsion and then gives them a point if they have got it correct, and then adds them up at the end.

    here is a example of what i have done

    cell a2 has the persons name
    cell b2 has the persons team name
    cell c2 to l2 has the persons predicitons

    cell c54 to l54 have the correct answers in it

    i want to put the total for this person in the cell p2,

    i assume i would need to put in a if statement but it has been a while since i have used this, can any one help,

    many thanks in advance

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

    Re: premiership football prediction system, need help with the coding to check result

    Hi monkeybuoy. Click GO ADVANCED and use the paperclip icon to post up your workbook.

    Make sure you not only have good sample data already in the workbook, but mockup samples of the desired results in column P, too. Make sure it's clear to see on the sheet what you want.
    _________________
    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!)

  3. #3
    Registered User
    Join Date
    08-23-2009
    Location
    Blackpool, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: premiership football prediction system, need help with the coding to check result

    thanks will do in the next five mins

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

    Re: premiership football prediction system, need help with the coding to check result

    Assuming C2:I2 and C54:I54 all have numbers 1, 2 or 3 then try this formula in P2

    =SUMPRODUCT((C2:I2=C$54:I$54)*(C2:I2<>""))

  5. #5
    Registered User
    Join Date
    08-23-2009
    Location
    Blackpool, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: premiership football prediction system, need help with the coding to check result

    thanks alot daddy , that seems to work amazingly, you are a star

+ 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