+ Reply to Thread
Results 1 to 7 of 7

Formula to measure whether or not both teams have scored for football data

  1. #1
    Registered User
    Join Date
    08-29-2018
    Location
    England
    MS-Off Ver
    2007
    Posts
    10

    Formula to measure whether or not both teams have scored for football data

    Hi,
    I am trying to record whether or not both teams have scored in one football match, i have attached a workbook for more detail.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,711

    Re: Formula to measure whether or not both teams have scored for football data

    You can use this formula:

    =IF(AND(Table2[[#This Row],[FTHG]]>0,Table2[[#This Row],[FTAG]]>0),"yes","no")

    Alternatives include multiply the two values and check for >0.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Formula to measure whether or not both teams have scored for football data

    I am not sure if I understand the logic.
    On Row 5 Home team scored 2 [col. C] and Away team scored 1 [col. D], so why does col. E indicate A?

    What is the logic for numbers in columns F and G?
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

  4. #4
    Registered User
    Join Date
    08-29-2018
    Location
    England
    MS-Off Ver
    2007
    Posts
    10

    Re: Formula to measure whether or not both teams have scored for football data

    Thanks for the post pete, works like a charm.
    I also forgot to mention i would like to be able to calculate the win and loss streaks of the results

  5. #5
    Registered User
    Join Date
    08-29-2018
    Location
    England
    MS-Off Ver
    2007
    Posts
    10

    Re: Formula to measure whether or not both teams have scored for football data

    Thats just a typo, but good spot.

  6. #6
    Registered User
    Join Date
    08-29-2018
    Location
    England
    MS-Off Ver
    2007
    Posts
    10

    Re: Formula to measure whether or not both teams have scored for football data

    Quote Originally Posted by modytrane View Post
    I am not sure if I understand the logic.
    On Row 5 Home team scored 2 [col. C] and Away team scored 1 [col. D], so why does col. E indicate A?

    What is the logic for numbers in columns F and G?
    Thats just a typo, but good spot

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,599

    Re: Formula to measure whether or not both teams have scored for football data

    Rule 08: Cross-posting Without Telling Us

    Your post does not comply with Rule 8 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question. If you have fewer than 10 posts here, you will not be able to post a link, but you must still tell us where else you have asked the question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    If you have less than 10 posts, do not try to copy and paste the link. Instead, type the link out in your thread.

    No further help to be offered, please, until the OP has complied with this request.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Football Tournament Teams - Fixtures Results and FInal Tables
    By ewanrob in forum Excel General
    Replies: 7
    Last Post: 05-22-2018, 05:15 AM
  2. [SOLVED] Baseball, who scored first formula?
    By alexandra nyx in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 04-22-2018, 05:47 PM
  3. [SOLVED] Rating football teams/calculating superiority of football teams
    By gko_87 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-09-2017, 04:01 PM
  4. Football/Soccer data, teams giving up a lead or recovering a goal deficit
    By AlexCarl in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 12-11-2014, 09:15 AM
  5. Replies: 1
    Last Post: 11-19-2012, 03:58 PM
  6. Replies: 2
    Last Post: 10-10-2012, 05:03 PM
  7. Managing reverse scored data
    By Wizardess in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-10-2007, 07:22 PM

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