+ Reply to Thread
Results 1 to 5 of 5

Calculate Number of dates that fall within ranges

  1. #1
    Registered User
    Join Date
    11-12-2014
    Location
    Suffolk, England
    MS-Off Ver
    Office 2010
    Posts
    8

    Calculate Number of dates that fall within ranges

    I've attached a test spreadsheet,

    I'm basically trying to find a formula which can calculate not only the number of working days between 2 dates, but then add them up to sums within ranges.

    It'll make more sense on the attached sheet; hope someone can help,

    ThanksTest - Number of Dates within range.xlsxTest - Number of Dates within range.xlsx

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Calculate Number of dates that fall within ranges

    see the attached file some modifications made to report table
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Calculate Number of dates that fall within ranges

    At its most basic, using NETWORKDAYS will give you the working days between two dates.
    therefore in C3
    Please Login or Register  to view this content.
    and drag down

    then in G3
    Please Login or Register  to view this content.
    and amend accordingly for the other counts......the last one "Respose Outstanding" will need to be:
    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Calculate Number of dates that fall within ranges

    If you want you can combine Siva's suggestion with pjwhitfield's, e.g. with Siva's setup you can use this formula In H3 copied to H6 to only account for working days

    =SUMPRODUCT((NETWORKDAYS($A$3:$A$46+0,B$3:B$46+0)>=$E3)*(NETWORKDAYS($A$3:$A$46+0,B$3:B$46+0)<=$G3))

    Note, NETWORKDAYS counts both start and end date, so Monday to Friday in the same week counts as 5, you may want that to be 4?
    Audere est facere

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Calculate Number of dates that fall within ranges

    Hi,

    Does the attached, which uses a Pivot table help.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. counting the number of dates that fall within a given week
    By john dalton in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-11-2013, 05:40 PM
  2. Formula to find dates that fall in several ranges
    By samcdavies in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2013, 11:20 AM
  3. Replies: 3
    Last Post: 07-31-2012, 04:21 PM
  4. Replies: 5
    Last Post: 10-26-2005, 02:05 PM
  5. Replies: 3
    Last Post: 08-08-2005, 06: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