View Poll Results: Is this type of forumula used often in Excel?

Voters
0. This poll is closed
  • Yes

    0 0%
  • No

    0 0%
Multiple Choice Poll.
+ Reply to Thread
Results 1 to 8 of 8

Count dates between two dates

  1. #1
    Registered User
    Join Date
    11-17-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Count dates between two dates

    Hello All,

    Here is what I am looking to do. Below is the data and sample output. I am currently doing this by hand for hundreds of records each week. I want to automate the process.

    I need to create a formula that looks at the “Date of Incident” from the Data and checks if fails in between the dates in the Output chart, then check if the Functional Group = CSTP-EPG, if yes then add 1 to the total for that week for CSTP-EPG.
    I need to do this for each Functional Group.

    Data:

    Date of Incident Functional Group
    11-Sep-09 CSTP-LD
    15-Oct-09 CSTP-EPG
    2-Nov-09 CSTP
    2-Nov-09 CSTP-LD
    9-Oct-09 CSTP
    16-Sep-09 CSTP-FX
    14-Sep-09 CSTP
    30-Oct-09 CSTP-DEV
    29-Oct-09 CSTP-EPG




    Output:


    Week the Incident Occurred CSTP-LD CSTP-EPG CSTP-FX
    11/16/2009 - 11/22/2009 1
    11/9/2009 - 11/15/2009 1
    11/2/2009 - 11/8/2009 4 2
    10/26/2009 -11/1/2009 1 1
    10/19/2009 -10/25/2009
    10/12/2009 -10/18/2009 1
    10/5/2009 -10/11/2009 1 1
    9/28/2009 -10/4/2009 1
    9/21/2009 - 9/27/2009
    9/14/2009 - 9/20/2009 1 2
    9/7/2009 - 9/13/2009 1
    8/31/2009 -9/6/2009 1 1
    8/24/2009 - 8/30/2009 1 1

    Thanks for your help!!!!

    Bob

  2. #2
    Registered User
    Join Date
    11-17-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Test if date is between two date then count

    Sorry the for formating changes after the post. Hope you can figure out my Data and Output info.

  3. #3
    Registered User
    Join Date
    10-21-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Test if date is between two date then count

    I'm nowhere near an expert, however I just did something similar to this using the COUNTIF/COUNTA formula, in the Validation menu.

    If this helps in any way, i'm glad, otherwise, think of my post as more of a bump.
    At times, I really wish I was better at Excel. :}

  4. #4
    Registered User
    Join Date
    11-17-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Test if date is between two date then count

    Thanks I tried them as well but I still dont know how to test bewtween the dates and for CSTP.

    I am sure it is easy. I just cant seem to figure it out. lol

  5. #5
    Valued Forum Contributor khamilton's Avatar
    Join Date
    10-08-2009
    Location
    IL
    MS-Off Ver
    Excel 2007
    Posts
    345

    Re: Test if date is between two date then count

    Don't know if this is what you are looking for but I'll give it a shot
    ;Test if date is between two date then count.xlsx

  6. #6
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Test if date is between two date then count

    Hi rganz,

    If possible, arrange the start and finish dates of your output sheet so they are in seperate columns and recognized as dates instead of text.

    Enter this formula in cell C2 of your output sheet:

    Please Login or Register  to view this content.
    Adjust ranges as required, then autofill across & down.

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  7. #7
    Registered User
    Join Date
    11-17-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Test if date is between two date then count

    KHamlton and ConneXionLost you guys rock! Perfect!!! Thank you so very much!

  8. #8
    Valued Forum Contributor khamilton's Avatar
    Join Date
    10-08-2009
    Location
    IL
    MS-Off Ver
    Excel 2007
    Posts
    345

    Re: Test if date is between two date then count

    your welcome

+ 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