Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SharePoint Task List Calculated Text Field formula help 1

Status
Not open for further replies.
Apr 16, 2008
3
US
Trying to get one text column to look at another text column to create the input (trying to eliminate user error).

Looking at Site column. If Site column field is "apples" or "oranges", I want Group column to say "fruit". If Site column field is "celery" or "carrots", I want Group column to say "veggie". What Am I doing wrong?

=If ([Site]="apples","fruit","")

Granted, this would not be the full formula, but I wanted to get something to work even if not the whole thing. This was just to try to temporarily make the Group column say "fruit" if Site column said "apples", blank otherwise. Getting syntax error in SharePoint.
 
Make sure there are no extra spaces in your formula if you do = if ( there is an error, if you do =if( there isn't.

Try this for a longer version of your formula as well..

Code:
=IF(OR([Site] = "Apples", [Site] = "Oranges"),"Fruit", if(OR([Site] = "Celery", [Site] = "Carrots"), "Veggies","Other"))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top