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

I am using SharePoint 2010.

I added a new Column and made it a Calculated Column.

Now I need to place a CASE statement in my Formula. Something like this...

CASE when [Region1] = 'A' and [Region2] = 'B' THEN
     when [Region1] = 'C' and [Region2] = 'D' THEN

So the value of my Calculated Column will be either YES or NO

share|improve this question
up vote 7 down vote accepted

Rewrite your formula with if-statements and nest them, something like this:


The first if does the first test, if that statement doesn't hold: use the second if (nested in the first if).

share|improve this answer
isn't the ; the correct parameters separator? – Steve B Mar 1 '13 at 10:05
Sadly it depends on the language you are using. – Dribbel Mar 1 '13 at 14:45
@Dribbel really sadly, here in Brazil the separator is ; it created a lot of difficult to me. – Guilherme J Santos Mar 26 '13 at 15:00

You'll want to use IF statements, look at this MSDN article or this Office document for references. It also helps to mock it up in Excel and then copy/paste it into the calculated column.

Edit: just about had it figured out and Dribble beat me to the formula, nested Ifs which can go up to 7 deep.

share|improve this answer

The equivalent of CASE in SharePoint is CHOOSE, but it is not very flexible (you need to resort to tricks to convert your cases into numbers). Usually nested ifs work better.

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.