+ Reply to Thread
Results 1 to 8 of 8

Averages

  1. #1
    Registered User
    Join Date
    12-22-2014
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    89

    Averages

    Hi,

    I would like to get some average figures in the attached sheet.

    1. Average count of container per month

    2. Average number of items per container for the whole period

    is there a quick formula that can give the result or will that be easier through pivot tables

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Averages

    To return counts of items, containers and months use this in E2, copied across to G2:

    =SUMPRODUCT(1/COUNTIF(A:A,A:A&""))-2

    then your averages per month are easy!!
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 05-24-2017 at 03:27 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Averages

    BtW, if you use the ACTUAL cell ranges, instead of the whole columns, remove the -2. If you use an extended range (A2:A100, replace the -2 with a -1. The - bits are needed to remover blank cells and the header row from calculations, where included.

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Averages

    In "E2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In above formula "E1" is criteria : 01/05/2016

    In "F2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In above formula "F1" is criteria : A


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    Registered User
    Join Date
    12-22-2014
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    89

    Re: Averages

    Thanks Glen.

    Just one correction it was items per container. I have amended the formula in E4.

    I manually checked the outcome. Containers per month is correct but the items per container is showing some variance.

    As per manually checking the items per container is 1.75 but the formula is giving 1.5
    In this sample dataset its not too much but I am dealing with 40000 rows where that figure would be significant.

    Thanks again
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Averages

    You didn't say/I didn't spot that the same item could be in more than one container.

    So item/container count:
    =SUMPRODUCT(1/(COUNTIFS(A$2:A$16, A$2:A$16&"", B$2:B$16, B$2:B$16&"")))

    Container count:
    =SUMPRODUCT(1/COUNTIF(B2:B16,B2:B16&""))

    Month count:
    =SUMPRODUCT(1/COUNTIF(C2:C16,C2:C16&""))

    See sheet.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-22-2014
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    89

    Re: Averages

    Awesome it all works well. cheers mate

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Averages

    You're welcome and thanks for the feedback !!

+ 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. Replies: 4
    Last Post: 03-13-2015, 05:34 AM
  2. Replies: 9
    Last Post: 05-15-2014, 01:57 PM
  3. Replies: 2
    Last Post: 02-29-2012, 09:34 PM
  4. How to get averages of already calculated averages
    By rosarionyc in forum Excel General
    Replies: 15
    Last Post: 12-29-2010, 03:05 PM
  5. Formula, Averages by name, and differences of averages
    By billyvnilly in forum Excel General
    Replies: 3
    Last Post: 02-24-2010, 05:35 PM
  6. Replies: 1
    Last Post: 05-02-2008, 10:41 AM
  7. averages....
    By Xoan in forum Excel General
    Replies: 4
    Last Post: 03-09-2007, 09:21 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