+ Reply to Thread
Results 1 to 6 of 6

Average if day is Monday and within last 6 months

Hybrid View

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

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

    Or

    Formula: copy to clipboard
    =SUMPRODUCT((A1:A100>=DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY())))*(WEEKDAY(A1:A100)=2),B1:B100)/SUMPRODUCT((A1:A100>=DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY())))*(WEEKDAY(A1:A100)=2))


    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

  2. #2
    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

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

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

    The formula should be

    Formula: copy to clipboard
    =SUMPRODUCT((A2:A986>=DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY())))*(WEEKDAY(A2:A986)=2),B2:B986)/SUMPRODUCT((A2:A986>=DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY())))*(WEEKDAY(A2:A986)=2))


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

+ 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