+ Reply to Thread
Results 1 to 5 of 5

Calculating number of days in each month during a given period.

  1. #1
    Registered User
    Join Date
    02-19-2004
    Posts
    57

    Calculating number of days in each month during a given period.

    Hi,

    I'm trying to devise for a running formula, which will automatically calculate the no. of days instead of manually calculating for the first & the last month each time.

    Pls see the file attached.

    Any help is greatly appreciated!

    Thks!
    Josnah...
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by josnah; 04-26-2007 at 12:39 PM.

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Hi, Josnah, see attached file.

    HTH

    Jason
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-19-2004
    Posts
    57
    Hi Jason,

    It works!!! Thanks very very much for your help....

    Josnah...

  4. #4
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,676
    You could probably simplify that formula a little....in B6 copied down

    =IF(OR(A5>=B$2,A6<A$2),0,MIN(A6,B$2)-MAX(A5,A$2))

  5. #5
    Registered User
    Join Date
    02-19-2004
    Posts
    57
    That's makes its look so simple! Never could have thought of it...

    Thanks alot for your help!

+ Reply to Thread

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