+ Reply to Thread
Results 1 to 3 of 3

Summing dynamically before given date

  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    4

    Summing dynamically before given date

    Hi all, I am having list which has date, value, #of days and formula in four columns. The values are:
    A B C D
    5/5/2013 4700 70 43860
    5/12/2013 4430
    5/19/2013 4570
    5/26/2013 3460
    x 4290
    6/2/2013 4520
    6/9/2013 5520
    6/16/2013 5570
    6/23/2013 5460
    6/30/2013 5630
    x 26700
    I got help yesterday in coming up with this formula which dynamically adds value based on the number visible in column C but excludes values in rows having x. The formula is =SUMIF(A:A,"<"&A3+C3,B:B)-SUMIF(A:A,"<"&A3,B:B). Now the challenge I am facing is that I need to add the values until the date given in cell (E3). Meaning that if column E3 has 5/19/2013 and we have 28 (no of days) in columns C, rather than adding 4700, 4430, 4570 and 3460. It should just add 4700, 4430 and 4570. And if C has 63 and E3 has 6/16/2013, rather than adding value between 5/5/2013 and 6/30/2013 except x. it will add value between 5/5/2013 and 6/16/2013 except value x.

    Any help will be much appreciated.

    Thanks,
    HQ
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Summing dynamically before given date

    hi,

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-15-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Summing dynamically before given date

    Thanks for the solution. You are genius.

    Have a great day.

    HQ

+ 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