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 PinkstonEnterprise ArchitectAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Matt PinkstonEnterprise ArchitectAuthor 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", "")
0
Matt PinkstonEnterprise ArchitectAuthor 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", "")))))
0
Matt PinkstonEnterprise ArchitectAuthor Commented:
I get an error when trying to add the above
0
kukdaiCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Matt PinkstonEnterprise ArchitectAuthor Commented:
GREAT.... Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.