+ Reply to Thread
Results 1 to 16 of 16

How to find average in groups of 3 entries

  1. #1
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    How to find average in groups of 3 entries

    Every time I think I have this working, someone in our group changes the criteria. The attached has the latest formula to solve my averaging problem. I have a new problem that may not be solvable.
    The goal is for the value in column M to be the average of the numbers in P through AAD. The first complication was that we only wanted the latest X number of stats to apply to the average. X is the value in B1 and the formula there now works fine.
    However, now I have been asked to make it so the value in M only changes on mulitiples of the value in B (currently 3).
    In the sample the value in M for Richard Aaron should be 442 and remain that way until there are 6 stat values.

    I am not sure I am explaining this well. Please take a look and if there are questions or you need more info to help me figure this out let me know.

    sample.xlsx

    Thanks!
    Last edited by jimboryan; 05-20-2013 at 02:07 AM. Reason: per FDibbins
    "Laugh? I thought I'd die!"

    Jimbo?

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: More trouble with Averages

    Okay.. if you got 6 weeks of data but B1 says 5 then what is your expected results ?


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    Re: More trouble with Averages

    If B1 was 5 then the average should be for the first 5 of the 6 that I have. It should stay the same until I have 10 weeks of data for that player. Currently B1 is 3 and is probably staying there for the forseeable future, so if it is easier to do by removing the use of B1 as a variable that would not be a problem.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: More trouble with Averages

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: More trouble with Averages

    HI Jimbo,

    Would love to help if you first follow the above suggestion by Fdibbins.


    Regards,
    DILIPandey
    <click on below * if this helps>

  6. #6
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    Re: How to find average in groups of 3 entries

    Well,
    I've changed it. I hope it is better.

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to find average in groups of 3 entries

    Currently B1 is 3 and is probably staying there for the forseeable future, so if it is easier to do by removing the use of B1 as a variable that would not be a problem.
    sorry..I am still not clear.

    Let me know if I am correct as per below table :-

    data available for no. of wks = consider no. of wks for average
    ------------------------------------------------------------
    03 = 3
    04 = 3
    05 = 3
    06 = 6
    07 = 6
    08 = 6
    09 = 9
    10 = 9
    11 = 9
    and so on ?

    Regards,
    DILIPandey
    <click on below * if this helps>

  8. #8
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    Re: How to find average in groups of 3 entries

    You are correct. So whatever I use can't just pull the three latest weeks. If there are 4 weeks available, the average needs to be based on weeks 1, 2, and 3. If there are 6 weeks available then it needs to be based on 4, 5, and 6.

  9. #9
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to find average in groups of 3 entries

    Hi Jimbo,

    See the attached file where I have used below formula in define name "data" :-
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    sample.xlsx

    Regards,
    DILIPandey
    <click on below * if this helps>

  10. #10
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    Re: How to find average in groups of 3 entries

    Wow... this seems to work exactly as I need it to! I have two questions. First, how do I add this to my spreadsheet? I don't see where the actual formula is. The other is are we using the value of B1 to set how many weeks, or is it hard coded at 3?

  11. #11
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to find average in groups of 3 entries

    HI Jimbo,

    You can replace 3 with B1 in the formula if you want to use B1.
    And,
    In order to use this in your spreadhseet... copy the formula and the defined name, which you can get by pressing ctrl + F3.


    Regards,
    DILIPandey
    <click on below * if this helps>

  12. #12
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    Re: How to find average in groups of 3 entries

    Once again thanks!! I think i've got it working on the real spreadsheet now. I am going to mess with it tomorrow to make sure all the math works right, and then put it into use. I really appreciate the time it must have taken you to work this all out for me.

  13. #13
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    Re: How to find average in groups of 3 entries

    Last question. Which 3 do I change to B1?

  14. #14
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to find average in groups of 3 entries

    start with changing all 3



    Regards,
    DILIPandey
    <click on below * if this helps>

  15. #15
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    Re: How to find average in groups of 3 entries

    That was my thinking, but it's nice to confirm. I did however forget to enter it as $b$1, so it didn't work at first.

    Thanks again for all your help!

  16. #16
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to find average in groups of 3 entries

    You are welcome Jimbo..



    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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