简体   繁体   中英

Range between Percentages in Excel

Condition:

     \<10000 = 0%

Between 10000 and 20000 = 5% Greater than 20000 = 20%

Formula so far:

      =IF(B2\>20000,"10%",

       IF(AND(B2\>=10000,B2\<20000,"5%"),

      IF(B2\<10000,"0%")))

       Issue: Excel is not picking up the B2\>=10000,B2\<20000,"5%" portion.

Please advise.

No result.

Your "5%" is inside logical test part. Should be:

=IF(B2>=20000,"10%",IF(AND(B2>=10000,B2<20000),"5%",IF(B2<10000,"0%")))

Also in your formula 20000 returns false as your test is >20000 or <20000, but nowhere =20000 (added it to 10% part - B2>=20000 )

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