+ Reply to Thread
Results 1 to 2 of 2

Weekly/Monthly Averages

Hybrid View

  1. #1
    Registered User
    Join Date
    10-13-2006
    Posts
    5

    Weekly/Monthly Averages

    I have a worksheet which is populated with weekly data for a range of items. Each week is a seperate row and each item is a seperate column. Each row has a date in column A. The data spans several years.

    I need to calculate a monthly average for each item. For example, for a single item I need to average all the "Jan-04" rows, etc.

    I have tried using "If", "vlookup", "Sumif", etc. nothing seems to give me what I am looking for.

    I think I'm close with SumIf (using it with a CountIf as a divisor) but I can't seem to get it right.

    Any advice?

  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    Adjust as appropriate but perhaps

    =SUMPRODUCT((YEAR(A3:A13)=2006)*(MONTH(A3:A13)=1)*B3:K13)/SUMPRODUCT((YEAR(A3:A13)=2006)*(MONTH(A3:A13)=1)*ISNUMBER(B3:K13))

    if the dates are in column A and the numbers go to column k

    regards

    Dav

+ 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