Forum Discussion

NipawanV's avatar
NipawanV
Icon for Helper I rankHelper I
4 years ago
Solved

Replace two blank date fields with another date column

Hello, I created column formula called "Date3" to replace with date field in the other columns.  Every line went well give the correct results but on line 6 I used "AND" & "BLANK() to check two date ...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi NipawanV ,

     

    I have a test by your code, I and I could reproduce your problem. I think your issue should be caused that your conditional statement will go [Due Date (scheduledend)] = BLANK(), [Actual End Date] firstly, then it will return blank , there is something wrong in your And() function.

    Try this code.

    Date3 = 
    IF (
        AND ( [Due Date (scheduledend)] = BLANK (), [Actual End Date] = BLANK () ),
        activitypointers[modifiedon],
        IF (
            [Due Date (scheduledend)] = BLANK (),
            [Actual End Date],
            IF (
                [Actual End Date] = BLANK (),
                [Due Date (scheduledend)],
                [Actual End Date]
            )
        )
    )

    Result is as below.

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.