IBM Apptio

IBM Apptio

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

 View Only
  • 1.  Convert Excel date code to Date

    Posted Tue September 06, 2022 10:11 AM

    I've recently come across source files that sometimes use valid dates and and excel date codes other times. Here's a formula to dynamically convert to a date using as a field override:

    MyDate =if(IsNumeric($_),DateFormat((value($_)-25569)*24*60*60,"M/d/yyyy"),$_)

    This converts an excel date code like 43062 to a date string like 11/23/2017.


    #CostingStandard(CT-Foundation)


  • 2.  RE: Convert Excel date code to Date

    Posted Thu September 22, 2022 07:05 PM
    This is great! I've puzzled over this one a few times to no avail. This will improve data integrity and save some occasional offline file manipulation.

    In case it helps anyone else, my particular source column also contained some blanks, which IsNumeric() decided was a number and converted to a date of 12/30/1899. By replacing IsNumeric($_) with $_>40000, it retained the blanks.


  • 3.  RE: Convert Excel date code to Date

    Posted Fri September 23, 2022 11:18 AM
    Thanks for sharing this one.

    ------------------------------
    Justin Kean
    Apptio
    Sr Instructor
    ------------------------------