jj1103
asked on
SharePoint 2010 Conditional Statements in Calculated Column
I have a SharePoint list that has a column called "Rev Due" which is a set due date. I have a calculated column in this list called "Overdue". In the formula for this column I have this code:
It works great. It displays "Yes" if the date is overdue. I need to add one more condition. I have another column called "Status". I need it to only display "Yes" if the Status is also "Not Started". I cannot figure out how to make SharePoint accept the second condition.
I tried to modify this example found online as a base but I can't get it to work:
End result needed: The word "yes" only displays if the date is overdue and the status is "not started".
Thanks!
=IF(Today>[Rev Due],"Yes","No")
It works great. It displays "Yes" if the date is overdue. I need to add one more condition. I have another column called "Status". I need it to only display "Yes" if the Status is also "Not Started". I cannot figure out how to make SharePoint accept the second condition.
I tried to modify this example found online as a base but I can't get it to work:
=IF(AND([Column1]>[Column2], [Column1]<[Column3]), "OK", "Not OK")
End result needed: The word "yes" only displays if the date is overdue and the status is "not started".
Thanks!
ASKER
This produces an error in syntax.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This code makes everything display "No"....what should I change?
=IF(AND(Today>[Rev Due],[Status]="Not Started"),"Yes","No")
ASKER
Fixed it! I had to delete the "Today" column I made to trick SharePoint into using the "Today" code.
=IF(Today<=[Rev Due],No, IF([Status] ="Not Started","Yes","No"))