+ Reply to Thread
Results 1 to 6 of 6

Finding an average based on criteria from other cells

  1. #1
    Registered User
    Join Date
    10-15-2015
    Location
    USA
    MS-Off Ver
    MS Office 2013
    Posts
    83

    Question Finding an average based on criteria from other cells

    Okay, so here is my spreadsheet:

    LINK

    Here is what I'm trying to do. I want to know the average total days that were worked by people that meet various criteria.

    1) Like, I wanna know the average total days worked by workers in Dept. A1. Is there a formula that will provide averages for only entries that are in the same row as entries for Dept. A1?

    2) Or what if I want to know the average total days worked by workers in Dept. B3, but only those with a "Y" value in the "Certified?" column? Like, I want to know the average days worked by people who were both Dept. B3 workers and also Certified.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Finding an average based on criteria from other cells

    It would help if you attached a sample Excel workbook, rather than a link to a picture of one.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    There is a function AVERAGEIFS which will calculate the average for several criteria, but I cannot try it out on your picture.

    Pete

  3. #3
    Registered User
    Join Date
    10-15-2015
    Location
    USA
    MS-Off Ver
    MS Office 2013
    Posts
    83

    Re: Finding an average based on criteria from other cells

    I've attached the actual book to this reply, in case that helps.


    Thank you
    Attached Files Attached Files

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Finding an average based on criteria from other cells

    Your first query could be answered by this formula (e.g. in H2):

    =AVERAGEIFS(D2:D20,E2:E20,"A1")

    The second one can be achieved with this formula (e.g. in I2):

    =AVERAGEIFS(D2:D20,E2:E20,"B3",F2:F20,"Y")

    The first parameter in the AVERAGIFS function is the range that you want to work the average out for, and that is then followed by pairs of parameters which set up the criteria that you want to apply, so you have:

    =AVERAGEIFS(average_range, criteria1_range, criteria1, criteria2_range, criteria2 and so on .....)

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    10-15-2015
    Location
    USA
    MS-Off Ver
    MS Office 2013
    Posts
    83

    Re: Finding an average based on criteria from other cells

    Quote Originally Posted by Pete_UK View Post
    The first parameter in the AVERAGIFS function is the range that you want to work the average out for, and that is then followed by pairs of parameters which set up the criteria that you want to apply, so you have:

    =AVERAGEIFS(average_range, criteria1_range, criteria1, criteria2_range, criteria2 and so on .....)

    Hope this helps.

    Pete
    Very helpful, thank you!!

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Finding an average based on criteria from other cells

    You're welcome - thanks for the rep.

    Pete

+ 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] How to average cells based on multiple criteria in Excel
    By BM2006 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-28-2016, 12:35 AM
  2. [SOLVED] Finding average of cells based on criteria
    By asml8d in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-20-2016, 12:54 PM
  3. [SOLVED] looking up & then finding average based on different criteria
    By VBAhelp3456 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2015, 01:14 AM
  4. Average based other cells criteria
    By Snajder in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-17-2013, 03:26 PM
  5. Average Cells Based on Month and Other Criteria
    By kr11 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-08-2013, 11:45 AM
  6. Finding Average with 2 criteria.
    By Fos605 in forum Excel General
    Replies: 3
    Last Post: 03-10-2009, 01:41 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