+ Reply to Thread
Results 1 to 3 of 3

Count if between two dates and matching criteria

  1. #1
    Registered User
    Join Date
    10-12-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Count if between two dates and matching criteria

    Hi, I'm trying to set up a formula to count the number of entries between two dates in one column if they match a criteria in another.

    i.e. if my data is as follows:
    A_____:B
    Blue___:1/01/2010
    Green__:3/03/2010
    Blue___:2/01/2010
    Blue___:31/09/2010

    I want to count Blue entries between 01/01/2010 and 30/01/2010.

    So in this example the result I want is 2.

    What formula can I use to do this, I've a feeling SUMPRODUCT is involved but I've had no success getting it to work... Any help would be much appreciated.
    Last edited by RichST; 10-12-2010 at 07:59 AM. Reason: Solved

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

    Re: Count if between two dates and matching criteria

    If as implied by profile you're using XL2007 you should use COUNTIFS in pref. to SUMPRODUCT given significant efficiency gains

    Please Login or Register  to view this content.
    where C1 & D1 hold start/end dates respectively

  3. #3
    Registered User
    Join Date
    10-12-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Count if between two dates and matching criteria

    I am using Excel 2007 and that works a treat. I'd tried something similar previously but not got the logic right, thanks for your hlep.

+ 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