+ Reply to Thread
Results 1 to 2 of 2

Counting months with variables

  1. #1
    Registered User
    Join Date
    04-06-2009
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    34

    Counting months with variables

    Please see the attached spreadsheet:

    I am trying to count the number of months the following way:

    D4 should count the cells from C10 to C40 that contain the amount in E4 but not start counting until the number of free months contained in D3 are passed and under no circumstances count more than 12 down


    D5 should count the cells starting from C10 to C40 (but not start counting until D3 and D4 have passed) that contain E5 and again under no circumstance count more than 12 months down

    Thank you very much!
    Attached Files Attached Files
    Last edited by katja328; 11-12-2009 at 11:43 AM.

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

    Re: Counting months with variables

    Seems to me you want to check out the XL2007 COUNTIFS function in XL Help, eg:

    C4: =IF($E4,COUNTIFS($C$10:$C$40,$E4,$B$10:$B$40,">="&$B4,$B$10:$B$40,"<="&$C4),0)

+ 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