+ Reply to Thread
Results 1 to 5 of 5

difference in dates for specified time

Hybrid View

  1. #1
    Registered User
    Join Date
    07-11-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Thumbs up difference in dates for specified time

    Formula query
    Column “A” list of dates correspondence in
    Column “B” list of dates correspondence reply out
    Need to calculate how many times the difference between date in and reply date is <= 5 in a specific time period.
    The start date is entered in say, “K1”
    The end date is entered in say, “L1”
    Also calculate difference in dates between 14 days and 21 days for time period
    Also with reply in column “B” not sent until over 28 days
    I have tried SUMPRODUCT with (date_in=K1)*(date_out<=L1) for the dates but unsure how to define <=5

    Any help please
    Last edited by EYES; 07-19-2009 at 06:38 PM.

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

    Re: difference in dates for specified time

    Try

    =SUMPRODUCT((date_in>=K1)*(date_out<=L1)*(date_out-date-in<=5))

  3. #3
    Registered User
    Join Date
    07-11-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: difference in dates for specified time

    I've tried that one but get a result of 0 and I know there should be 3.
    It would be easier if I had a NETWORKDAYS column with the difference and take the time period from that but I thought there might be another way to do it.

    Thanks for your help anyway

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

    Re: difference in dates for specified time

    The formula I suggested should work, but it counts all days, you didn't say you wanted to count only weekdays. If so then, yes, the easiest way is to have a column with a NETWORKDAYS formula......

  5. #5
    Registered User
    Join Date
    07-11-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: difference in dates for specified time

    Hi again
    Thanks for your help, yes it did work, miskeyed your answer, must be the midnight oil.
    Cheers

+ 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