SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This should be easy but I have been beating my head against the wall on it. Here is my statement I'm using:

=IF(AND([TODAY]>[Due In],[Comp Date]=""),"NO",IF(AND([TODAY]<[Due In],[Comp Date]=""),"",IF(AND([TODAY]>[Due In],[Comp Date]>[Due In]),"NO","YES")))

Basically I am checking two date fields, due date and completion date, to make sure the project has been turned in on time. Based on the return the calculated field should populate with yes, no or stay blank. I get a syntax or function not supported error. Any help would be greatly appriciated.


share|improve this question

Try breaking them up into individual statements first and after you have the syntax right for all 3, merge them into the nested ifs.

Also, Today in calculated columns isn't very reliable, try the solution proposed by Christophe,

share|improve this answer

When I enter this, it doesn't like the multi-word variables.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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