+ Reply to Thread
Results 1 to 4 of 4

Subtract Start Date from End Date

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    PA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Subtract Start Date from End Date

    Example- How to do you display # of days between 6/11/2011 and 6/11/2012 and use only the month and day data (Year is not relevant). So If I used 6/11/99 I would get the same answer of days in between as 6/11/2011.

    This is the formula I am using now, which gives me the data with the year information.

    =IF(AND(A4<>"",A5<>""),DATEDIF(A4,A5,"0"),"")

    A4 is start date
    A5 is end date

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,612

    Re: Subtract Start Date from End Date

    Wrong answer
    Last edited by Pepe Le Mokko; 06-11-2012 at 02:35 PM.

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Subtract Start Date from End Date

    Hi sjh31182,


    You can use the below formula:-

    =DATE(1,MONTH(A5),DAY(A5))-DATE(1,MONTH(A4),DAY(A4))
    diff betwen date n ignore year.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Subtract Start Date from End Date

    If you're simply looking for a count of days between dates excluding the year variability, then this should work:

    =DATEDIF(A4,A5,"yd")

+ 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