0
我有一個公式,它返回一個錯誤,通知IF嵌套太多。爲了獲得我需要的結果,是否有可能以其他方式做到這一點?Excel嵌套問題
請參見下面的例子:
<table>
<tr><td>A</td><td>B</td><td>C</td><td>D</td><td>E</td><td>F</td><td>G</td><td>H</td><td>I</td><td>J</td></tr>
<tr><td>SKU</td><td>Description</td><td>Height</td><td>Depth</td><td>Width</td><td>Box</td><td>Depth</td><td>Height</td><td>Width</td><td>Exceed by 5%?</td></tr>
<tr><td>30200616</td><td>DORMA MIRRORED WALL CLOCK 44*44 CHAMP</td><td>460</td><td>70</td><td>450</td><td>"=IF(G2+H2+I2>=50%*1265,
IF(AND(G2<=BOXES!$B$2, H2<=BOXES!$C$2, I2<=BOXES!$D$2), BOXES!$A$2,
IF(AND(G2<=BOXES!$B$3, H2<=BOXES!$C$3, I2<=BOXES!$D$3), BOXES!$A$3,
IF(AND(G2<=BOXES!$B$4, H2<=BOXES!$C$4, I2<=BOXES!$D$4), BOXES!$A$4,
IF(AND(G2<=BOXES!$B$5, H2<=BOXES!$C$5, I2<=BOXES!$D$5), BOXES!$A$5,
IF(AND(G2<=BOXES!$B$6, H2<=BOXES!$C$6, I2<=BOXES!$D$6), BOXES!$A$6, BOXES!$A$7))))),BOXES!$A$8)"</td><td>"=MIN(C2:E2)"</td><td>"=MAX(C2:E2)"</td><td>"=SMALL(C2:E2, 2)"</td><td>"=IF(G2+H2+I2>=50%*1265,
IF(AND(G2<=BOXES!$B$2, H2<=BOXES!$C$2, I2<=BOXES!$D$2), BOXES!$A$2,
IF(AND(G2<=BOXES!$B$7, H2<=BOXES!$C$7, I2<=BOXES!$D$7), BOXES!$A$7,
IF(AND(G2<=BOXES!$B$3, H2<=BOXES!$C$3, I2<=BOXES!$D$3), BOXES!$A$3,
IF(AND(G2<=BOXES!$B$8, H2<=BOXES!$C$8, I2<=BOXES!$D$8), BOXES!$A$8,
IF(AND(G2<=BOXES!$B$4, H2<=BOXES!$C$4, I2<=BOXES!$D$4), BOXES!$A$4,
IF(AND(G2<=BOXES!$B$9, H2<=BOXES!$C$9, I2<=BOXES!$D$9), BOXES!$A$9,
IF(AND(G2<=BOXES!$B$5, H2<=BOXES!$C$5, I2<=BOXES!$D$5), BOXES!$A$5,
IF(AND(G2<=BOXES!$B$10, H2<=BOXES!$C$10, I2<=BOXES!$D$10), BOXES!$A$10,
IF(AND(G2<=BOXES!$B$6, H2<=BOXES!$C$6, I2<=BOXES!$D$6), BOXES!$A$6,
IF(AND(G2<=BOXES!$B$11, H2<=BOXES!$C$11, I2<=BOXES!$D$11), BOXES!$A$11,
BOXES!$A$12)))))))))),BOXES!$A$13)"</td></tr>
</table>
J列即應提供的信息,如果該項目是略高於箱尺寸。如果有,它應該在這裏返回信息。
下面的Bin Size選項卡。
可以請你教我是否有可能獲得該函數去,避免嵌套限制?概念
的
你用[match](https://support.office.com/en-us/article/MATCH-function-e8dffd45-c762-47d6-bf89-533f4a37673a)和-1匹配類型試過運氣嗎?類似於你想要完成的事情可以在這裏找到(https://msdn.microsoft.com/en-us/library/cc750573.aspx)(有點過時了)。 – Thomas
是的,這是可能的! –
錯過了你的if語句的第一部分,因爲它被埋在了一些不屬於excel公式的其他編碼中。 –