具有多个标准(包括单个单元格)的 SUMIFS
我正在整理朋友的体育博彩电子表格,并尝试让我的 SUMIFS 公式发挥作用。
在数据参考表上,我尝试根据三个不同的标准对单元格进行求和。 玩家、投注类型和现场/赛前比赛。
这是我想出的公式。
球员 - 包蒂斯塔-阿古特, 投注类型 - 连本带利, Live/Pre - 赛前
当我使用这个公式时,效果非常好。
=sumifs(Main!H$3:H,Main!D$3:D,"*Bautista-Agut*",Main!$E$3:$E,$D35,Main!$C$3:$C,$E35)
但是,我不想返回 260 个单元格中的每一个,并用“**”更改每个玩家的名字。我想简单地引用 c 列中的单元格。
当我尝试引用其中包含玩家姓名的单元格时,公式不起作用。我认为这是因为在主电子表格上,我引用的列中的某些单元格中有多个玩家,并且该单元格仅查找一个玩家姓名。
是否有另一种方法通过引用单元格来执行这些 SUMIFS?我已经尝试过嵌套在 SUMIFS 中的 REGEXMATCH()、INDEX()、MATCH() 但仍然无法让它们工作。
您可以在此处查看我的电子表格。
感谢您花时间阅读我的问题。另外,如果有任何关于我如何构建数据的提示,我很想听听。我对这些类型的公式是全新的。
I'm organizing a buddy's sports betting spreadsheet and am trying to get my SUMIFS formula to work.
On the Data Ref sheet, I'm trying to sum a cell based on three different criteria. Player, Bet Type, and Live/Pre Match.
Here is the formula I have come up with.
Player - Bautista-Agut,
Bet Type - Parlay,
Live/Pre - Pre Match
When I use this formula it works perfectly.
=sumifs(Main!H$3:H,Main!D$3:D,"*Bautista-Agut*",Main!$E$3:$E,$D35,Main!$C$3:$C,$E35)
However, I don't want to have to go back through each of the 260 cells and change the name of each player with "**". I want to simply reference the cell in column c.
When I try to reference a cell with the player's name in it the formula doesn't work. I think this is because on the main spreadsheet some cells in the column I'm referencing has more than one player in it and the cell is only looking for the one player name.
Is there another way to perform these SUMIFS by referencing a cell? I've tried REGEXMATCH(), INDEX(), MATCH() nested within the SUMIFS but still couldn't get them to work.
You can view my spreadsheet here.
Thanks for taking the time to read my question. Also, if there are any tips on how I've structured my data I'd love to hear them. I'm brand new to these types of formulas.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将名称替换为
"*"&C2&"*"
:代替:
使用:
You can replace the name with
"*"&C2&"*"
:Instead of:
Use: