+ Reply to Thread
Results 1 to 2 of 2

Average and Standard over the last 344 days excluding the previous 7 days

  1. #1
    Registered User
    Join Date
    02-20-2018
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    42

    Average and Standard over the last 344 days excluding the previous 7 days

    Hello, I'm trying to the average and standard deviation from the previous 344 calendar days excluding the 7 most previous days for each cell. So for example on the most recent day (day 1) I want to find the average and standard deviation from day 9 to day 344. If I had data for every day there would be 335 days of measurements for each calculation. I know how to find the average and standard deviation over the last 344 days but I'm not sure how to exclude the previous 7 calendar days from that calculation. I do not have 365 days of data but I want a formula that will make the calculation no matter how many months of data are available. In the data I do not have measurements for consecutive days and most of the days have a few measurements.

    The Formuals I would use for data over the previous 343 days would be:
    AVERAGEIF(A$2:A127,">=" & DATE(YEAR(A127),MONTH(A127),DAY(A127)-343),$B$2:B127)
    STDEV.S(IF($A$2:A127>=INT($A127)-343,$B$2:B127)

    I'm not sure if changes can be made to these formulas to reach my goal but I would greatly appreciate any help!

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: Average and Standard over the last 344 days excluding the previous 7 days

    Try:

    =AVERAGEIFS($B$2:B127,A$2:A127,">=" & A127-343,A$2:A127,"<"&A217-7)

    =STDEV.S(IF(($A$2:A127>=INT($A127)-343)*($A$2:A127<INT($A127)-7)*($B$2:B127<>""),$B$2:B127))

+ 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 Average and Standard deviation over a range of days
    By Renegade115 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-23-2018, 02:11 PM
  2. Replies: 13
    Last Post: 09-22-2016, 09:18 AM
  3. [SOLVED] Count 6 working days (excluding Sunday, Holidays & half days)
    By eve_star1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2015, 08:00 AM
  4. Average formula for last 15 days excluding blanks
    By jimbob23 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-22-2014, 11:50 AM
  5. Replies: 0
    Last Post: 10-31-2014, 10:32 AM
  6. Replies: 4
    Last Post: 05-19-2014, 04:28 PM
  7. [SOLVED] Calculate 'average' between data range of days but excluding weekends(?)
    By iliasark in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-08-2013, 04:39 AM

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