+ Reply to Thread
Results 1 to 7 of 7

SUMPRODUCTIF Equivalent

  1. #1
    Registered User
    Join Date
    08-21-2003
    Posts
    45

    SUMPRODUCTIF Equivalent

    If I have 31 rows, one for each day of the month, how would I SUMPRODUCT all days so far this month?

    I used this formula to simply SUM month-to-date values:
    =SUMIF($C$5:$C$39,"<=" & TODAY()-1,D5:D39)

    What would be the correlating formula for SUMPRODUCT if columns D and E are the columns to be multiplied?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,417

    Re: SUMPRODUCTIF Equivalent

    Can I suggest you post a sample workbook with anticipated results.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: SUMPRODUCTIF Equivalent

    Hi dougmcc1

    Would this be something to what you require!
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  4. #4
    Registered User
    Join Date
    08-21-2003
    Posts
    45

    Re: SUMPRODUCTIF Equivalent

    1/1/2013 $12 2.10
    1/2/2013 $15 1.00
    1/3/2013 $16 2.00
    1/4/2013 $18 1.20
    1/5/2013 $14 2.50
    1/6/2013 $19 2.90
    1/7/2013 $20 2.10
    1/8/2013 $23 3.20
    1/9/2013 $22 3.10
    1/10/2013 $24 2.20
    1/11/2013 $25 2.20
    1/12/2013 $25 2.20
    1/13/2013 $25 2.20
    1/14/2013 $25 2.20
    1/15/2013 $25 2.20
    1/16/2013 $25 2.20
    1/17/2013 $25 2.20
    1/18/2013 $25 2.20
    1/19/2013 $25 2.20
    1/20/2013 $25 2.20
    1/21/2013 $25 2.20
    1/22/2013 $25 2.20
    1/23/2013 $25 2.20
    1/24/2013 $25 2.20
    1/25/2013 $25 2.20
    1/26/2013 $25 2.20
    1/27/2013 $25 2.20
    1/28/2013 $25 2.20
    1/29/2013 $25 2.20
    1/30/2013 $25 2.20
    1/31/2013 $25 2.20

    So the value of the SUMIF formula is 137 (=SUMIF($A$1:$A$31,"<=" & TODAY()-1,B1:B31))

    The value of the next formula should be 2.19, but I need that value to update automatically as we move through the month. The static formula would be =SUMPRODUCT(B1:B8,C1:C8)/SUM(B1:B8) as of today, but what formula would update the value tomorrow, and the next day, and the day after that etc automatically as the SUMIF formula above does?

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: SUMPRODUCTIF Equivalent

    Please post a sample sheet, not data in a post - Thanks

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: SUMPRODUCTIF Equivalent

    with an pivot table.

    see the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  7. #7
    Registered User
    Join Date
    08-21-2003
    Posts
    45

    Re: SUMPRODUCTIF Equivalent

    From Kevin UK's formula I figured it out without having to use a pivot table:
    =(SUMPRODUCT(--($A$1:$A$31<=TODAY()-1),B1:B31,C1:C31))/B32

    Thanks everyone

+ 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