+ Reply to Thread
Results 1 to 4 of 4

Using a SumProduct Count to find a SumProduct Total?

  1. #1
    Registered User
    Join Date
    02-17-2010
    Location
    England
    MS-Off Ver
    Excel 2000
    Posts
    2

    Post Using a SumProduct Count to find a SumProduct Total?

    Have successfully used SUMPRODUCT(N(YEAR($A$2:$A$15)=$E$2)) in the attached xls file to count the number of gas station visits in years 2004, 2005. I now need a total litres bought for these same years. Would appreciate a same cell working solution and explanation if anybody can think of one? Thanks!
    Attached Files Attached Files
    Last edited by shg; 02-17-2010 at 03:15 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Using a SumProduct Count to find a SumProduct Total?

    Add the summation range, eg:

    =SUMPRODUCT(N(YEAR($A$2:$A$15)=$E2),$B$2:$B$15)
    copied to D3

  3. #3
    Registered User
    Join Date
    02-17-2010
    Location
    England
    MS-Off Ver
    Excel 2000
    Posts
    2

    Re: Using a SumProduct Count to find a SumProduct Total?

    Thank you very much! That worked just fine.
    Its the first time I have used SumProduct.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Using a SumProduct Count to find a SumProduct Total?

    Be sure to check out the link in my sig. to Bob Phillips' white paper on the function - widely regarded as one of the best around.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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