+ Reply to Thread
Results 1 to 6 of 6

Average if day is Monday and within last 6 months

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Average if day is Monday and within last 6 months

    So I have spent about 4 hours trying different combinations to get the result I am after.

    I have a spreadsheet that automatically fills data from a separate CSV generated daily (data is added on to end on a day by day basis)

    Column A is the Date, Column B is the values I want to average

    Tried a variety of formulas but this is where my head was when I started

    =AVERAGEIFS(B:B,A:A,(TODAY()-183),WEEKDAY(A:A),7)

    I assume SUMPRODUCT would be the method to use but I haven't wrapped my head around that yet

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Average if day is Monday and within last 6 months

    Hi and welcome to the forum

    Not sure if you will be able to do this or not, but I would add a helper column (use C?) and copy the =weekday(a1,2) down as far as you need it. then base your criteria for the weekday (Mon=1) on that?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Average if day is Monday and within last 6 months

    Or

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    08-23-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Average if day is Monday and within last 6 months

    @Sixthsense - This doesn't appear to work for me, producing DIV error.

    Attached the sheet im working on

    AvgPerDay.xlsx

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Average if day is Monday and within last 6 months

    The formula should be

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    1st row contains Column Headers which is TEXT characters and in A987 cell there is a text value called Grand Total

  6. #6
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Average if day is Monday and within last 6 months

    Hi stiggz

    Would it not be easier to have a helper column for the weekday of the dates in column A. Then you could use the AVERAGEIFS function. I have used column C>
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

+ 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