+ Reply to Thread
Results 1 to 3 of 3

Counting individuals in an averageifs formula

  1. #1
    Forum Contributor
    Join Date
    01-16-2019
    Location
    NY
    MS-Off Ver
    Office 365
    Posts
    122

    Counting individuals in an averageifs formula

    How do I count the number of people used in these formulas?
    In the attached worksheet - on the analysis tab -
    In D12 I'd like to have a count of how many individuals comprise the average in formula B12?

    Also, for each cell of B24 to E36 - how many individuals are in each formula?
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Counting individuals in an averageifs formula

    Take your formula from B12 and paste it into D12.
    Remove the first argument (the red bit below).
    =AVERAGEIFS(Data!$G$2:$G$100,Data!$C$2:$C$100,"M",Data!$D$2:$D$100,"Apple")
    Then change AVERAGEIFS to COUNTIFS.
    =COUNTIFS(Data!$C$2:$C$100,"M",Data!$D$2:$D$100,"Apple")

    The same approach would count for the others.

    BSB

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Counting individuals in an averageifs formula

    Hi

    in D12 to be confirmed with control+shift+enter

    =SUM(IF(FREQUENCY(IF(Data!C$1:C$100="M",IF(Data!D$1:D$100="Apple",MATCH(Data!A$1:A$100,Data!A$1:A$100,0))),ROW($1:$100)),1))

    It should do the trick.
    Attached Files Attached Files
    Last edited by canapone; 05-05-2019 at 03:09 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

+ 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: 07-14-2018, 08:10 PM
  2. Create bar chart with total amount and counting individuals
    By diehard87 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-16-2017, 05:34 PM
  3. Formula for ranking individuals
    By JoeHan in forum Excel General
    Replies: 4
    Last Post: 10-25-2016, 12:08 PM
  4. Formula For Individuals Attending Events
    By Hyperdog882 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 04-17-2016, 02:49 PM
  5. Formula for individuals to view their hours.
    By samuelleach in forum Excel General
    Replies: 2
    Last Post: 07-17-2015, 01:30 PM
  6. AverageIfs Statement Counting Zeros
    By Anthem12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2013, 12:24 AM
  7. Replies: 4
    Last Post: 05-31-2006, 03:50 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