简体   繁体   English

我正在学习并尝试在 excel 中使用带有 AND、OR、NOT function 的多个 IFS,但它返回了 #VALUE

[英]I am learning and trying to use multiple IFS with AND, OR, NOT function in excel, but it was returning #VALUE

This is the formula that I made:这是我制作的公式:

=IF(AND(ISNUMBER(SEARCH("Tip Top";E4));ISNUMBER(SEARCH("Hari Hari";E4));F4>25);10000*F4;5000*F4);IF(AND(NOT(ISNUMBER(SEARCH("Tip Top";E4)));NOT(ISNUMBER(SEARCH("Hari Hari";E4)));F4>25);15000*(F4/6);(F4/6)*5000)

I have tried to modify the formula, but it gives error:我试图修改公式,但它给出了错误:

'You've entered too many arguments for this function' '您为此功能输入了太多 arguments'

I am trying to return this:我试图返回这个:

-Daily Incentive for SPG's in Tip Top & Hari Hari: 10.000 IDR/sachet in case sales > 25 sachets, 5.000 IDR/sachet in case sales < 25 sachets. - SPG 在 Tip Top 和 Hari Hari 的每日奖励:10.000 IDR/小袋销售 > 25 小包,5.000 IDR/小包销售 < 25 小包。

-Daily Incentive for SPG's in all other stores: 15.000 IDR for every 6 sachets sold in case sales > 25 sachets, 5.000 IDR for every 6 sachet solds in case sales < 25 sachets. -所有其他商店的 SPG 俱乐部每日奖励:如果销售量 > 25 包,每售出 6 包 15.000 IDR,如果销售量 < 25 包,每售出 6 包 5.000 IDR。

Can anyone tell me where I did wrong?谁能告诉我我哪里做错了? The error value and the needs to really solve this problem always linger in my mind.错误值和真正解决这个问题的需要一直萦绕在我的脑海中。 I think I can't sleep peacefully if I hadn't found where I did wrong.我想如果我没有找到我做错的地方,我就无法安然入睡。 Thank you so much, your guidance is much appreciated!非常感谢,非常感谢您的指导!

whats going on at 10000F4;5000F4? 10000F4;5000F4 发生了什么? missing < or > or =缺少 < 或 > 或 =

Writing long equations in excel if difficult to trouble shoot.如果难以排除故障,请在 excel 中编写长方程。 I recommend copy pieces of the formula and place them into other cells and see if it returns what you expect.我建议复制公式的一部分并将它们放入其他单元格中,看看它是否返回您期望的结果。

For instance I would copy a segment like below and put an "=" in another cell and paste:例如,我会复制如下所示的段,然后在另一个单元格中放置一个“=”并粘贴:

=NOT(ISNUMBER(SEARCH("Hari Hari";E4)))

repeat the process until you find the error.重复该过程,直到找到错误。

Other methods to resolve this is to use ifs(), switch(), or stop using excel functions and use power query for excel or other tools.解决此问题的其他方法是使用 ifs()、switch() 或停止使用 excel 函数并使用 excel 或其他工具的电源查询。

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

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