+ Reply to Thread
Results 1 to 21 of 21

"Complex" score averaging system

  1. #1
    Registered User
    Join Date
    12-31-2017
    Location
    Lewisville, TX
    MS-Off Ver
    2016
    Posts
    9

    "Complex" score averaging system

    I am fairly well versed in Excel but I am having a hard time getting the results I want from a spreadsheet I am trying to create. I play darts and the website that kept stats for me for several years did not renew the domain so I lost everything for the year. I am preparing for next year.

    Here is what I have and what I need help with:
    I am only using this chart for following my 501 games - start at 501 and throw darts till I get to zero.

    First column: date (easy and done)
    Second column: number of darts thrown (easy...if I throw 20 darts in a 501 game I enter 20)
    Third column: points per dart: (easy...501/column 2)
    Forth column: points per turn: (easy...column 2 * 3 darts)

    Here is where I am having problems:
    Fifth column: I want a cumulative average of all games played for a month. So if I throw a 20, 22, and 22 dart games I want to have each cell to show a cumulative of the previous games. i.e. 20+22=42 darts. Two 501 games (1002). 1002\42=23.85 darts/game. 23.85 * 3 (3 darts per turn) = 71.55 Points per turn. 42+22=64 darts. Three 501 games (1503). 1503/64=23.48 darts per game. 23.48*3=70.44
    Sixth column: Cumulative average for the year. Same as above but I want to have an average for the year.

    I don't have a problem with the math. The problem I have is preventing formatting these enormous lines of b2+b3+b4+b5 et al.

    Any formula formatting is greatly appreciated.

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: "Complex" score averaging system

    Hi, welcome to Excel Forum! A small sample workbook (NOT a picture) would really help us to solve your problem quickly and accurately.
    Please remove any personal or proprietary information.
    Try to preserve the original layout so our solutions fit your workbook.
    Provide “realistic” data. Include any variations the code or formula must address.
    IMPORTANT: Simulate some results to demonstrate what you want.

    To attach a workbook:
    Click Edit Post (or just start a new reply.)
    Click Go Advanced
    Scroll down to Manage Attachments and click.
    Now click Browse, find your file, then click Upload to finish.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Registered User
    Join Date
    12-31-2017
    Location
    Lewisville, TX
    MS-Off Ver
    2016
    Posts
    9

    Re: "Complex" score averaging system

    I think I put the spreadsheet in the reply.
    Attached Files Attached Files

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: "Complex" score averaging system

    Hi Greg,

    See if a Pivot table where you group by dates is close to what you want. You can also do a running total or other calculations in the columns.

    DartPracticeAverages.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: "Complex" score averaging system

    Something like this?

    Row\Col
    A
    B
    C
    D
    E
    F
    1
    Date
    darts
    PPD
    PPT
    28-day AVG. PPT
    Cumulative AVG. PPT
    2
    1/1/17
    23
    21.78
    65.35
    65.35
    65.35
    3
    1/3/17
    22
    22.77
    68.32
    66.80
    66.80
    4
    1/8/17
    22
    22.77
    68.32
    67.30
    67.30
    5
    1/10/17
    22
    22.77
    68.32
    67.55
    67.55
    6
    1/15/17
    20
    25.05
    75.15
    68.94
    68.94


    Paste this in E2 and copy down:
    Please Login or Register  to view this content.
    ...In F2, copied down:
    Please Login or Register  to view this content.
    Syntax of AVERAGEIFS (and related functions SUMIFS and COUNTIFS):
    AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
    Attached Files Attached Files
    Last edited by leelnich; 01-01-2018 at 12:12 AM.

  6. #6
    Registered User
    Join Date
    12-31-2017
    Location
    Lewisville, TX
    MS-Off Ver
    2016
    Posts
    9

    Re: "Complex" score averaging system

    leenich: What you show there is really close to what I want.

    I want to add additional data as time goes by and I want the pivot table to be able to recalculate. I am looking for a monthly average and a year to date average. That also means having the spreadsheet figure out how many games I played in the month.
    I was trying to redo the pivot table myself and for some reason the spreadsheet would not allow me to save. Something about formula errors.
    Attached is my current sheet and a screen shot of what I was trying to view for a pivot table.
    I hope I got the attachments included.
    Attached Images Attached Images
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,197

    Re: "Complex" score averaging system

    Try

    See table in H:M

    In I2

    =SUMIFS(B:B,$A:$A,">=" &$H2,$A:$A,"<=" &EOMONTH($H2,0))

    in J2

    =IFERROR((COUNTIFS($A:$A,">=" &$H2,$A:$A,"<=" &EOMONTH($H2,0))*501)/SUMIFS($B:$B,$A:$A,">=" &$H2,$A:$A,"<=" &EOMONTH($H2,0)),"")

    in K2

    =IFERROR((COUNTIFS($A:$A,">=" &$H2,$A:$A,"<=" &EOMONTH($H2,0))*501)/SUMIFS($B:$B,$A:$A,">=" &$H2,$A:$A,"<=" &EOMONTH($H2,0))*3,"")

    in l2

    =IFERROR((COUNTIFS($A:$A,">=" &$H$2,$A:$A,"<=" &EOMONTH($H2,0))*501)/SUMIFS($B:$B,$A:$A,">=" &$H$2,$A:$A,"<=" &EOMONTH($H2,0)),"")

    in M2

    =IFERROR((COUNTIFS($A:$A,">=" &$H$2,$A:$A,"<=" &EOMONTH($H2,0))*501)/SUMIFS($B:$B,$A:$A,">=" &$H$2,$A:$A,"<=" &EOMONTH($H2,0))*3,"")
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-31-2017
    Location
    Lewisville, TX
    MS-Off Ver
    2016
    Posts
    9

    Re: "Complex" score averaging system

    The yearly cumulative for May 2018 is not calculating correctly.

    Month TTL Dart PPD PPT *** PPD *** PPT
    May-18 516.00 13.59 40.78 1.45 5876.95

    What is the entry for L6 and M6?

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,197

    Re: "Complex" score averaging system

    I cannot check it without data.

    Formula in L

    =IFERROR((COUNTIFS($A:$A,">=" &$H2,$A:$A,"<=" &EOMONTH($H2,0))*501)/SUMIFS($B:$B,$A:$A,">=" &$H2,$A:$A,"<=" &EOMONTH($H2,0))*3,"")

    L & M are Cumulative PTT month and Year respectively.

    These agree with your figures.
    Attached Files Attached Files
    Last edited by JohnTopley; 05-05-2018 at 04:37 AM.

  10. #10
    Registered User
    Join Date
    12-31-2017
    Location
    Lewisville, TX
    MS-Off Ver
    2016
    Posts
    9

    Re: "Complex" score averaging system

    I added dates and games to May but the year to date did not calculate correctly.
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,197

    Re: "Complex" score averaging system

    The results agree: you had an extra date in May which "upset" my formulae.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    12-31-2017
    Location
    Lewisville, TX
    MS-Off Ver
    2016
    Posts
    9

    Re: "Complex" score averaging system

    Will I be able to add dates to the sheet and it calculate everything?
    Eventually I will want to start over in 2019. Will these formulas work next year?

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,197

    Re: "Complex" score averaging system

    Yes it will work for all months but you need to change the dates in column H as required.

  14. #14
    Registered User
    Join Date
    12-31-2017
    Location
    Lewisville, TX
    MS-Off Ver
    2016
    Posts
    9

    Re: "Complex" score averaging system

    June calculations are not correct. Please help.
    Attached Files Attached Files

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

    Re: "Complex" score averaging system

    By extending column G down to row 184 the value is 42.49 which is the same value that you get if you drag the fill handle of cell L6 down to cell L7 (and below).
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  16. #16
    Registered User
    Join Date
    12-31-2017
    Location
    Lewisville, TX
    MS-Off Ver
    2016
    Posts
    9

    Re: "Complex" score averaging system

    I guess I don't understand what you are talking about. At the top of the document is a pivot table that calculates each month. L7 is not calculating correctly. The date I put in Column A is different for each time I practice.

    And I guess I could use some instruction on how to fix this myself in the future.

  17. #17
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: "Complex" score averaging system

    Hi gksmith,

    I'm just guessing but Pivot Tables need to be "Refreshed" after you change the data that makes them up. Is this what the problem is? If you click anywhere in the Pivot Table, you get a new tab at the top. In one of those subtabs is a "Refresh All" icon. Click on it and see if that is it. I hope that is the easy answer.

  18. #18
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: "Complex" score averaging system

    option using your original monthly summary (I2:M13):
    Please Login or Register  to view this content.
    GameStats = A2:G184

    Option, convert the range to a table and add a column for month # and use a pivot table.
    Attached Files Attached Files
    Ben Van Johnson

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

    Re: "Complex" score averaging system

    I based my comment on the file attached to post #14, which I assumed to be the file for which the statement "June calculations are not correct" was directed. In that file the formula for cell L6 is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In that file the formula for cell L7 is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If you select cell L6 and drag the fill handle down to cell L7 the value displayed in L7 will be 42.49
    I assume that value to be correct because the value for Jan. in L2 (40.47) is also in G8 and the value for Feb. L3 (42.34) is also in G51 etc.
    If you drag the fill handle of cell G134 down to cell G184, then cell G184 also displays 42.49
    Let us know if you have any questions.

  20. #20
    Registered User
    Join Date
    12-31-2017
    Location
    Lewisville, TX
    MS-Off Ver
    2016
    Posts
    9

    Re: "Complex" score averaging system

    The original pivot table shows for January, February, March, April, and May so a monthly and yearly (Cumulative) points per turn. The monthly PPT is correct. The yearly (Cumulative) is not calculating correctly.

    JeteMC: I did what you suggested and it shows correctly. That looks right. My next question is how do I get the rest of the year to calculate correctly? Do I need to drag that same formula from L8 to L13? I am going to start entering practice for July and I want the cumulative calculation to continue.

    Thank you for your help.

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

    Re: "Complex" score averaging system

    Looking at the file attached to post #14 I would suggest that you modify the formula in L2 to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Once that formula is entered in cell L2 you may drag the fill handle down to L13.
    Let us know if you have any questions.

+ 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. Fairly complex - matching "siblings" and "parents" across sheets
    By michael.sejrup in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-09-2016, 01:24 AM
  2. [SOLVED] Adjacent cells - setting criteria for "A" while averaging "B"
    By ilovemonkeys in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2013, 11:57 AM
  3. [SOLVED] Complex "if" "or" "else" statement for ABC analysis
    By TheDanee in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-06-2013, 08:43 AM
  4. Replies: 1
    Last Post: 06-21-2012, 05:19 AM
  5. Complex IF functions containing "ISNA" and "VLOOKUP"
    By myshadeofglory in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-10-2011, 03:28 PM
  6. Merging a "physical count" to a "system on-hand"
    By raharms in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2010, 04:43 AM
  7. Replies: 1
    Last Post: 01-30-2006, 06:10 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