Calculated Column, IF AND statement

Copper Contributor

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

1 Reply

@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], "")


  1. Sometimes comma( , ) does not work in formula (it is based on language or regional settings on your site). So in that case use semicolon( ; ) instead of comma( , ).
  2. Use correct display name of your SharePoint columns in above formula.
  3. Wrap column names inside [] if your column name has space in it. For example: [My Column Name].


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.