+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Average calculation with two criterias

  1. #1
    Registered User
    Join Date
    01-22-2011
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    5

    Unhappy Average calculation with two criterias

    I am trying to make a calculation that's checks for a given month then for a given day and then adds it up a average?. been messing with this but cant solve it myself.. Ps. don't want a pivot table for this. If i use numbers like 1.2.3.4 instead of dates i have got it work with AVERAGEIFS. But every time a change back to dates it becomes 0
    Help me :-(
    Attached Files Attached Files

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

    Re: Average calculation with two criterias

    For AVERAGEIFS to work you need a start and end date rather than a month, e.g. if you change G3 to a date, 1st of the relevant month, you can use this formula

    =AVERAGEIFS(C2:C17,B2:B17,G4,A2:A17,">="&G3,A2:A17,"<="&EOMONTH(G3,0))
    Audere est facere

  3. #3
    Registered User
    Join Date
    01-22-2011
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    5

    Talking Re: Average calculation with two criterias

    Quote Originally Posted by daddylonglegs View Post
    For AVERAGEIFS to work you need a start and end date rather than a month, e.g. if you change G3 to a date, 1st of the relevant month, you can use this formula

    =AVERAGEIFS(C2:C17,B2:B17,G4,A2:A17,">="&G3,A2:A17,"<="&EOMONTH(G3,0))

    Thanks allot. That just saved my work... Your the man of my day ;-)

+ 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