0

I have a SharePoint list that has the following columns:

enter image description here

I'm having a hard time making this. I want to make the Status column a calculated value dependent on departure and return. I want to show if it "incoming", "on process", or "Finished". I already got this code but I don't know where to set the other result values.

=IF(iserror(=DATEDIF(TODAY(),Departure,"d")), "Finished", =DATEDIF(TODAY(),Departure,"d"))

2 Answers 2

0
=if(
    today()>=Departure,
        if(today()<=Return,"On Process","Finished"),
        if(today()<Departure, "Incoming")
)

Got this code working for me.

0

Glad to see that you're getting your formula working as you'd expect, and yes, you can definitely use TODAY() in a calculated column.

However, you should be aware that the Today() function will hold the first saved value [Today] until the item is updated, in which case it will be recalculated again with the current TODAY value. Otherwise, the value of TODAY will not be automatically updated!

See also Supported and Unsupported Columns In SharePoint Calculated Column Formula

2
  • Hi..thanks for the info..yeah it didnt update..Do you have any alternative function to do this? Commented Dec 6, 2021 at 5:44
  • Hi..I got it working for me. I created a column which is updated daily by a flow and updated the formula in the calculated column. Thanks man. Commented Dec 6, 2021 at 6:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.