简体   繁体   中英

Nested If statement 3 conditions and 1 definitive

I've had a look around on a few questions asked already regarding nested if statements and cant seem to get the answers suggested to fit my problem.

I am trying to get a result based on 3 conditions but one of the conditions is a definitive, the conditions are:

  • <9000 * 42.25%
  • =9011 * 106.91%
  • >9000 but not 9011 * 89.67%

I have tried writing this multiple ways, the closest Ive managed to get to a result is:

=IF(K2<9000,K2*0.4225,IF(K2=9011,K2*38967,K2*1.0691))

The only problem with this is that it calculates anything under 9000 and thats it.

If anyone could offer any help that would be great

Thanks

您在第二个IF中反转了数字,我们可以删除K2以避免多次输入:

=IF(K2<9000,0.4225,IF(K2=9011,1.0691,0.8967)) * K2

2 nested IFs() is the correct way to do it. You have reversed the 2. and the 3. conditions a bit:

=IF(K2<9000,K2*0.4225,IF(K2=9011,K2*1.0691,K2*0.8967))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM