+ Reply to Thread
Results 1 to 4 of 4

Sumproduct

  1. #1
    Registered User
    Join Date
    07-07-2016
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    68

    Question Sumproduct

    Hi All,
    Still trying to wrap my head around SUMPRODUCT.

    I have written (with a lot of help from the Forum!) SUMPRODUCT formulas where the column Subproject on my data sheet begins with 270 or ends with 3380, but now I am trying to write one where the Subproject is 2703380 and the month is 4 (5,6,7...)

    I have tried:
    SUMPRODUCT((('Budget Entry 16 17'!R2:R600),('Budget Entry 16 17'!G2:G600)="2703880")*('Budget Entry 16 17'!O2:O600)="4")
    But I get a VALUE
    Attached Files Attached Files

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Sumproduct

    In this case, you are getting a #VALUE! error because you are multiplying text. You have your range set to start at row 2, but in the provided file row 2 is a header row, so you are trying to multiply headers together. There are also several syntax problems in the formula, so I'm kind of surprised Excel even took the formula without giving you an error. Finally, this is a .xlsx file which means you have Excel 2007 or higher, so maybe you want SUMIFS instead of SUMPRODUCT?

    Using your provided sample file, and assuming you want the following:
    Sum the Amount Paid (column R) IF the SubProject (column G) = 2703380 AND the Accounting Month (column O) = 4

    Then the formula you want is:
    Please Login or Register  to view this content.

    However, note that in your provided sample file, there are no rows in the 'Budget Entry' sheet in which the SubProject is 2703380 and the Accounting Month is 4, so this formula results in a 0. You can verify it works by changing the 4 to a different account month and confirm it sums properly for that SubProject.

    Lastly, if you want to add multiple accounting months for a single subproject, you would indeed bring Sumproduct back into the mix, like so:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-07-2016
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    68

    Re: Sumproduct

    Awesome thanks! SumIfs worked.
    I ended up using:
    =SUMIFS('Budget Entry 16 17'!$R:$R,'Budget Entry 16 17'!$G:$G,2703380,'Budget Entry 16 17'!$O:$O,4)

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Sumproduct

    You're very welcome

+ 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] Use sumproduct to further parse a sumproduct calculation
    By Araise in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-19-2015, 08:17 PM
  2. Count SUMPRODUCT Members / Average of SUMPRODUCT
    By Shingaru in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2014, 03:59 PM
  3. Replies: 1
    Last Post: 05-19-2012, 02:54 AM
  4. Replies: 5
    Last Post: 04-20-2012, 08:54 AM
  5. Replies: 6
    Last Post: 03-09-2011, 08:01 AM
  6. Subtract Sumproduct from a sumproduct
    By Prcntrygrl in forum Excel General
    Replies: 6
    Last Post: 01-17-2011, 02:34 PM
  7. Using a SumProduct Count to find a SumProduct Total?
    By XL021710 in forum Excel General
    Replies: 3
    Last Post: 02-18-2010, 08:31 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