+ Reply to Thread
Results 1 to 5 of 5

Filtering with SUMPRODUCT formula

  1. #1
    Registered User
    Join Date
    06-10-2014
    Location
    Kansas City, MO
    MS-Off Ver
    Excel 97
    Posts
    26

    Filtering with SUMPRODUCT formula

    I have the below formula for calculating the root mean square error of the difference of two columns of data:

    =SQRT(SUMPRODUCT((C2:C180-B2:B180)^2)/COUNT(B2:B180))

    I would like to calculate this for filtered rows as well. I know SUBTOTAL needs to be used, and think the solution involves OFFSET, but haven't been able to come up with a formula that works. Any help would be much appreciated.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Filtering with SUMPRODUCT formula

    Try...

    =SQRT(SUMPRODUCT(SUBTOTAL(2,OFFSET(B2:B180,ROW(B2:B180)-ROW(B2),0,1)),(C2:C180-B2:B180)^2)/SUBTOTAL(2,B2:B180))

    Hope this helps!

  3. #3
    Registered User
    Join Date
    06-10-2014
    Location
    Kansas City, MO
    MS-Off Ver
    Excel 97
    Posts
    26

    Re: Filtering with SUMPRODUCT formula

    Worked like a charm. Thank you Domenic!

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Filtering with SUMPRODUCT formula

    Quote Originally Posted by Russet View Post
    Worked like a charm. Thank you Domenic!
    You're very welcome!

    Cheers!

  5. #5
    Registered User
    Join Date
    06-10-2014
    Location
    Kansas City, MO
    MS-Off Ver
    Excel 97
    Posts
    26

    Re: Filtering with SUMPRODUCT formula

    post deleted
    Last edited by Russet; 06-12-2014 at 10:00 AM.

+ 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] Need help filtering data by filtering based on the last digit of a column/true statement
    By Stephen R in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2014, 07:43 AM
  2. [SOLVED] Easy filtering method via vba/formula/advanced filtering?
    By jedemeyer1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-10-2014, 12:35 AM
  3. [SOLVED] sumproduct do after filtering
    By pedjvak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2013, 10:18 AM
  4. SUMPRODUCT problem combined with filtering
    By Perch in forum Excel General
    Replies: 5
    Last Post: 11-27-2012, 12:04 PM
  5. Replies: 0
    Last Post: 12-13-2011, 06:04 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