简体   繁体   English

Excel我需要带有嵌套公式的建议吗?

[英]Excel Need advice with a nested Formula I think?

This is the formula I came up with: 这是我想出的公式:

=IF(H6<=0.35,35,IF(H6>=0.36,ROUND(B6*0.02,0)))

H6 is the percent of the balance I am trying to get it to do $35 or 2% of balance seems to work under 35 but when it goes over it don't work properly I need it to read $35 if the 2% is less :(( Any help would be greatly appreciated :)). H6是余额的百分比,我尝试使它达到35美元或余额的2%似乎在35岁以下,但是当它超过时,它不能正常工作,如果2%少,我需要它读取$ 35: (( 任何帮助将不胜感激 :))。

Not exactly sure what you're after, eg what's in B6? 不完全确定您要追求什么,例如B6中有什么?

As you're dealing in percentages are you sure you want to round to 0 digits not 2 or something like that? 确定百分比时,确定要舍入到0位数而不是2或类似的数字吗?

ie if you change to: 即,如果您更改为:

=IF(H6<=0.35,35,IF(H6>=0.36,ROUND(B6*0.02,2)))

does that fix it? 这样可以解决吗?

Also, if H6 is 0.351 your formula is going to produce FALSE, is that by intention? 另外,如果H6为0.351,您的公式将产生FALSE,这是出于故意吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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