+ Reply to Thread
Results 1 to 4 of 4

How to count occurrences between dates on different columns?

  1. #1
    Registered User
    Join Date
    05-13-2021
    Location
    Austin, TX
    MS-Off Ver
    365
    Posts
    2

    Post How to count occurrences between dates on different columns?

    Greetings,

    I have been scratching my head and I am uncertain how to solve this.

    I have a table of information (also attached):

    Stage Start Date End Date
    1 9/21/2017 4/1/2018
    2 4/1/2018 9/2/2019
    2 9/2/2019 9/2/2019
    3 9/16/2019 1/18/2021

    But I need to have it calculate a response like this:

    Date Stage 1 Stage 2 Stage 3
    9/17/2019 0 0 1
    9/18/2019 0 0 1
    9/19/2019 0 0 1
    9/20/2019 0 0 1
    9/21/2019 0 0 1


    What formula needs to be used to capture the frequency of occurrences based on the date between two dates in different columns? Any help would be greatly appreciated.

    Thank you and I look forward to your reply.

    Signed,
    John
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: How to count occurrences between dates on different columns?

    Note that I needed to make changes to your headers to match the values in your column - and then I used COUNTIFS
    Attached Files Attached Files
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: How to count occurrences between dates on different columns?

    G2=COUNTIFS($B$2:$B$5,"<="&$F2,$C$2:$C$5,">="&$F2,$A$2:$A$5,TRIM(SUBSTITUTE(G$1,"Stage",""))+0)

    Copy across and down

  4. #4
    Registered User
    Join Date
    05-13-2021
    Location
    Austin, TX
    MS-Off Ver
    365
    Posts
    2

    Re: How to count occurrences between dates on different columns?

    Thank you Caracalla, that solved it. I appreciate the assist.

+ 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 unique occurrences between two dates and by location
    By MakoTheDog in forum Excel General
    Replies: 5
    Last Post: 10-12-2020, 03:15 PM
  2. [SOLVED] Count occurrences between dates, containing text string.
    By her.rockstar in forum Excel General
    Replies: 10
    Last Post: 05-09-2018, 11:07 AM
  3. what do I use to count occurrences from 2 different columns
    By Mark_Delaware in forum Excel General
    Replies: 4
    Last Post: 12-01-2015, 03:45 PM
  4. Count occurrences between two dates
    By kettlecorn22 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2014, 02:53 PM
  5. Count the occurrences of dates in a month against a condition
    By cicilyantony in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2013, 01:26 AM
  6. Count unique occurrences of dates within period
    By areynolds in forum Excel General
    Replies: 6
    Last Post: 10-26-2011, 01:31 PM
  7. [SOLVED] How do I count number of occurrences (dates) in a rolling year?
    By ShirleyTR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2005, 02:05 PM

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