0

=IF([End Date]=''" , "TBC",IF[End Date]< (Today -14), "Archived" , IF([End Date]

This formulae for a calculated field in a SharePoint list is not working. End date is a column and Today I think it the function for todays date in sharepoint.

Error is syntax is wrong ?

2
  • , IF[End Date]<Today,"Inactive", "Active" bracket bracket . End of formulae
    – James Khan
    Feb 2, 2012 at 11:25
  • Are you doing this in Excel or SharePoint? Why the Excel tag?
    – Ryan
    Feb 4, 2012 at 11:07

2 Answers 2

1

Assuming you're doing this in a SharePoint calculated column and not Excel ( its not clear from your question and tags) then Steve is correct about the syntax but there is a bigger problem.

You can't use Today in SharePoint calculated column formula - it does not work.

You will find plenty of articles talking about the fake Today column trick but it doesn't work as the result of the formula only updates when you update the record. Look again tomorrow and you will still see todays result - it won't have updated.

0

I think you have an extra quote in your first IF.

Instead of this:

=IF([End Date]=''" , "TBC",IF([End Date]< (Today -14), "Archived" , IF([End Date]<Today,"Inactive", "Active" ))

Try this:

=IF([End Date]="" , "TBC",IF([End Date]< (Today -14), "Archived" , IF([End Date]<Today,"Inactive", "Active" ))
1
  • If only Excel had syntax highlighting the way it is here! Feb 2, 2012 at 13:36

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.