+ Reply to Thread
Results 1 to 9 of 9

SUMPRODUCT first N even rows in a column (with criteria) then AVERAGE

Hybrid View

  1. #1
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,142

    Re: SUMPRODUCT first N even rows in a column (with criteria) then AVERAGE

    the average of the first N (example 3) movies watched is now working

    using an ArrayFormula
    =ArrayFormula(AVERAGE(IF(ROW($D$2:$D$20)=SMALL(IF($D$2:$D$20="Complete",ROW($D$2:$D$20)),{1,2,3}),$C$2:$C$20)))
    if you want to change the amount, for example the first 4 movies, then you need to change the code a follows:
    {1,2,3,4}
    if you want the LAST 3 movies watched, then change SMALL to LARGE:
    =ArrayFormula(AVERAGE(IF(ROW($D$2:$D$20)=LARGE(IF($D$2:$D$20="Complete",ROW($D$2:$D$20)),{1,2,3}),$C$2:$C$20)))
    Attached Images Attached Images
    Last edited by janmorris; 08-28-2021 at 01:45 AM. Reason: earlier method was wrong

+ 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: 04-06-2017, 03:42 PM
  2. [SOLVED] Weighted Average Sumproduct Multiple Criteria with Data in One Column
    By azaremb in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-11-2014, 03:14 PM
  3. Average with criteria from other rows
    By KVW in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2014, 09:07 PM
  4. Replies: 6
    Last Post: 11-25-2013, 08:35 PM
  5. Replies: 6
    Last Post: 08-04-2013, 11:53 AM
  6. Replies: 10
    Last Post: 06-28-2012, 08:59 AM
  7. Sumproduct OR adding criteria to Countif, Counta and Average
    By Wkruger in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-24-2010, 03:32 AM

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