+ Reply to Thread
Results 1 to 4 of 4

Averageif data is in first part of a month

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    Boston, USA
    MS-Off Ver
    Excel 2010
    Posts
    38

    Averageif data is in first part of a month

    Hi guys, I have a data set spanning 2 years. I would like to average all of the values that occur in the first 1/3 (Day1-10) a second average on the second 3rd (Day 11-20) and a final average for the third 3rd (Day 21-28or30or31). Can anyone help me write the equation for such an idea?

    The average ignores the month and year and just averages values in the range of days.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Averageif data is in first part of a month

    Hi ScottLor,

    Can you share a small sample of data with your expected results..? thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    03-19-2013
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Averageif data is in first part of a month

    I am having trouble loading a sample spreadsheet.
    But lets say that the date was in cells A3:A9 and values to be averaged were in cells B3:B9.
    Enter this formula in column C
    =day(A2)
    Copy that formula all the way to the end of the data. (Cell C9 in my example)

    Then enter three average formulas under data in column B. (Cells B11, B12, B13 in my example)
    First Third Avg =AVERAGEIF(C3:C9,"<11",B3:B9)
    Second Third Average =AVERAGEIFS(B3:B9,C3:C9,">10",C3:C9,"<21")
    Third Third Average =AVERAGEIF(C3:C9,">20",B3:B9)

    Note the "Second Third Average" uses the averageifs function.

  4. #4
    Registered User
    Join Date
    03-05-2013
    Location
    Boston, USA
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Averageif data is in first part of a month

    Thanks NikkiSB. I was missing the quotation marks.

    Cheers.

+ 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