+ Reply to Thread
Results 1 to 14 of 14

AVERAGE function problem (probably)

  1. #1
    Registered User
    Join Date
    05-25-2012
    Location
    Drnis, Croatia
    MS-Off Ver
    Excel 2010
    Posts
    31

    AVERAGE function problem (probably)

    Hello,

    I need some help with AVERAGE function, at least i think that's the function i need for this. I will try to explain example sheet as best as i can.
    There is a product with final output measured in meters, it's a 3 shift production with speed changing depending on guy running the shift. What i need is average speed for final product?

    Any help is greatly appreciated.

    Example.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: AVERAGE function problem (probably)

    Put this function in G3 and paste it across

    =SUMPRODUCT(($A$2:$A$16=G$2)*($D$2:$D$16))/COUNTIF($A$2:$A$16,G$2)
    Elegant Simplicity............. Not Always

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: AVERAGE function problem (probably)

    =AVERAGEIF($A$2:$A$16,G2,$D$2:$D$16)

    will provide the averages in your ? cells
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: AVERAGE function problem (probably)

    with an pivot table.

    see the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    05-25-2012
    Location
    Drnis, Croatia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: AVERAGE function problem (probably)

    I guess i didn't explain it properly, i need average speed.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: AVERAGE function problem (probably)

    Also average of speed.

    See the attached file.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: AVERAGE function problem (probably)

    1. Select the cells with formulas
    2. Press CTRL-H
    3. Replace all $D's with $C's

  8. #8
    Registered User
    Join Date
    05-25-2012
    Location
    Drnis, Croatia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: AVERAGE function problem (probably)

    Problem is not all shifts did same amount of meters which means average speed for final product can't be determined according to shifts only, it needs to be connected to meters done (different shifts had different time running the machine)
    I know how to calculate it but i don't know how to persuade excel to do it for me

    Average speed for product a is ~91,75

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: AVERAGE function problem (probably)

    how do you arrive at 91.75
    whats the calculation you use ?

  10. #10
    Registered User
    Join Date
    05-25-2012
    Location
    Drnis, Croatia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: AVERAGE function problem (probably)

    Took me 5min to find a way to upload attachment in reply

    Example2.xlsx

  11. #11
    Registered User
    Join Date
    05-25-2012
    Location
    Drnis, Croatia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: AVERAGE function problem (probably)

    I found a workaround.

    Thanks for your help, much appreciated.

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: AVERAGE function problem (probably)

    With sumproduct => see the attached file.
    Attached Files Attached Files

  13. #13
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: AVERAGE function problem (probably)

    Alternative
    Example2.xlsx

  14. #14
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: AVERAGE function problem (probably)

    You can avoid the need for a helper column by using this version

    =SUMIF($A2:$A16,K2,$D2:$D16)/SUMPRODUCT(($A2:$A16=K2)+0,$D2:$D16/$C2:$C16)
    Audere est facere

+ 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