Reputation: 51
In a SharePoint calculated field how do I check two things?
I have the following which checks field Est OpMargin and if less than 20 sets field to BG but I would also if less than 17 set it to RG
=IF([Est OpMargin]<20,"BG","")
Upvotes: 0
Views: 3566
Reputation: 4228
The Formula below for your reference:
=IF(And([Est OpMargin]>=17,[Est OpMargin]<20),"BG",IF([Est OpMargin]<17, "RG",""))
Upvotes: 0
Reputation: 1231
Nest the IFs:
=IF([Est OpMargin]<17, "RG", IF([Est OpMargin]<20,"RG","") )
In SharePoint 2007 and 2010 you can nest 7 levels deep, and 2013 and later you can next 19 levels.
Upvotes: 1