+ Reply to Thread
Results 1 to 5 of 5

Need to Average numbers based off of 2 Criteria

  1. #1
    Forum Contributor
    Join Date
    11-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    100

    Need to Average numbers based off of 2 Criteria

    I need to get the Average Counts (G10:G20) based off of the Team (H10:H20) and their Unit (D10:D20)

    I can average them individually and I can create a formula by manually entering the cells however the cell data will change

    so I need to create an average formula to take the Row average G10 - G20 if cells in the same row have specified criteria in cells H10:H20 and D10:D20

    I am not sure if I am making any sense.

    I am, thinking to use the name manager to create a dynamic range for Team and Unit which I can do.

    What I need to know is how to average based on the two criteria so if H10:H20 has 1AA and D10:D20 has Bravo then then average the numbers in column G. and so forth for 1AA and Alpha 2AA Bravo and 2AA Alpha.

    I tried using this formula and variations =AVERAGEIFS(G10:G19,Team=E23,Unit=F22)) with no joy.

    I need this formula to appear in the respective cells F23:G24


    Attached is my worksheet I am working on
    AVERAGE AND.xlsx


    Skteer thanks just what I needed I will look at pivot tables also
    Last edited by nsmjc; 11-01-2015 at 03:41 PM.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Need to Average numbers based off of 2 Criteria

    Try this....

    In F23
    Please Login or Register  to view this content.
    and then copy across and down.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Need to Average numbers based off of 2 Criteria

    If you are referencing the named ranges in the formula, the formula should be like this...

    Please Login or Register  to view this content.
    and then copy across and down.

    Also correct the formula used for your named ranges.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need to Average numbers based off of 2 Criteria

    Hi,

    F23 copied to F23:G24

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


    However be advised that averaging averages in the way you are doing is not usually recommended and strictly speaking it's not arithmetically accurate since it ignores the weightings that might occur in the underlying data that is producing the G10:G19 averages. You should always work with the original data. Ifv you do it's likely you'll get a different answer.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,252

    Re: Need to Average numbers based off of 2 Criteria

    Hi nsmjc,

    I think you can get what you want using a Pivot Table. See the attached.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. Average numbers from multiple columns based on multiple criteria
    By abambi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-23-2015, 01:52 PM
  2. Average of numbers within a range meeting certain criteria
    By Domenic in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 09-06-2005, 05:05 PM
  3. [SOLVED] Average of numbers within a range meeting certain criteria
    By opal23k in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM
  4. Average of numbers within a range meeting certain criteria
    By Domenic in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 09:05 AM
  5. Average of numbers within a range meeting certain criteria
    By opal23k in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. Average of numbers within a range meeting certain criteria
    By opal23k in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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