+ Reply to Thread
Results 1 to 6 of 6

Use a Date Range and then count instances in another cell within that range

  1. #1
    Registered User
    Join Date
    07-06-2019
    Location
    London
    MS-Off Ver
    Microsoft Excel for Mac 2011
    Posts
    11

    Question Use a Date Range and then count instances in another cell within that range

    Hi
    I am trying to obtain the number of times the value H1 occurs in a table column C which has a date range in a different column (A). I want to input the starting and end date range for the selection I need to make in the formula and then count the number of times that H1 appears within that range.

    I have attached a table to use as an example. I want to be able to select between the 3/1/19 and the 13/1/19 and count how many H1 entries exist in Column C between these dates.

    I am afraid I am not sure how I can get this to work and would appreciate some advice?

    Thanks

    Rich
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,430

    Re: Use a Date Range and then count instances in another cell within that range

    With date range references in D1:E1


    A
    B
    C
    D
    E
    F
    1
    01/01/2019
    03/01/2019
    13/01/2019
    2
    02/01/2019
    3
    In D2: =COUNTIFS(C1:C18,"H1",A1:A18,">="&D1,A1:A18,"<="&E1)
    3
    03/01/2019
    H1
    4
    04/01/2019
    5
    05/01/2019
    6
    06/01/2019
    7
    07/01/2019
    H1
    8
    08/01/2019
    9
    09/01/2019
    10
    10/01/2019
    H1
    11
    11/01/2019
    12
    12/01/2019
    13
    13/01/2019
    14
    14/01/2019
    15
    15/01/2019
    16
    16/01/2019
    17
    17/01/2019
    18
    18/01/2019
    Last edited by FlameRetired; 07-09-2019 at 03:05 PM.
    Dave

  3. #3
    Registered User
    Join Date
    07-06-2019
    Location
    London
    MS-Off Ver
    Microsoft Excel for Mac 2011
    Posts
    11

    Re: Use a Date Range and then count instances in another cell within that range

    Hi FlameRetied - thats working great - just a follow up.

    Is there a way to add the selection of the date range in the formula itself instead of selecting it from a row - so for example if I wanted to look between TODAY()-365 and TODAY(), is there a way to add that in the formula itself or would I have to add it in columns D1 and E1 and then select as you have?

    Rich

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,430

    Re: Use a Date Range and then count instances in another cell within that range

    Certainly.

    Replace references to D1 and E1 with those criteria.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-06-2019
    Location
    London
    MS-Off Ver
    Microsoft Excel for Mac 2011
    Posts
    11

    Re: Use a Date Range and then count instances in another cell within that range

    Thats brilliant - thanks FlameRetied.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,430

    Re: Use a Date Range and then count instances in another cell within that range

    You are welcome. Thank you for the feedback and marking your thread Solved.

+ 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. Count instances of a certain word in a range
    By Richard Champlin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-08-2014, 04:47 PM
  2. Counting instances in one cell range for days of week in another range
    By NGothIda in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-13-2014, 12:11 PM
  3. [SOLVED] Count instances that happen within time range
    By Abarency in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-12-2013, 08:04 PM
  4. Replies: 1
    Last Post: 02-05-2013, 09:14 AM
  5. Replies: 3
    Last Post: 01-18-2012, 12:12 PM
  6. Count instances of a value within a date-range
    By Nate Westcott in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-07-2012, 07:10 AM
  7. Count the instances of more than one value in a given range
    By Nekto in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-19-2008, 08:45 AM

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