• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 30
  • Last Modified:

SharePoint Calculated Column Help

Trying to setup  calculated column in SharePoint with the following logic

if TCV GE 100000000 then = L0
if TCV GE 25000000 AND LT 100000000 then = L2
if TCV GE 5000000 AND LT 25000000 then = L3
if TCV LT 5000000 then = L4
if TCV EQ 1 then = L3
Matt Pinkston
Matt Pinkston
  • 4
1 Solution
Matt PinkstonAuthor Commented:
How to combine

=IF([TCV]>=100000000, "L0", "Not OK")

=IF(AND([TCV]>=25000000, [TCV]<100000000), “L2”, “”)

=IF(AND([TCV]>=5000000, [TCV]<25000000), “L3”, “”)

=IF([TCV]<5000000, "L4", "")

=IF([TCV]=1, "L3", "")
Matt PinkstonAuthor Commented:
Would this be right????

=IF([TCV]>=100000000, "L0", (AND([TCV]>=25000000, [TCV]<100000000), “L2”, (AND([TCV]>=5000000, [TCV]<25000000), “L3”, ([TCV]<5000000, "L4", ([TCV]=1, "L3", "")))))
Matt PinkstonAuthor Commented:
I get an error when trying to add the above
All if statements should be inside one single brackets
 like this

=IF(([TCV]>=100000000), "L0", "Not OK",
  IF((AND([TCV]>=25000000, [TCV]<100000000), “L2”, “”,
  IF((AND([TCV]>=5000000, [TCV]<25000000), “L3”, “”,
  IF(([TCV]<5000000, "L4", ""),
  IF(([TCV]=1, "L3", ""))))))

it should be something like this. reconstruct your statement, start with single then add another one after another. That way you can track when you are making mistake.
but the structure has to be like this.
Matt PinkstonAuthor Commented:
GREAT.... Thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now