Platform

Platform

A place for Apptio product users to learn, connect, share and grow together.

 View Only
  • 1.  How to use EDATE function (MS Excel)in APPTIO

    Posted Wed October 10, 2018 10:04 AM

    Team,

     

    We have two columns as "Start Date" which is "mm-dd-yyyy" format and "No.of Months" in "INT" data type. We need to calculate "End date" for the same. In MS-EXCEL we have a in-built function called =EDATE(A2,B2) which gives you the end date in date format as below.  Can some one advise how to achieve this in apptio?

     

    Start Date# MonthsEND DATE
    10/10/20182410/10/2020



    #TBMStudio


  • 2.  Re: How to use EDATE function (MS Excel)in APPTIO
    Best Answer

    Posted Wed October 10, 2018 11:55 AM

     

    End Date = If(Mod({# Months} + Value(DateFormat(Start Date, "M")), 12) = 0, 12, Trunc(Mod({# Months} + Value(DateFormat(Start Date, "M")), 12))) & "/" & Split(Start Date, 2, "/") & "/" & Value(Split(Start Date, 3, "/")) + Trunc(({# Months} + Value(DateFormat(Start Date, "M")) - 1) / 12)


    #TBMStudio


  • 3.  Re: How to use EDATE function (MS Excel)in APPTIO

    Posted Thu October 11, 2018 05:38 AM

    Dave,

     

    Please be informed that the formula is not working correctly for the below data set, hope we need to modify the formula, could you please help n the same?

     

    Acquisition Date

    Life

    Depreciation End Date

    7/1/1998 0:00

    120

    7/1/108

    1/1/1999 0:00

    120

    1/1/109

    1/1/1999 0:00

    120

    1/1/109

    10/1/1999 0:00

    120

    10/1/109

    10/1/1999 0:00

    120

    10/1/109

    10/1/1999 0:00

    120

    10/1/109

    10/1/1999 0:00

    120

    10/1/109

    10/1/1999 0:00

    120

    10/1/109

    10/1/1999 0:00

    120

    10/1/109

    10/1/1999 0:00

    120

    10/1/109

    10/1/1999 0:00

    120

    10/1/109

    3/1/2001 0:00

    84

    3/1/8

    4/1/2001 0:00

    84

    4/1/8

    4/1/2001 0:00

    84

    4/1/8

    4/1/2001 0:00

    84

    4/1/8

    4/1/2001 0:00

    84

    4/1/8


    #TBMStudio


  • 4.  Re: How to use EDATE function (MS Excel)in APPTIO

    Posted Thu October 11, 2018 09:21 AM

    Perhaps the timestamp (0:00) is the issue.

     

    One option to remove it:

    Acq Date Modified = Split(Acquisition Date, 1, " ")


    #TBMStudio


  • 5.  Re: How to use EDATE function (MS Excel)in APPTIO

    Posted Wed October 24, 2018 06:17 AM

    Chris/Team,

     

    Thanks much for the response. Per the latest advice from you, I have modified the date format to mm/dd/yyyy, the formula was working fine except for the below data sets, due to number of days (30/31), also leap year is another criteria to look out. Could you please advice on the below?

     

    Formula: End Date = If(Mod({# Months} + Value(DateFormat(Start Date, "M")), 12) = 0, 12, Trunc(Mod({# Months} + Value(DateFormat(Start Date, "M")), 12))) & "/" & Split(Start Date, 2, "/") & "/" & Value(Split(Start Date, 3, "/")) + Trunc(({# Months} + Value(DateFormat(Start Date, "M")) - 1) / 12)

     

    # Months

    Start Date

    Formula provided by support team

    EDate Formula in Excel

    Check

    1

    08/31/2011

    9/31/2011

    09/30/2011

    FALSE

    59

    03/31/2014

    2/31/2019

    02/28/2019

    FALSE

    57

    05/31/2015

    2/31/2020

    02/29/2020

    FALSE

    120

    02/29/2016

    2/29/2026

    02/28/2026

    FALSE

    4

    10/31/2013

    2/31/2014

    02/28/2014

    FALSE

    4

    10/31/2013

    2/31/2014

    02/28/2014

    FALSE

    36

    02/29/2008

    2/29/2011

    02/28/2011

    FALSE

    36

    02/29/2008

    2/29/2011

    02/28/2011

    FALSE

    85

    05/31/2015

    6/31/2022

    06/30/2022

    FALSE

    49

    08/31/2014

    9/31/2018

    09/30/2018

    FALSE

    58

    01/31/2015

    11/31/2019

    11/30/2019

    FALSE

    44

    08/31/2016

    4/31/2020

    04/30/2020

    FALSE

    39

    01/31/2013

    4/31/2016

    04/30/2016

    FALSE

     


    #TBMStudio


  • 6.  Re: How to use EDATE function (MS Excel)in APPTIO

    Posted Wed November 20, 2019 03:42 AM

    Chris/Team, I'm trying to use this formula to find out the End date and as mentioned above we are getting invalid dates for the above scenarios. I was trying to use the Durationofmonth() function to get the last day(30 or 31 or 28 or 29) for the Invalid date.

     

    Below are the formulas i'm using

     

    End Date column returns 09/31/2011 using the above formula.

    End Month = Value(Split(End Date,1, "/")  - Defined as Numeric

    End Year = Value(Split(End Date,3, "/") - Defined as Numeric

    Last Day of Month = DurationOfMonth("d",End Month,End Year)

     

    DurationofMonth function is not working as expected when column names or formula is used.  This function is returning blank value. 

     

    However in general, DurationofMonth("D",9,2011) returns correct value.

     

    Could you please let us what the issue is while passing columns names in the function?


    #TBMStudio