Sep 07 2023 07:31 PM
I could use help with a SharePoint Calculated column.
What I want is TargetDate to produce a Date of 120 days before InServiceDate if AgreementType equals AgreementA.
Something like...
If AgreementType = AgreementA
AND InServiceDate = DATE
Then TargetDate = InServiceDate-120
So the result would look like
AgreementType InServiceDate TargetDate
AgreementA 9/7/2025 5/10/2025
Sep 08 2023 03:57 AM
@sittingWaiting Try using formula like below for your calculated column:
=IF([AgreementType] = "AgreementA", [InServiceDate-120], [InServiceDate])
This sets TargetDate to InServiceDate if condition does not meet. If you want blank value instead, use this formula:
=IF([AgreementType] = "AgreementA", [InServiceDate-120], "")
Note:
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.