Results 1 to 3 of 3

Gathering amounts based on date for a monthly average

Threaded View

  1. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Gathering amounts based on date for a monthly average

    Given use of XL2007

    E3: =COUNTIFS($A$3:$A$32,">="&$D3,$A$3:$A$32,"<"&EDATE($D3,1))
    copied down
    
    F3: =SUMIFS($B$3:$B$32,$A$3:$A$32,">="&$D3,$A$3:$A$32,"<"&EDATE($D3,1))
    copied down
    Note - neither of the above are backwards compatible with earlier versions - for earlier versions either use SUMPRODUCT or use a helper column to normalise date and revert to COUNTIF, SUMIF based around normalised date field.

    EDIT:
    just to add, I'm assuming you don't want to display all months - if you do you should just use a Pivot Table.
    Last edited by DonkeyOte; 01-02-2010 at 10:40 AM.

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