+ Reply to Thread
Results 1 to 4 of 4

How to recognize date change to calculate averages

  1. #1
    Registered User
    Join Date
    07-24-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    2

    How to recognize date change to calculate averages

    I have a set of daily data ranging from 1990-2010. Each day, a number of data points are recorded. The number of data points collected, however, are not consistent. For example, sometimes nine points are collected/ day; sometimes three points/day, sometimes one point/day, etc. I need to calculate a daily average for each day. Is there a way to program Excel to recognize the date change so that it will create an average for each day? Thanks in advance. An example of the data layout is below (in columns A, B and C):

    Date Time Data
    1-Jan-90 2:34 0.196
    1-Jan-90 5:34 0.205
    1-Jan-90 7:34 0.208
    1-Jan-90 8:34 0.208
    1-Jan-90 11:34 0.208
    1-Jan-90 14:34 0.211
    1-Jan-90 17:33 0.227
    1-Jan-90 20:34 0.227
    1-Jan-90 23:34 0.23
    2-Jan-90 2:34 0.23
    2-Jan-90 5:34 0.23
    2-Jan-90 7:34 0.227
    2-Jan-90 8:34 0.227
    2-Jan-90 11:34 0.23
    2-Jan-90 14:34 0.23
    2-Jan-90 17:34 0.227
    2-Jan-90 20:34 0.224
    2-Jan-90 23:34 0.22
    3-Jan-90 2:34 0.22
    3-Jan-90 5:34 0.217
    3-Jan-90 7:34 0.217
    3-Jan-90 8:33 0.217
    3-Jan-90 11:34 0.214
    3-Jan-90 14:34 0.214
    3-Jan-90 17:34 0.214
    3-Jan-90 20:34 0.211
    3-Jan-90 23:34 0.211

  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: How to recognize date change to calculate averages

    Create a dynamic named range for the database and base a Pivot Table on the named range. Set Date as a row field in the Pivot Table and group the dates. Set the data field to Average (it may default to Sum).

    When you add new data, the dynamic named range will automatically expand to include the new entries.
    To update the Pivot Table with the new data, right-click on the Pivot Table and choose Refresh.

    Help on Dynamic Named Ranges
    Using Pivot Tables and Pivot Charts in Microsoft Excel
    Last edited by Palmetto; 07-24-2010 at 04:20 PM. Reason: add link
    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
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: How to recognize date change to calculate averages

    Try to use Pivot Tables. Must help
    Related tutorial
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  4. #4
    Registered User
    Join Date
    07-24-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How to recognize date change to calculate averages

    Simple enough. Thanks. It worked.

+ 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