Excel Formula for Football Scores

Solved
madjon6 Posted messages 270 Status Member -  
 badrbadr -
Hello,

I want to set up automatic scores for LOTO FOOT but I don't know how to create a formula with soccer scores in the format => x-x=> 0-0

Do you have any ideas?

Thank you
Configuration: Windows XP Internet Explorer 6.0

19 answers

  1. madjon6 Posted messages 270 Status Member 79
     
    cool
    6
    1. chtilou Posted messages 1704 Status Member 523
       
      And what's that you say...
      =IF(AND(A2=C2,B2=D2),3,IF(AND(A2>B2,C2>D2),1,IF(AND(A2=B2,C2=D2),1,IF(AND(A2
      0
  2. madjon6 Posted messages 270 Status Member 79
     
    Yeah, thanks to you, it's cool.
    1
    1. chtilou Posted messages 1704 Status Member 523
       
      at your service Madjon
      kisses
      0
  3. chtilou Posted messages 1704 Status Member 523
     
    Hello,
    let G3, H3 be the two teams
    the points awarded by the following formula are: 2 points for a draw, 1 point for losing, 4 points for winning
    =IF(AND(ISNUMBER(G3),ISNUMBER(H3),G3=H3),2,IF(AND(ISNUMBER(G3),ISNUMBER(H3),G3

    H3),4,""))
    I hope this will work for you.

    0
  4. madjon6 Posted messages 270 Status Member 79
     
    Thank you for your help but I don't see how you take into account the score format.

    Example:

    If the match is won with the exact result => 3 points, if won but the result is not exact then 1 point, otherwise 0 points

    MATCH SCORE LOTO FOOT
    Arsenal/Chelsea 0-0 0-1
    REAL/MILAN 1-0 2-1
    Liverpool/Reds 1-2 0-2
    0
    1. chtilou Posted messages 1704 Status Member 523
       
      =IF(AND(ISNUMBER(G3),ISNUMBER(H3),G3=H3),0,IF(AND(ISNUMBER(G3),ISNUMBER(H3),G3H3),2,""))
      remplace les points d'interrogation de la formule ci-dessus par le nombre de points affectés en cas de =, <, >
      G3 et H3 sont les équipes.
      une première formule te donne le nombre de points attribué à l'équipe G3
      une seconde formule où tu intervertis H3 et G3 te donne le nombre de points attribué à l'équipe H3


      Arsenal/Chelsea 0-0 0-1 match nul donne 0pt pour l'équipe qui reçoit 1pt pour l'autre?
      REAL/MILAN 1-0 2-1 match gagné donne 2pts pour l'équipe qui reçoit 1pt pour l'autre?
      liver/reds 1-2 0-2 match perdu donne 0pt pour l'équipe qui reçoit 2pts pour l'autre?
      0
    2. badrbadr
       
      Salut chtilou, je me permets de t'écrire car je vois que tu connais pas mal Excel. J'aimerais savoir si tu pourrais voir cette vidéo https://m.youtube.com/watch?v=mUO2wPNthAw et si tu peux voir quelles sont toutes les formules que la personne utilise s'il te plaît. Si tu peux me répondre sur mon mail ***@***.
      0
  5. madjon6 Posted messages 270 Status Member 79
     
    but how can you compare a result in the following format 0-1 how will excel understand?
    0
    1. chtilou Posted messages 1704 Status Member 523
       
      Start from the beginning, I'm not sure I fully understand your needs.
      0
  6. madjon6 Posted messages 270 Status Member 79
     
    I want to be able to enter a score in this format in a cell 0-1
    and compare it to another score (lotto foot forecast) to assign points based on the results.

    Example:

    France/Italy => score = 0-1 lotto foot = 0-2 so the bettor gets a point because Italy wins but with a different score.

    I want to be able to assign these points using an Excel formula.
    0
    1. chtilou Posted messages 1704 Status Member 523
       
      you need to use one cell per score (so in this case 4) and not one cell per match result.
      0
  7. madjon6 Posted messages 270 Status Member 79
     
    Yes, it's a score per cell. If you have an email, I'll send you the file for better understanding.
    0
    1. chtilou Posted messages 1704 Status Member 523
       
      the formula I gave you remains valid.

      columns A and B: match result

      columns C and D: prediction

      column E: thanks to this formula
      =IF(AND(ISNUMBER(A1),ISNUMBER(B1),A1=B1),1,IF(AND(ISNUMBER(A1),ISNUMBER(B1),A1<B1),0,IF(AND(ISNUMBER(A1),ISNUMBER(B1),A1>B1),2,""))
      draw = 1, lost match = 0, won match = 2

      column F: thanks to this formula
      =IF(AND(ISNUMBER(C1),ISNUMBER(D1),C1=D1),1,IF(AND(ISNUMBER(C1),ISNUMBER(D1),C1<D1),0,IF(AND(ISNUMBER(C1),ISNUMBER(D1),C1>D1),2,""))
      draw = 1, lost match = 0, won match = 2

      column G =IF(E1=F1,1,0)

      you can then hide columns E and F
      0
  8. madjon6 Posted messages 270 Status Member 79
     
    I will test and keep you updated.
    0
    1. chtilou Posted messages 1704 Status Member 523
       
      Next month?
      0
  9. madjon6 Posted messages 270 Status Member 79
     
    lolllllll no I'm doing it right now

    But alas it doesn't work

    Match Score prediction Points
    Bordeaux - Nancy 2 1 2 0 1
    Valenciennes - Lyon 1 2 1 1 0
    Sochaux - Nice 1 0 1 1 0
    Le Mans - Caen 1 1 0 0 1
    Lille - Auxerre 0 2 2 0 0
    Metz - Toulouse 0 2 1 0 0
    Lorient - Marseille 1 2 1 0 0

    If the prediction is correct but the score is not exact then 1 point, if the score is exact then 3 points, otherwise 0 points.
    0
    1. chtilou Posted messages 1704 Status Member 523
       
      Hi,
      I’m going to end up knowing how to play sports betting.
      I’m looking at it based on this NEW piece of information.
      0
      1. chtilou Posted messages 1704 Status Member 523 > chtilou Posted messages 1704 Status Member
         
        We were at column G.
        So H
        =IF(AND(A1=C1,B1=D1),2,0)
        And column I
        =SUM(G1+H1)
        Hide E, F, G, H and this time I believe we're good. Unless changes, of course...
        0
  10. madjon6 Posted messages 270 Status Member 79
     
    What I don't understand is why we need to make several formulas:

    Let me explain

    to understand well I will put the cells:

    -----Result A1 B1--------- Prediction C1 D1
    --------------------2 1 -------------------- 3 1
    so we get 1 point because the match is won but the result is inaccurate.

    Points in cell => E1
    =IF(AND(A1=C1;B1=D1;3);IF(AND(A1>C1;B1>D1);1);IF(AND(A1<c1 />

    This one still doesn't work very well.
    0
    1. chtilou Posted messages 1704 Status Member 523
       
      Je suis là pour vous aider avec des traductions. Veuillez fournir le texte que vous souhaitez traduire.
      0
  11. madjon6 Posted messages 270 Status Member 79
     
    Did you not understand?
    0
  12. madjon6 Posted messages 270 Status Member 79
     
    Give me your email and I'll send you my file and you'll see.
    0
    1. chtilou Posted messages 1704 Status Member 523
       
      Here comes my little Madjon
      =IF(AND(A1=C1,B1=D1),3,IF(AND(A1>B1,C1>D1),1,IF(AND(A1then... happy..?
      0
  13. madjon6 Posted messages 270 Status Member 79
     
    But that's how I went about it, and I just did it again like you and it still doesn't work; I'm about to admit defeat by Excel

    For your information, I am male lol
    0
  14. chtilou Posted messages 1704 Status Member 523
     
    Here are the 2 formulas (1=you, 2=me)

    IF(AND(A1=C1,B1=D1,3),IF(AND(A1>C1,B1>D1),1),IF(AND(A1<c1 />IF(AND(A1=C1,B1=D1),3,IF(AND(A1>B1,C1>D1),1,IF(AND(A1<b1 />
    At my place, it works without any problems ;-(
    0
  15. madjon6 Posted messages 270 Status Member 79
     
    Yes, but it doesn't work on all tests

    -----Result --A1 B1--------- Prediction C1 D1
    --------------------0 2 -------------------- 2 0
    therefore, we get 0 points because the match is lost

    Try it, you'll see
    0
    1. chtilou Posted messages 1704 Status Member 523
       
      why should we get what?
      0
    2. chtilou Posted messages 1704 Status Member 523
       
      Keep me posted. See you later.
      0
  16. madjon6 Posted messages 270 Status Member 79
     
    We get 1 when we should get 0 since the match is lost

    Reminder:

    Match won with the exact score = 3 points, won but incorrect score = 1 point and all other cases = 0 points
    0
    1. chtilou Posted messages 1704 Status Member 523
       
      Hi,
      try copying / pasting this formula in cell E1
      =IF(AND(A1=C1,B1=D1),3,IF(AND(A1>B1,C1>D1),1,IF(AND(A1I just did it on a blank document and it works.
      (Match won with the exact score = 3 points, won but incorrect score = 1 point, and all other cases = 0 pts)=OK
      0
  17. madjon6 Posted messages 270 Status Member 79
     
    Yes, it's better now but it still doesn't handle all the tests:

    I've just noticed that when a match ends in a tie but with an incorrect score, it gives 0 instead of 1, even though we should get 1 since the match is tied.

    Illustration:

    -----Result --A1 B1--------- Prediction C1 D1
    --------------------1 1 -------------------- 2 2

    To solve this problem, I added this series => if(and(a1-b1=0;c1-d1=0);1;0) but it only works when the tie is correct but the score is exact.

    But also in this case it doesn't work

    -----Result --A1 B1--------- Prediction C1 D1
    --------------------0 --0 -------------------0-- 1

    I hope I'm not being a burden.
    0
    1. chtilou Posted messages 1704 Status Member 523
       
      Don't worry, I like it... lol
      0
  18. madjon6 Posted messages 270 Status Member 79
     
    Ok, I'm checking but before I eat, enjoy your meal!
    0
    1. chtilou Posted messages 1704 Status Member 523
       
      Ci... good app.
      0
  19. madjon6 Posted messages 270 Status Member 79
     
    Perfect, it works, at least I've tested it in several cases and there are no errors.

    What do you do in life? Do you know a bit about VBA programming?
    0
    1. chtilou Posted messages 1704 Status Member 523
       
      Sorry, not at all.
      Anyway, I'm glad for you that it's going well.
      0