+ Reply to Thread
Results 1 to 5 of 5

Finding number of days between dates and categorising by week ending date

  1. #1
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    377

    Finding number of days between dates and categorising by week ending date

    Days leave by week ending date v2.xlsx

    Anyone able to correct the formula in here? It seems to work except for in cell H4 where it reports 3 days instead of 1

    This is the number of working days (Mon-Fri) between the dates in columns A - B
    Days as above split by week ending dates (Sundays), row 3
    Days as above within the range specified, date ranges in rows 1-2

    Formula is cell E7, all others manually populated to show what I want the answer to be

    Thankyou

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Finding number of days between dates and categorising by week ending date

    try

    D4=SUMPRODUCT(--ISNUMBER(MATCH(ROW(INDIRECT(D$1&":"&D$2-2)),ROW(INDIRECT($A4&":"&$B4)),0))) and drag over the cells and down.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    377

    Re: Finding number of days between dates and categorising by week ending date

    Quote Originally Posted by shukla.ankur281190 View Post
    try

    D4=SUMPRODUCT(--ISNUMBER(MATCH(ROW(INDIRECT(D$1&":"&D$2-2)),ROW(INDIRECT($A4&":"&$B4)),0))) and drag over the cells and down.
    Same outcome as {=COUNT(MATCH(ROW(INDIRECT(D$1&":"&D$2-2)),ROW(INDIRECT($A4&":"&$B4)),0))}

    Where in cell H4 it shows 3 days are between the 29th Feb & 29th Feb for week ending 6th March. This should just be one day

  4. #4
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    377

    Re: Finding number of days between dates and categorising by week ending date

    Thinking about this I just need to change the minus two to work out how many weekend days are between the date ranges, solved my own problem

    D4 = {=COUNT(MATCH(ROW(INDIRECT(D$1&":"&D$2-((DAYS(D$2,D$1)+1)-NETWORKDAYS(D$1,D$2,$L$2:$L$16)))),ROW(INDIRECT($A4&":"&$B4)),0))}

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Finding number of days between dates and categorising by week ending date

    Good one

+ 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. [SOLVED] number of days between dates by week ending date
    By benoj2005 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-23-2015, 12:19 AM
  2. [SOLVED] Sum 7 days of information based on week ending date
    By tatyanamarie in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-18-2013, 07:22 AM
  3. Sheets for every week + start and ending date of the week
    By wimexcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-30-2012, 01:48 PM
  4. Finding End Week Dates Using Vlookups Within Date Ranges
    By kgibson20 in forum Excel General
    Replies: 3
    Last Post: 01-24-2011, 02:19 PM
  5. Replies: 3
    Last Post: 02-23-2010, 03:47 PM
  6. finding number of days between dates
    By gav_69 in forum Excel General
    Replies: 3
    Last Post: 03-14-2007, 07:19 AM
  7. How to format cells to show dates as the week-ending date of that
    By dereksmom in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-12-2006, 11:45 AM

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