Results 1 to 4 of 4

Using Subtotal to calculate AVERGEIF, MAXIFS and MINIFS on filtered dataset

Threaded View

  1. #1
    Registered User
    Join Date
    01-19-2022
    Location
    Ontario
    MS-Off Ver
    Office 365
    Posts
    2

    Using Subtotal to calculate AVERGEIF, MAXIFS and MINIFS on filtered dataset

    Hello 

    I am working with a huge dataset of almost .5 million records and need to update the AVERAGE, MIN and MAX values for the MATCH SCORE field for each user as the data set is filtered.

    The dataset contains multiple records for each user pair
    AUsers are in COL A
    BUsers are in COLB
    matchScore range is in COL C
    COL E holds the list of unique users against which the calculations are performed using AVERGEIF, MAXIFS and MINIFS

    Average for each user:
    Formula: copy to clipboard
    =IF(ISERROR(AVERAGEIF(AUsers,E2,matchScore)),0,AVERAGEIF(AUsers,E2,matchScore))

    --- the ISERROR is used to avoid the #DIV/0! error
    MAX for each user:
    Formula: copy to clipboard
    =MAXIFS(matchScore,AUsers,E2)

    MIN for each user:
    Formula: copy to clipboard
    =MINIFS(matchScore,AUsers,E2)



    I need help updating the formulas above with the SUBTOTAL function so that the formula results update as the user list is filtered.

    I tried the following formula in H2 to find the AVERAGE but I am getting the average of all Scores and not for just the user in COL E

    Formula: copy to clipboard
    =AVERAGE(IF(SUBTOTAL(9,OFFSET(C2,ROW(C2:C21)-ROW(C2),0,1))>0,C2:C21))


    I appreciate any help you can provide!

    Thanks so much,
    Sandra
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Calculate Subtotal with two conditions on filtered data only
    By jelx1107 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2020, 01:51 AM
  2. Problem with MINIFS and MAXIFS
    By mimich in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-21-2019, 01:29 PM
  3. Replies: 3
    Last Post: 07-24-2019, 11:59 PM
  4. [SOLVED] MAXIFS and MINIFS not available
    By TFiske in forum Excel General
    Replies: 7
    Last Post: 05-08-2019, 11:27 PM
  5. [SOLVED] Calculate SUBTOTAL of a SUMPRODUCT within a filtered range
    By Lucille Boshoff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-15-2016, 08:45 AM
  6. [SOLVED] How can I calculate the subtotal for filtered cells that meet certain criteria?
    By jasond1992 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-28-2015, 09:23 PM
  7. Minifs, maxifs, averageifs, medianifs, coeffvarifs
    By qwertyjjj in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-30-2014, 07:48 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