+ Reply to Thread
Results 1 to 4 of 4

Using sumproduct and an autofiltr

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Using sumproduct and an autofiltr

    Hi there,
    We use a flat file of data results which requires a sumproduct to get the correct daily result for the activities performed.

    Am looking for a way for this sumproduct function to work after an auto filter is applied (eg change the cells referenced in the sumproduct formula to reflect the change in the auto filter).

    I have attached a sample file.

    The top is the result I am looking for when the data is just the single day.

    the next section is how the data looks - with the auto filter.

    Is there any way to make the sumproduct interact with the results of the auto filter?

    Any assistance would be greatly appreciated.

    I am sure I have seen it done before I just don't seem to be able to get it to work.
    Attached Files Attached Files

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Using sumproduct and an autofiltr

    Sorry to burst your bubble, BUT SUMPRODUCT() does not follow Filtering, Depending on how much actual time you are willing to put into the spreadsheet, you could run a filter, copy the results as values to another column, then run a sumproduct function on that...but sumproduct itself won't ignore hidden cells..
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Using sumproduct and an autofiltr

    hi craig007, welcome to the forum. try:
    =SUMPRODUCT(L9:L56,N9:N56,SUBTOTAL(3,OFFSET(L9,ROW(L9:L56)-ROW(L9),)))/SUBTOTAL(9,L9:L56)

    if it helps, i did an explanation of something similar here:
    http://www.excelforum.com/excel-form...19#post3131419

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Using sumproduct and an autofiltr

    Hi craig007

    You might try the SUBTOTAL Function

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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