Results 1 to 6 of 6

Need to adapt SUM PRODUCT to measure calendar and work days each Week between dates

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,407

    Need to adapt SUM PRODUCT to measure calendar and work days each Week between dates

    Attached Table in A2 - E10 lists the Planned and Actual Start and Finish Dates for four Activities.

    GANTT BY MONTH in rows 29 - 37 works perfectly, using SUM PRODUCT to establish how many days each Calendar month are covered by the Date span:
    E.g. C30 (Planned Activity 1 (3rd - 10th Jan) shows 8 days in January:

    =IF(SUMPRODUCT(--(MONTH(ROW(INDIRECT($C4 & ":" & IF($D4="",TODAY(),$D4))))=MONTH(C$29)))>0,SUMPRODUCT(--(MONTH(ROW(INDIRECT($C4 & ":" & IF($D4="",TODAY(),$D4))))=MONTH(C$29))),"")

    First challenge is failing to adapt the Formula so it establishes how many days each Calendar WEEK are covered by the Date Span:

    E.g. C16 (Planned Activity 1 (3rd - 10th Jan) in week 1 SHOULD show 5 days in week 1:

    =if(SUMPRODUCT(--(WEEKNUM(ROW(INDIRECT($C3 & ":" & IF($D3="",TODAY(),$D3))))=WEEKNUM(C$15)))>0,SUMPRODUCT(--(WEEKNUM(ROW(INDIRECT($C3 & ":" & IF($D3="",TODAY(),$D3))))=WEEKNUM(C$15)))>0,"")

    Unfortunately, as shown on row 16, it generates weeks 1 - 7 as 5s, then weeks 8 - 14 as 3s (SHOULD be 5 in week 1 and 3 in week 2).

    Second challenge is the need to adapt the formula so the User can SUMPRODUCT working days (assuming Mon - Fri) as well as Calendar days.

    All solutions, alternatives and recommendations welcome as ever.

    Ochimus
    Last edited by Ochimus; 10-06-2023 at 01:23 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Formula to Count The Number Of Work Days between dates and in in the fiscal month
    By LCalvert in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-30-2020, 05:26 PM
  2. [SOLVED] Formula to calculate working days and calendar days per month-year ?
    By donny007 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-05-2018, 06:23 PM
  3. [SOLVED] populating a calendar w/product names on their due dates from dates on seperate tab
    By marcella needs help in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2018, 03:35 PM
  4. Measure Cut Off Time for work done in a month
    By hazel_max in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-23-2016, 10:35 PM
  5. Replies: 2
    Last Post: 07-31-2013, 02:00 PM
  6. [SOLVED] How to measure the time elapsed between two dates in hours - not days
    By lhbarnes2002 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-31-2012, 02:31 PM
  7. [SOLVED] Sm Product a Calendar Month Range?
    By John in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2005, 05:06 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