0

Please help with this formula

=if(C27>=16000,16M,if(C27,=16999,16M,if(c27>=17000,17M,if(C27<=17999,17M,if(C27>=18000,18M,if(C27<=18999,18M,if(C27>=19000,19M)))))))
0

3 Answers 3

2
=INT(C27/1000)&"M"

You may say I have to fix your formula and spot its obvious syntax error. No, I say you have to do it this way, and you always have to look for some neat, simple and deductive alternative before abandoning to the ugly, error-prone and difficult-to-maintain nested IFs.

And indeed, such alternative exists most of the time.

p.s. by the way why is it M and not K? may be you have a multiplicative unit implicitly in your data, well...

Sign up to request clarification or add additional context in comments.

Comments

0

You have a type-o near 16999.

Try this:

=if(C27>=16000,16M,if(C27>=16999,16M,if(c27>=17000,17M,if(C27<=17999,17M,if(C27>=18000,18M,if(C27<=18999,18M,if(C27>=19000,19M)))))))

1 Comment

I really have a problem looking for the right formula to express the following:
0
=if(C27>=16000,16M,if(C27 ,= 16999,16M,if(c27>=17000,17M,if(C27<=17999,17M,if(C27>=18000,18M,if(C27<=18999,18M,if(C27>=19000,19M)))))))

the character before 16999 shows the wrong syntax, perhaps it's like this

=if(C27>=16000,16M,if(C27<=16999,16M,if(c27>=17000,17M,if(C27<=17999,17M,if(C27>=18000,18M,if(C27<=18999,18M,if(C27>=19000,19M)))))))

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.