+ Reply to Thread
Results 1 to 4 of 4

to sum 6 matches from a list and to count the goal difference.

  1. #1
    Registered User
    Join Date
    03-12-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    18

    to sum 6 matches from a list and to count the goal difference.

    HI,

    I would like to sum the goals difference by a team for their last 6 matches, both home and away.

    The first figure will appear in cell G71 showing the last 6 games goal difference for Bradford and in cell H71 for the last 6 games goals difference for Colchester.

    Each match has a Match No.

    so the final result would be
    Match No. Match Wk. Date Home Tm Away Tm h/gdiff a gdiff home away
    70 7 14/9 Bradford Colchester 10 -1 2 2

    and then copied for the rest of the matches that season for all teams.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: to sum 6 matches from a list and to count the goal difference.

    Before you go reporting on anything make sure your data is consistent.

    Column C contains a mixture of dates that are numbers and text.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    03-12-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: to sum 6 matches from a list and to count the goal difference.

    that's why I've given each match a match number column A to use as a starting point. If you need the dates I will change them.

    Regards

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,611

    Re: to sum 6 matches from a list and to count the goal difference.

    This proposed solution employs a helper column which may be moved and/or hidden for aesthetic purposes.
    The formula that populates the helper column (difference) is: =ABS(H2-I2)
    The array entered formula* that populates column M is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *Array entered formulas are confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Let us know if you have any questions.
    Attached Files Attached Files
    Last edited by JeteMc; 12-27-2017 at 01:10 PM. Reason: Correcting error in formula and file
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Weekly Word Count Goal
    By tgreene2856 in forum Excel General
    Replies: 6
    Last Post: 07-06-2015, 03:06 PM
  2. [SOLVED] Summing the matches of one column only if its corresponding description matches a list
    By bishop-jese-erl in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-19-2015, 04:26 PM
  3. Replies: 1
    Last Post: 04-26-2014, 08:28 AM
  4. Replies: 9
    Last Post: 04-19-2014, 02:28 PM
  5. [SOLVED] Count number of occurrences but if there are consecutive matches count them as one
    By michaljireht in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-26-2013, 08:26 PM
  6. [SOLVED] Macro to check data for matches and return a difference
    By Justair07 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-27-2013, 10:59 AM
  7. sorts on goal difference
    By rfc5141 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-19-2007, 08:09 AM

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