+ Reply to Thread
Results 1 to 8 of 8

Calculate accumulated values for each day during the last 90 days from newest date

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-10-2012
    Location
    Sweden, Stockholm
    MS-Off Ver
    MS Excel 365
    Posts
    200

    Calculate accumulated values for each day during the last 90 days from newest date

    In a basic file I have a long list of values connected to different dates.
    I would like to see the values for same dates accumulated.
    The list can be more than 365 days of values.
    I want to see the last 90 days of newest day in my presentation!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,800

    Re: Calculate accumulated values for each day during the last 90 days from newest date

    I don't understand your expected results. 90 days back from the latest date in your list includes ALL of the sample dates, not just the ones you have listed.

    This filters to the latest 90 days:

    =FILTER(B3:C19,B3:B19>=MAX(B3:B19)-90)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,800

    Re: Calculate accumulated values for each day during the last 90 days from newest date

    Sorry - just realised that it is in fact this that you need:

    =LET(f,FILTER(B3:B19,B3:B19>=MAX(B3:B19)-90),u,UNIQUE(f),s,SUMIF(B3:B19,u,C3:C19),HSTACK(u,s))

    =LET(f;FILTER(B3:B19;B3:B19>=MAX(B3:B19)-90);u;UNIK(f);s;SUMMA.OM(B3:B19;u;C3:C19);HSTACK(u;s))
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    11-10-2012
    Location
    Sweden, Stockholm
    MS-Off Ver
    MS Excel 365
    Posts
    200

    Re: Calculate accumulated values for each day during the last 90 days from newest date

    You are so right! with your great skill.
    That is spot on.
    Thank you so much!

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Calculate accumulated values for each day during the last 90 days from newest date

    To realize the requirements mentioned in your sheet, add the blue parts to the formula of Ali.
    Formula: copy to clipboard
    =LET(f,FILTER(B3:B19,(B3:B19>=MAX(B3:B19)-90)*(D3:D19="")),u,UNIQUE(f),s,SUMIFS(C3:C19,B3:B19,u,D3:D19,"="&""),SORT(HSTACK(u,s),,-1))
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,800

    Re: Calculate accumulated values for each day during the last 90 days from newest date

    Thanks for the rep.

  7. #7
    Forum Contributor
    Join Date
    11-10-2012
    Location
    Sweden, Stockholm
    MS-Off Ver
    MS Excel 365
    Posts
    200

    Re: Calculate accumulated values for each day during the last 90 days from newest date

    I got confused how I could put these figure in dated order!
    Oldest date as the figure in the bottom, as last figure in the column.
    I could not use filter to ask for lowest or highest figure!
    How can it be adjusted?

    Opps I found it! ALl OK no need of comments
    Attached Files Attached Files
    Last edited by sealpino; 10-31-2023 at 10:09 AM.

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Calculate accumulated values for each day during the last 90 days from newest date

    Please try
    Formula: copy to clipboard
    =LET(f,FILTER(B3:B19,B3:B19>=MAX(B3:B19)-90),u,UNIQUE(f),s,SUMIF(B3:B19,u,C3:C19),SORT(HSTACK(u,s),,-1))

+ 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. Replies: 7
    Last Post: 04-19-2023, 11:53 AM
  2. [SOLVED] Calculate Yes or No if date is greater than 90 days and less than 365 days
    By Tashia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-02-2017, 03:53 PM
  3. Replies: 7
    Last Post: 02-02-2017, 02:41 PM
  4. Replies: 4
    Last Post: 09-22-2015, 10:35 AM
  5. Calculate End Date Using Start Date and No. of Days excluding specific days.
    By SinusxCosinusx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-22-2013, 05:48 AM
  6. [SOLVED] vba code to find Duplicate Values and Newest date(Max) date in the Corresponding Column(ce
    By Pradu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2013, 05:20 AM
  7. Lookup Adjacent Cell Values based on Newest and Oldest Date
    By nevi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-09-2008, 02:27 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