+ Reply to Thread
Results 1 to 10 of 10

How to calculate the average of minimum values

  1. #1
    Registered User
    Join Date
    11-01-2010
    Location
    CapeTown
    MS-Off Ver
    Excel 2010
    Posts
    42

    How to calculate the average of minimum values

    I have an Excel 2010 worksheet that contains dates in one column and hourly temperatures in another column. The data is for about ten years - so the worksheet contains about 75 000 rows.
    How can I calculate the average of the minimum temperatures for a specific day (say for 20 March) ?
    Or an average maximum temperatures as a matter of fact.
    I use day of the year for the dates.

    Regards and thank you.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: How to calculate the average of minimum values

    I like this issue
    Can you upload example workbook so we can see how it's organised.

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

    Re: How to calculate the average of minimum values

    Quote Originally Posted by gideone View Post
    I use day of the year for the dates.
    Does that mean you just show 1 for 1st Jan, 2 for 2nd Jan etc.?

    If so then won't 20th March be numbered differently for some years - in most years it will be day 79 but in a leap year it will be day 80?
    Audere est facere

  4. #4
    Registered User
    Join Date
    11-01-2010
    Location
    CapeTown
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: How to calculate the average of minimum values

    Hi zbor

    Wow that was quick. Thank you - I have attached the workbook. Two sheets one is the raw data and the second is the result.

    I shortened the data sheet for size requirements when uploading.

    Regards
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-01-2010
    Location
    CapeTown
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: How to calculate the average of minimum values

    Daddylonglegs

    Good point. How about using date formatting (eg. 20-Mar or 20-03) to evaluate dates?
    Havn't tried it but will do so.

    Regards

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: How to calculate the average of minimum values

    Here. use a Pivot table:
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-01-2010
    Location
    CapeTown
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: How to calculate the average of minimum values

    Zbor

    Thanks for your reply. Its however not what I'm looking for.

    Your Pivot table gets a minimum value for the date. I need an average of all the minimum temperatures over the years for that date.

    For example if you take 1 Jan - the first minimum value on 1 Jan 2003 is 11 and the next minimum value on 1 Jan 2004 is 8.7. The average minimum value would be (11 + 8.7 = 19.7 / 2 = 9.85 ).

    Also, why can't I set my format to 1-Jan (or 1.sij in Croatian?) with format >custom > d-mm?



    Thanks for your help.

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: How to calculate the average of minimum values

    Here are two more column...

    Since they are array function keep them on smallest range 'cause it will be slow...
    Attached Files Attached Files

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to calculate the average of minimum values

    this works it takes a bit of time to calculate at first then once the massive index formulas have done once it calculates quite quickly
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  10. #10
    Registered User
    Join Date
    11-01-2010
    Location
    CapeTown
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: How to calculate the average of minimum values

    Thanx guys

    Zbor - I cannot figure out how to set my date column to dd.mm and use that in the pivot table.

    Hope you can help - I'm using Excel 2010.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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