+ Reply to Thread
Results 1 to 3 of 3

Problem with average formula that finds average over last 343 days excluding previous 7

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

    Problem with average formula that finds average over last 343 days excluding previous 7

    Hello, I have a formula to find the average from the previous 343 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 from day 9 to day 343. If I had data for every day there would be 335 days of measurements for each calculation. For some reason not all cells exclude the previous 7 days, some exclude less. In the spreadsheet I have a column with the averages from the formula I also have a column with averages I put in manually to show the values I want. I highlighted the values that are different from the averages found by the formula. I would appreciate any help, thanks.

    This is the formula
    =IF(E3<>"",AVERAGEIFS($E$3:E3,A$3:A3,">=" & A3-343,A$3:A3,"<"&A3-7),"")
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Problem with average formula that finds average over last 343 days excluding previous

    hi there. first off, you don't have to use CTRL + SHIFT + ENTER to do your formula. this is a non-array formula.

    and secondly, G15 is averaging E3 to E8 because you wanted it to be after or equals to 16-Oct-2015 11:51 AM and before 16-Sep-2016 11:51 AM. cell A8 fits that criteria too. i am guessing you don't want the time taken into account. so maybe:
    =IF(E3<>"",AVERAGEIFS($E$3:E3,A$3:A3,">=" & INT(A3)-343,A$3:A3,"<"&INT(A3)-7),"")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

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

    Re: Problem with average formula that finds average over last 343 days excluding previous

    Quote Originally Posted by benishiryo View Post
    hi there. first off, you don't have to use CTRL + SHIFT + ENTER to do your formula. this is a non-array formula.

    and secondly, G15 is averaging E3 to E8 because you wanted it to be after or equals to 16-Oct-2015 11:51 AM and before 16-Sep-2016 11:51 AM. cell A8 fits that criteria too. i am guessing you don't want the time taken into account. so maybe:
    =IF(E3<>"",AVERAGEIFS($E$3:E3,A$3:A3,">=" & INT(A3)-343,A$3:A3,"<"&INT(A3)-7),"")
    Thanks! That works

+ 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] Average and Standard over the last 344 days excluding the previous 7 days
    By Renegade115 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-01-2018, 09:16 PM
  2. Replies: 7
    Last Post: 05-04-2017, 10:53 AM
  3. Replies: 13
    Last Post: 09-22-2016, 09:18 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. [SOLVED] Looking for a formula that finds the average female age
    By Thomas11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2013, 08:17 PM
  6. [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
  7. The rank of average ranks excluding empty cells but including their average.
    By Terminal45 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2012, 03:44 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