+ Reply to Thread
Results 1 to 3 of 3

Count if days between dates in two ranges are less than or equal to 30 days

  1. #1
    Registered User
    Join Date
    09-22-2016
    Location
    Philadelphia, PA
    MS-Off Ver
    Office 365
    Posts
    1

    Count if days between dates in two ranges are less than or equal to 30 days

    Hi All, huge fan of the Excel Forum site here for years in helping me use some fancy formula tricks via the threads of others.

    Was wondering if someone has came across creating a formula that calculates the days in dates within two ranges and counting them without the use of a helper column?
    Normally, I would create a helper column and do a countifs() but figured if would be cleaner if there was a way to nest a days calculation inside a countif() and read off of that.

    I attached a sample .xlsx file for reference.

    Any help and insight greatly appreciated!

    Thanks,
    Linda
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: Count if days between dates in two ranges are less than or equal to 30 days

    Is this what you need?

    =SUMPRODUCT(--(C2:C10-B2:B10<=30))

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Count if days between dates in two ranges are less than or equal to 30 days

    could you provide a little more detail? You have a date in col B and a date in col C, where would you want to put the difference between both dates if not in another column somewhere?
    And is there a difference between the number you have in col D and what you would expect it to be - you have 4/23/17 in B2 and 12/3/18 in C2 and 589 days in D2 as the difference, do you expect a different result?

    Root gave you an answer while I was still typing, maybe that is what you are looking for?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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. Replies: 10
    Last Post: 02-19-2019, 03:28 AM
  2. Replies: 0
    Last Post: 10-31-2014, 10:32 AM
  3. Replies: 8
    Last Post: 07-02-2014, 01:39 PM
  4. Replies: 1
    Last Post: 03-19-2014, 12:42 PM
  5. Working days and holidays between dates/ranges
    By marielouise1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2014, 11:15 AM
  6. Help on count the number of days in between dates and then average number of days
    By Barbara Excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2013, 12:13 PM
  7. Remove Dates less than or equal to 30 days from Today’s Date
    By EJensen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-16-2009, 05:55 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