+ Reply to Thread
Results 1 to 2 of 2

Averaging data from Monday 7am to Sunday 7pm every week

  1. #1
    Registered User
    Join Date
    09-17-2013
    Location
    Evansville, USA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Question Averaging data from Monday 7am to Sunday 7pm every week

    I have Column A (Date/time) which is always shown in 1/1/13 7:00:00 format. The only times are 7:00:00 and 19:00:00 (day and night shifts). Column B has collected data and column C is the average for the data. Currently I have the average (col C) with an array function of =AVERAGE(IF(($A2-$A$2:$A2)<7,$B$2:$B2)). When filled down, every row has an average value from the previous 7 days. I only want to have the average taken on the last Sunday 7pm entry from the previous Monday's first 7 am entry. I also want to highlight these values in Column C. Can anyone help? I'm a little lost!

    Edit: I attached a copy of my worksheet. I highlighted the first 3 average outputs I would like to show (as mentioned, it is always from the first Data entry of Monday 7 am shifts to the last entry on Sundays 7 pm.
    Attached Files Attached Files
    Last edited by dinker454; 09-17-2013 at 02:56 PM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Averaging data from Monday 7am to Sunday 7pm every week

    You get better help on your question if you follow the advice in the link below.

    http://www.excelforum.com/the-water-...-question.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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. Monday and Sunday of the current week
    By mtt23 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-24-2012, 09:30 AM
  2. code with Format function, first day of week as monday not sunday
    By KEVSTEF in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-29-2012, 02:51 PM
  3. VBA - Date required for Monday & Sunday of week previous
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-18-2011, 03:14 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