索引&符合多个标准

发布于 2025-02-07 11:34:41 字数 1079 浏览 1 评论 0原文

我一直在努力弄清楚我

在这里做错了什么的解释:

  1. 这是客户需要猜测4个条件的游戏(服装,品牌,颜色,价格,价格)
  2. 我必须在两个工作表之间匹配,这是客户的猜测和列表(这是标准),
  3. 它将仅显示2个结果( bingo,再试一次在黄色列中),
  4. 标准是猜测< em>服装,品牌,颜色需要正确正确(如列表工作表中所示)
  5. price 它可以是其他值,但不少于/超过5个
=IF(ABS(INDEX(list!D:D,MATCH(A2,list!A:A,0),MATCH(B2,list!B:B,0),MATCH(C2,list!C:C,0))-D2)<=5,"bingo",IF(ABS(INDEX(list!F:F,MATCH(A2,list!A:A,0),MATCH(B2,list!B:B,0),MATCH(C2,list!E:E,0))-D2)<=5,"bingo","try again"))
  • ,上面是公式我使用的是,但是结果错误
  • 如果正确执行的结果,则结果就像在 yelld linte
  • 注释列橙色亮点不涉及它只是仅仅是可选的说明,您可以理解

“客户的猜测”

“

列表

I have been trying to figure it out for what I was doing wrong

Here the explanation for what I am currently doing :

  1. It is a game that customer need to guess for 4 condition (outfit,brand,color,price)
  2. I have to match between 2 worksheets which is customer's guessing and list (which is criteria)
  3. it going to show only 2 result (bingo,try again like in yellow column)
  4. the criteria is guessing for outfit,brand,color need to be exactly correct (as shown in list-worksheet)
  5. for price it can be the other values but not less/more than 5
=IF(ABS(INDEX(list!D:D,MATCH(A2,list!A:A,0),MATCH(B2,list!B:B,0),MATCH(C2,list!C:C,0))-D2)<=5,"bingo",IF(ABS(INDEX(list!F:F,MATCH(A2,list!A:A,0),MATCH(B2,list!B:B,0),MATCH(C2,list!E:E,0))-D2)<=5,"bingo","try again"))
  • the above is formula that I use but it turned out error
  • if doing correctly the result would be like in yellow column
  • Note column and orange highlights does not involve it's just optional explanation for your understanding

Customer's guessing

list

list

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

赠意 2025-02-14 11:34:41

因此,您遇到问题的主要原因是因为您的list工作表被严重设置。 Excel使用扁平文件类型的数据结构运行最佳。应该对此进行重新格式化:

”在此处输入图像描述”

然后您可以设置猜测游戏并使用简单的sumifs公式:

“在此处输入映像”

在猜测游戏工作表的单元格E2中,公式为:

=IF(ABS(D2-SUMIFS(list!D:D,list!A:A,A2,list!B:B,B2,list!C:C,C2))<5,"Bingo!","Try again")

So the main reason you're running into issues is because your list worksheet is setup terribly. Excel runs best with a flat-file type data structure. It should be reformatted to this:

enter image description here

Then you can setup your guessing game and use a simple SUMIFS formula:

enter image description here

In cell E2 of the guessing game worksheet, the formula is:

=IF(ABS(D2-SUMIFS(list!D:D,list!A:A,A2,list!B:B,B2,list!C:C,C2))<5,"Bingo!","Try again")
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文