Results 1 to 11 of 11

Proper Counting of Days

Threaded View

  1. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,712

    Re: Proper Counting of Days

    One way to do this is to dispense with helper columns and just have a single formula in AA9:AA20, i.e. this "array formula" in AA9 confirmed with CTRL+SHIFT+ENTER and copied down

    =SUM(IF(F$2:F$34<X9,0,IF(E$2:E$34>EOMONTH(X9,0),0,IF(F$2:F$34=E$2:E$34,1,IF(F$2:F$34>EOMONTH(X9,0),EOMONTH(X9,0)+1,F$2:F$34)-IF(E$2:E$34<X9,X9,E$2:E$34)))))

    Now if you have this formula in G2 copied down

    =IF(E2=F2,1,F2-E2)

    Your totals in G37 and AA21 should match (assuming all dates are within 2012) - see attached
    Attached Files Attached Files
    Audere est facere

Thread Information

Users Browsing this Thread

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

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