Calculation using two functions

Viewing 4 reply threads
  • Author
    Posts
  • October 13, 2019 at 8:51 AM #37113

    Richard Legault
    Participant

    Hi,

    I’m new user and I’m trying to do a calculation using two functions: YYMMDD and IFNOTEMPTY

    IFNOTEMPTY(date;(YYMMDD(date;TODAY() )))

    so if date not empty will return in text = year(s), day(s) and month(s)

    Date = Oct 6, 2018
    Today = Oct 14, 2019

    should return : 1 year, 0 months, 7 days

    Nothing is return.

    What I’m doing wrong ?

    Thank

    October 13, 2019 at 9:43 AM #37115

    Daniel Leu
    Participant

    Did you set the return type to ‘text’?

    IFNOTEMPTY expects three arguments and you are only providing two:IFNOTEMPTY(Date;YYMMDD(Date;TODAY());"empty")

    October 13, 2019 at 9:51 AM #37116

    john cesta
    Participant

    Kinda like but the opposite….

    IFEMPTY([DateApptSET];DAYS([Date Created];TODAY());”contact made”)

    Searching on if not empty will turn up lots of help on this function

    October 13, 2019 at 10:09 AM #37118

    Sam Moffatt
    Participant

    IFNOTEMPTY has three arguments per the Calculations manual page.

    Looking at your calculation:
    IFNOTEMPTY(date;(YYMMDD(date;TODAY())))

    I think maybe you’re missing a bracket after the second instance of date?

    IFNOTEMPTY(date; YYMMDD(date); TODAY())

    If it’s not empty, print the YYMMDD of date or use TODAY().

    The default output of a calculation field is number, try flipping it to text as well in case you don’t get any output. Text will accept almost any output type but it does change what formatting options work (hence the other two options).

    October 14, 2019 at 7:50 AM #37127

    Richard Legault
    Participant

    @daniel tanks you nailed it.

    Thanks everybody for your help ;-)

Viewing 4 reply threads

You must be logged in to reply to this topic.