+ Reply to Thread
Results 1 to 5 of 5

Sum Product based on Date

  1. #1
    Forum Contributor
    Join Date
    10-13-2011
    Location
    Australia
    MS-Off Ver
    Office 16
    Posts
    329

    Sum Product based on Date

    Hi

    See the attached file.
    My query is based on a range of data contained on a 'Yearly" sheet.
    Using the Monthly sheet in row 12, and using the cell ranges already populated, I would like to add the data in the ranges based on up to and including the date specified in G11 on the monthly sheet.
    Obviously as the date is changed, the totals will change.
    I've tried this formula but get a #VALUE error.

    Please Login or Register  to view this content.
    Can anyone help please.
    Attached Files Attached Files
    Last edited by Christopherdj; 03-05-2012 at 08:54 PM.

  2. #2
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sum Product based on Date

    Try
    =SOMARPRODUTO((Yearly!$E$3:$E$1048576=Monthly!G11)*Yearly!$F$3:$F$1048576)

  3. #3
    Forum Contributor
    Join Date
    10-13-2011
    Location
    Australia
    MS-Off Ver
    Office 16
    Posts
    329

    Re: Sum Product based on Date

    Thanks

    Please Login or Register  to view this content.
    Seems this one works ok - Look no further down post, errors somewhere.
    This one is fine for suitable outcome when changing dates.
    Last edited by Christopherdj; 03-05-2012 at 08:53 PM.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Sum Product based on Date

    The SUMPRODUCT version will treat all empty cells in column E as zero and therefore < G11, so you get rows 3 and 4 included in the count, for example, whatever the date in G11, is that what you need? If not then perhaps try SUMIF using the total column BR, i.e.

    =SUMIF(Yearly!$E:$E,"<="&$G$11,Yearly!$BR:$BR)

    That will ignore rows without an entry in column E
    Last edited by daddylonglegs; 03-05-2012 at 08:14 PM.
    Audere est facere

  5. #5
    Forum Contributor
    Join Date
    10-13-2011
    Location
    Australia
    MS-Off Ver
    Office 16
    Posts
    329

    Re: Sum Product based on Date

    Thanks Daddylonglegs, That doesn't work as I'm adding sections of the totals.
    IN Monthly sheet, I'm only adding portions in A13, B13, C13, D13 and E 13 with the total combined in F13.

    I modifed your formula to this:

    Please Login or Register  to view this content.
    And it doesn't add all cells in the ranges specified.
    Does it have something to do with the empty cells with no dates in Column E of the yearly sheet?
    Last edited by Christopherdj; 03-05-2012 at 08:30 PM.

+ 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