+ Reply to Thread
Results 1 to 6 of 6

Help creating a COUNTIF formula that will match between dates

  1. #1
    Registered User
    Join Date
    05-19-2016
    Location
    Cambridge, Ontario
    MS-Off Ver
    2010
    Posts
    47

    Help creating a COUNTIF formula that will match between dates

    Hi all,

    I'm trying to build a formula that will count all the 'X's on the second data sheet for the appropriate TM# between the specific dates (Last Date Worked & Return Date)

    The answer to this will go in the collumn titled "VC Days Scheduled". So for example, TM #45225 has X's between 5/30/2016 to 6/3/2016, which falls between his "Last Date Worked" (05/13/2016) and his "Return Date"(6/10/2016)...

    So it should return the answer "5" for that specific TM.

    Any help would be appreciated! I am guessing a Countif would be in order for this type of scenario.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help creating a COUNTIF formula that will match between dates

    You need to convert the dates in column C to real dates, using same format as column E.

    Then use

    =SUMPRODUCT(('VC days'!$A$2:$A$6=$A2)*('VC days'!$B$1:$CD$1>=$C2)*('VC days'!$B$1:$CD$1<=$E2)*('VC days'!$B$2:$CD$6="X"))

  3. #3
    Registered User
    Join Date
    05-19-2016
    Location
    Cambridge, Ontario
    MS-Off Ver
    2010
    Posts
    47

    Re: Help creating a COUNTIF formula that will match between dates

    Thanks for the response, I'm having trouble converting the C collumn to match the formatting in E. I've tried right clicking and changing the formatting of the cell but it doesn't change. Any reason for that?

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help creating a COUNTIF formula that will match between dates

    Because formatting a cell doesn't actually 'Change' the value contained in the cell, just changes how it is 'Displayed'.

    Try highlighting the column, Click Data - Text To Columns - Deliminated - Finish.

  5. #5
    Registered User
    Join Date
    05-19-2016
    Location
    Cambridge, Ontario
    MS-Off Ver
    2010
    Posts
    47

    Re: Help creating a COUNTIF formula that will match between dates

    OH okay perfect, I've wondered that before. Good to know. Thanks Jon!

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help creating a COUNTIF formula that will match between dates

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Countif 2 cells match and another column is blank using dates.
    By heresteve2 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-23-2016, 03:56 PM
  2. [SOLVED] Using COUNTIF to match dates
    By chilli76 in forum Excel General
    Replies: 9
    Last Post: 01-31-2016, 07:28 AM
  3. Replies: 4
    Last Post: 07-20-2015, 06:44 AM
  4. [SOLVED] Creating a sorted list, using INDEX, MATCH, LARGE, COUNTIF
    By amnesiac77 in forum Excel General
    Replies: 7
    Last Post: 07-25-2014, 10:56 AM
  5. [SOLVED] Creating a formula to populate range of cells between dates based on start and end dates
    By Rainmain82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-20-2014, 07:42 PM
  6. [SOLVED] Creating a formula to populate range of cells between dates based on start and end dates
    By Rainmain82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2014, 07:55 AM
  7. [SOLVED] Help creating a formula that using If,index, match and displays only the newest dates...
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-16-2013, 02:28 PM

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