+ Reply to Thread
Results 1 to 3 of 3

Formula for weekly average & changing daily formula

  1. #1
    Registered User
    Join Date
    09-23-2009
    Location
    liverpool, england
    MS-Off Ver
    Excel 2003
    Posts
    78

    Formula for weekly average & changing daily formula

    Hello

    I am trying to use a formula for devising averages but having a few problems, so was wondering if anybody could help please.

    I want to make a weekly average. So i want to use data from the past week, is there a way for excel to only extract data from data linked to the current date so only data from that week is used? ie if i post a total on the 5th november it will only use data from that week 1st -5th novemeber?

    Next question is i have a formula

    PHP Code: 
    (SUM($B$4:$B$500))/(COUNTIF($B$4:$B$500,">0")) 
    say on the 1st november this will do the average of all the days before the 1st november, but if i were to make a new entry for the 2nd november, it changes the 1st novembers average, i dont want it to include any entries afterwards, is this possible?

    Any help really would be appreciated.



    Kind regards

    Joe

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Formula for weekly average & changing daily formula

    You might opt for using DAVERAGE, which allows the use of criteria.

    Assuming your data are in the range A4:B500, where column-A values are dates and column-B values are numbers:

    Using cell F4 as a date input cell for the starting date, then . . .

    Set up criteria cells in, say F1:G2

    F1 and G1 contains the text: Date
    F2 contains: =">="&F4
    G2 contains: ="<="&F4+6

    formula cell for average contains: =DAVERAGE($A$4:$B$500,2,$F$1:$G$2)
    Last edited by Palmetto; 11-01-2010 at 08:37 PM.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Formula for weekly average & changing daily formula

    Quote Originally Posted by sandbach View Post
    Hello

    I am trying to use a formula for devising averages but having a few problems, so was wondering if anybody could help please.

    I want to make a weekly average. So i want to use data from the past week, is there a way for excel to only extract data from data linked to the current date so only data from that week is used? ie if i post a total on the 5th november it will only use data from that week 1st -5th novemeber?

    Next question is i have a formula

    PHP Code: 
    (SUM($B$4:$B$500))/(COUNTIF($B$4:$B$500,">0")) 
    say on the 1st november this will do the average of all the days before the 1st november, but if i were to make a new entry for the 2nd november, it changes the 1st novembers average, i dont want it to include any entries afterwards, is this possible?

    Any help really would be appreciated.



    Kind regards

    Joe
    Could you upload a small sample of what you have? doesn't sound too difficult, but much easier knowing your layout, especiall the cells to average compared to the dates
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

+ 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