+ Reply to Thread
Results 1 to 7 of 7

how to find the mean, depending on dates

  1. #1
    Registered User
    Join Date
    02-12-2009
    Location
    oslo, Norway
    MS-Off Ver
    Excel 2010
    Posts
    45

    how to find the mean, depending on dates

    hello

    Please see the document included.
    I want to make a mean of every day (temperarures).
    There are temperature registrations every haf hour.


    And instead of doing this manually (40 000 rows!!), is there any way to
    do this automatically?
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: how to find the mean, depending on dates

    To get an average in the first row of each day you can use this "array formula" in C3 copied down

    =IF(DAY(A2)<>DAY(A3),AVERAGE(IF(INT(A3:A200)=INT(A3),B3:B200)),"")

    confirmed with CTRL+SHIFT+ENTER

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to find the mean, depending on dates

    If you data was actually consistent about being sampled every half hour, this would be easier (for your computer).

    Someplace (say starting V3) make a list of dates from 2006-0903 to 2009-0213 (893 rows). Then in D3, this array formula:

    =AVERAGE(IF(INT($A$3:$A$40684) = C3, $B$3:$B$40684) )

    Array formulas MUST be confirmed with Ctrl+Shift+Enter, not Enter. You'll know you did it correctly if curly braces appear around the formula in the Formula Bar; you cannot type in the braces directly.

    Then copy down.
    Last edited by shg; 03-03-2009 at 08:02 PM.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    02-12-2009
    Location
    oslo, Norway
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: how to find the mean, depending on dates

    great!
    Would you please insert it into the excel sheet and repost it?
    I do not have an english version, and do not know the translation for the formula..

    However, exel automatically translates :p

    thanks!
    -andreas

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to find the mean, depending on dates

    Why don't you try it yourself?

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: how to find the mean, depending on dates

    just showing 1000 rows.....
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-12-2009
    Location
    oslo, Norway
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: how to find the mean, depending on dates

    Thanks guys, I got the rest of it to work!
    Last edited by abrunstad; 03-03-2009 at 08:14 PM.

+ 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