+ Reply to Thread
Results 1 to 5 of 5

Sum Frequency Within a Date Range?

  1. #1
    Registered User
    Join Date
    08-19-2021
    Location
    London
    MS-Off Ver
    O365
    Posts
    9

    Question Sum Frequency Within a Date Range?

    Hi everyone,

    I'm having difficulty counting the frequency of an event within a date range. I've managed to count the total instances within the date range but I can't figure out how to make this work with the frequency.

    I think the most challenging part is that the frequency is looking for two different conditions, where when I've got the total instances working I'm just looking for 1 set criteria.

    I've attached a sample worksheet including sample data and expected results which hopefully helps explain this better!

    (looking for frequency of consecutive T and X events within a date range)

    Thanks for the help!

    Excel_Noob
    Attached Files Attached Files
    Last edited by excel_noob122; 12-10-2021 at 06:32 AM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Sum Frequency Within a Date Range?

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Sum Frequency Within a Date Range?

    Please try

    =LET(x,C7:K7,d,$C$6:$K$6,z,FILTER(x,(d>=$N$3)*(d<=$M$3)),y,TRIM(CONCAT(0,IF((z="T")+(z="X")," ",0),0)),LEN(y)-LEN(SUBSTITUTE(y," ",)))

    or

    =SUM(SIGN(FREQUENCY(IF(($C$6:$K$6>=$N$3)*($C$6:$K$6<=$M$3)*((C7:K7="T")+(C7:K7="X")),COLUMN(C7:K7)),IF(C7:K7="",COLUMN(C7:K7)))))
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-19-2021
    Location
    London
    MS-Off Ver
    O365
    Posts
    9

    Re: Sum Frequency Within a Date Range?

    Thanks Fluff13 and Bo_Ry these all work amazingly!

    Excel_Noob

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Sum Frequency Within a Date Range?

    Glad to help & thanks for the feedback.

+ 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 frequency of name based on date range
    By Hizzo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-09-2020, 01:51 PM
  2. [SOLVED] Frequency based on Calculated Date Range
    By antexity in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-20-2015, 11:26 AM
  3. [SOLVED] Help with Frequency using date range
    By terence8 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-06-2014, 12:17 AM
  4. Calculate next due date based on start date frequency and current date
    By ironoverload in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-09-2014, 07:08 AM
  5. conditional formatting formula to check frequency of occurence in date range?
    By seanblanton in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-27-2013, 05:50 PM
  6. Analyse date frequency cross-referencing multiple date ranges
    By globalpontoon in forum Excel General
    Replies: 2
    Last Post: 05-15-2012, 04:24 PM
  7. Frequency within date range
    By cursednomore in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-12-2005, 04: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