+ Reply to Thread
Results 1 to 5 of 5

Football Scores

  1. #1
    Registered User
    Join Date
    02-27-2004
    Posts
    23

    Question Football Scores

    Hi,

    I have an xls with a list of football matches. In column A I will have the home scores and in column B, I will have teh away team's scores. I then have in column C my predicition for teh home team and in column D the away team score predcition. I want column E to compare teh two sets of scores and award me 3 points for an exact match of the scores and 1 point if I predict teh correct wwinner or a draw. - How can I do this?

    Thanks

    Simon

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Try

    =IF(AND(A1=C1,B1=D1),3,IF(AND(A1<B1,C1<D1),1,IF(AND(A1>B1,C1>D1),1,IF(AND(A1=B1,C1=D1),1,0))))





    Quote Originally Posted by Number_8
    Hi,

    I have an xls with a list of football matches. In column A I will have the home scores and in column B, I will have teh away team's scores. I then have in column C my predicition for teh home team and in column D the away team score predcition. I want column E to compare teh two sets of scores and award me 3 points for an exact match of the scores and 1 point if I predict teh correct wwinner or a draw. - How can I do this?

    Thanks

    Simon

  3. #3
    Registered User
    Join Date
    02-27-2004
    Posts
    23
    Perfect thanks

  4. #4
    Bob Phillips
    Guest

    Re: Football Scores

    I think this is it Simon

    =IF(AND(A2=C2,B2=D2),3,IF(AND(A2=B2,C2=D2),1,IF(SIGN(A2-B2)=SIGN(C2-D2),1,0)
    ))

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Number_8" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi,
    >
    > I have an xls with a list of football matches. In column A I will have
    > the home scores and in column B, I will have teh away team's scores. I
    > then have in column C my predicition for teh home team and in column D
    > the away team score predcition. I want column E to compare teh two sets
    > of scores and award me 3 points for an exact match of the scores and 1
    > point if I predict teh correct wwinner or a draw. - How can I do this?
    >
    > Thanks
    >
    > Simon
    >
    >
    > --
    > Number_8
    > ------------------------------------------------------------------------
    > Number_8's Profile:

    http://www.excelforum.com/member.php...fo&userid=6590
    > View this thread: http://www.excelforum.com/showthread...hreadid=395265
    >




  5. #5
    Bob Phillips
    Guest

    Re: Football Scores

    Mine can be simplified a bit

    =IF(AND(A2=C2,B2=D2),3,IF(AND(A2=B2,C2=D2),1,--(SIGN(A2-B2)=SIGN(C2-D2))))

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Bob Phillips" <[email protected]> wrote in message
    news:%[email protected]...
    > I think this is it Simon
    >
    >

    =IF(AND(A2=C2,B2=D2),3,IF(AND(A2=B2,C2=D2),1,IF(SIGN(A2-B2)=SIGN(C2-D2),1,0)
    > ))
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Number_8" <[email protected]> wrote

    in
    > message news:[email protected]...
    > >
    > > Hi,
    > >
    > > I have an xls with a list of football matches. In column A I will have
    > > the home scores and in column B, I will have teh away team's scores. I
    > > then have in column C my predicition for teh home team and in column D
    > > the away team score predcition. I want column E to compare teh two sets
    > > of scores and award me 3 points for an exact match of the scores and 1
    > > point if I predict teh correct wwinner or a draw. - How can I do this?
    > >
    > > Thanks
    > >
    > > Simon
    > >
    > >
    > > --
    > > Number_8
    > > ------------------------------------------------------------------------
    > > Number_8's Profile:

    > http://www.excelforum.com/member.php...fo&userid=6590
    > > View this thread:

    http://www.excelforum.com/showthread...hreadid=395265
    > >

    >
    >




+ 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