Link to home
Start Free TrialLog in
Avatar of jj1103
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:

=IF(Today>[Rev Due],"Yes","No")

Open in new window


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")

Open in new window


End result needed: The word "yes" only displays if the date is overdue and the status is "not started".

Thanks!
Avatar of Dale Fye
Dale Fye
Flag of United States of America image

How about:

=IF(Today<=[Rev Due],No, IF([Status] ="Not Started","Yes","No"))
Avatar of jj1103
jj1103

ASKER

This produces an error in syntax.
ASKER CERTIFIED SOLUTION
Avatar of Dale Fye
Dale Fye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jj1103

ASKER

This code makes everything display "No"....what should I change?

=IF(AND(Today>[Rev Due],[Status]="Not Started"),"Yes","No")

Open in new window

Avatar of jj1103

ASKER

Fixed it!  I had to delete the "Today" column I made to trick SharePoint into using the "Today" code.