+ Reply to Thread
Results 1 to 9 of 9

Return an average of multiple values from specific week

  1. #1
    Registered User
    Join Date
    03-01-2017
    Location
    Finland
    MS-Off Ver
    2013
    Posts
    10

    Return an average of multiple values from specific week

    Hi,

    I have this situation, that I have process lead time results from pieces going trough process.

    A B
    Value Week
    5 44
    10 45
    6 48
    5 49
    9 46
    1 48
    3 50
    9 49
    2 49
    6 49
    4 50

    I want to return an average from column A values from specific week. For example for week 49, it should return 5,5. ((6+2+9+5)/4)

    From what I understand, The VLOOKUP function cant handle multiple values. I think I should combine INDEX, MATCH and AVERAGE functions but how?


    I'd be really thankful if someone has a solution for this.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Return an average of multiple values from specific week

    I would think some combination of sumif and countif would work for this like... =SUMIF(B:B,49,A:A)/COUNTIF(B:B,49)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: Return an average of multiple values from specific week

    Use AVERAGEIF function:

    =AVERAGEIF(B2:B20,49,A2:A20)

  4. #4
    Registered User
    Join Date
    03-01-2017
    Location
    Finland
    MS-Off Ver
    2013
    Posts
    10

    Re: Return an average of multiple values from specific week

    Thank you Sambo kid and Phuocam! Both of your suggestions worked perfectly in my case.

  5. #5
    Registered User
    Join Date
    03-01-2017
    Location
    Finland
    MS-Off Ver
    2013
    Posts
    10

    Re: Return an average of multiple values from specific week

    Bonus question: Is it possible to give range for criteria? For example weeks 46-48.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Return an average of multiple values from specific week

    Try this...

    D1 = 46
    E1 = 48

    =AVERAGEIFS(A1:A11,B1:B11,">="&D1,B1:B11,"<="&E1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Registered User
    Join Date
    03-01-2017
    Location
    Finland
    MS-Off Ver
    2013
    Posts
    10

    Re: Return an average of multiple values from specific week

    AVERAGEIFS -function works! Thanks Tony!

  8. #8
    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,210

    Re: Return an average of multiple values from specific week

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Return an average of multiple values from specific week

    You're welcome. 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. [SOLVED] Can I use Vlookup to return multiple values and then get average?
    By boltsg4 in forum Excel General
    Replies: 4
    Last Post: 07-20-2016, 03:01 PM
  2. Replies: 2
    Last Post: 06-10-2015, 12:12 AM
  3. Replies: 2
    Last Post: 06-09-2015, 11:20 PM
  4. [SOLVED] How do I return specific values from table with multiple entries
    By BigSpeekaz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2014, 03:31 PM
  5. average of half of the values based on the week
    By mumsys in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-19-2013, 05:32 AM
  6. Replies: 5
    Last Post: 08-04-2013, 09:49 AM
  7. [SOLVED] Lookup for Multiple Values, and Return an Average
    By MuhammadSami in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2012, 11:46 PM

Tags for this Thread

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