+ Reply to Thread
Results 1 to 8 of 8

SUMPRODUCT formula help

  1. #1
    Registered User
    Join Date
    08-23-2011
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    4

    SUMPRODUCT formula help

    Hi everyone,

    I am trying to use the SUMPRODUCT formula to calculate some fields in my worksheet, but whenever I filter the information, the formula does not adjust to reflect the visible rows/columns. When I use the SUBTOTAL formula, the formula does adjust when filtering and only calculates visible rows. I have tried to manipulate the SUBTOTAL formula to result in the same mathematical answers, but I am having no luck. Is there a way to have the SUMPRODUCT formula calculate only visible entries? Or another formula I can use/manipulate to yield the same result?

    I would really appreciate any help!!

    Thanks

    Matt

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    1,252

    Re: SUMPRODUCT formula help

    Welcome to the forum, Matt.

    It's perfectly possible, but you have to use a combination of functions to achieve this result. If you attach an example and explain the expected result, we can have a go?
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Registered User
    Join Date
    08-23-2011
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: SUMPRODUCT formula help

    Hi Colin,

    Thanks for the help!

    I have attached the document to this message. So what I am trying to do is create a formula that multiplies entries in column B by column D and then Subtotal the results. Cell D24 does this with the SUMPRODUCT formula, but when I try to filter results in column C (show only the 'a' or 'b' entries), the result in D24 does not adjust to reflect only the visible entries. Please let me know how I can change that!

    Thanks,

    Matt
    Attached Files Attached Files

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,165

    Re: SUMPRODUCT formula help

    Hi mzag and welcome to the forum,

    Maybe a pivot table is more useful and easier to create?

    see attached.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    1,252

    Re: SUMPRODUCT formula help

    Hi Matt,

    Put this formula in D24 and copy across to E24

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-23-2011
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: SUMPRODUCT formula help

    Thanks for the response!

    The pivot table does not seem to multiply the hours by the deal and then sum each. It is just subtotaling the deal.

  7. #7
    Registered User
    Join Date
    08-23-2011
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Smile Re: SUMPRODUCT formula help

    Colin it worked!!!

    Thanks so much for this. Truly amazing. Now I just need to memorize that!

    Thanks,

    Matt

  8. #8
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    1,252

    Re: SUMPRODUCT formula help

    Looking at it again, it can be simplified:
    Please Login or Register  to view this content.

+ 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