+ Reply to Thread
Results 1 to 3 of 3

Count # of times a date range occurs in the last two years

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    Fargo, ND
    MS-Off Ver
    Excel 2010
    Posts
    9

    Count # of times a date range occurs in the last two years

    Hello,

    I am running an analysis of the number of employees we have hired in the last two years. I have a column with hire dates and I want to get a count of how many have entered our company within the last two years. We have thousands of employees and I do not want to count by hand!

    Please Help!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Count # of times a date range occurs in the last two years

    =countifs(a1:a30,">2/16/2012",a1:a30, "<2/20/2012")

    or if start/end dates are in B2 and C2 for example

    =COUNTIFS(A1:A30,">"&B2,A1:A30, "<="&C2)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-17-2012
    Location
    Fargo, ND
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Count # of times a date range occurs in the last two years

    Thank you for your help ChemistB! I will give you a star and marked as solved!

+ 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