+ Reply to Thread
Results 1 to 4 of 4

subtotal of sumproducts?

Hybrid View

  1. #1
    Registered User
    Join Date
    05-14-2012
    Location
    Gosport, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    subtotal of sumproducts?

    I have a list of data that I can filter via a number of variables. I currently have subtotals for each column of numerical data, the subtotal value autosums the filtered data I have selected.
    I also have a sumproduct funtion for each column of numerical data to incorporate a probability of between 0-1 for each cell. The problem I have is when I filter the data, the sumproduct funtion does not change accordingly?
    Is there a way to combine the subtotal and sumproduct funtions so that I get an autosum based on teh filtered selection?

    Here is the detail

    Column A = Region
    Column B = Country
    Column C = Probability (Between 0-1)
    Column D = Month 1
    Column E = Month 2

    Required detail:
    Sumproduct of Column C & Column D (by region and or country filter)
    Sumproduct of Column C & Column E (by region and or country filter)

    Thanks in advance for your help
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: subtotal of sumproducts?

    Hi

    I am sure, that this will help you.

    http://www.excelforum.com/excel-work...ered-data.html
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

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

    Re: subtotal of sumproducts?

    Hi,

    in E2

    =SUMPRODUCT(SUBTOTAL(9,OFFSET(E$3:E$1000,ROW(E$3:E$1000)-MIN(ROW($A3:$A999)),,1)),--(B$3:B$1000="A"),--(C3:C$1000="X"))

    In the sumproduct

    --(B$3:B$1000="A"),--(C3:C$1000="X")

    are the two conditions to match in the filtered data; you can add other conditions.

    Hope it helps

    Regards
    Attached Files Attached Files
    -----------------------------------------------------

    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.

  4. #4
    Registered User
    Join Date
    05-14-2012
    Location
    Gosport, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: subtotal of sumproducts?

    Thanks for your help!

+ 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