+ Reply to Thread
Results 1 to 8 of 8

Sumif or sumproduct formula for a rolling calendar

  1. #1
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Sumif or sumproduct formula for a rolling calendar

    Hi,

    I have sheet 1 where it's a rolling 3 year calendar. Sheet 2 has my data. My goal is to be able to have a formula recreate the numbers I manually summed. I want it to look at the dates, and sum only data is 3 years, or under from the date listed. Once it goes past 3 years, it should no longer be included. My real data set has a lot more data, and goes out more years. This is just a quick example

    Thank you
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Sumif or sumproduct formula for a rolling calendar

    Please Login or Register  to view this content.
    in A5

    However your dates are different years so I've attached an example with same years

    Sorry I've just seen that the years are supposed to be 3 years different.

    Any reason why you can't have the date from 3 years prior in a helper column or row?
    Attached Files Attached Files
    Last edited by PFDave; 10-21-2016 at 10:40 AM.

  3. #3
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re: Sumif or sumproduct formula for a rolling calendar

    The point is that it needs to be different dates. It s a 3 year rolling exposure. So, we are exposed to this cash for 3 years, once the year mark hits, we are no longer exposed.

  4. #4
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re: Sumif or sumproduct formula for a rolling calendar

    So, if we received $1M on May 1st 2014, on June 1st 2017 we that is no longer considered a risk.

  5. #5
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Sumif or sumproduct formula for a rolling calendar

    Try
    Please Login or Register  to view this content.
    in A5 and drag across

  6. #6
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Sumif or sumproduct formula for a rolling calendar

    Revised version attached
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,197

    Re: Sumif or sumproduct formula for a rolling calendar

    Try

    in B5 and copy across

    =SUMPRODUCT((Sheet2!$B$3:$B$26>EDATE(B4,-36))*(Sheet2!$C$3:$C$26))

  8. #8
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re: Sumif or sumproduct formula for a rolling calendar

    All works. Thank you

+ 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] Rolling Calendar forumula to be used with another formula for acquiring numbers for months
    By RickMadsen in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-12-2014, 08:52 AM
  2. Rolling Calendar array will not work for a completely horizontal calendar
    By Michaelwk10 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-11-2014, 05:11 PM
  3. Sumif formula for a rolling 45 day period
    By meilieng in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-05-2012, 08:39 PM
  4. Rolling Calendar
    By MrBen via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  5. [SOLVED] Rolling Calendar
    By MrBen via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] Rolling Calendar
    By MrBen via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  7. Rolling Calendar
    By MrBen via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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