如何使用其他不同值Xlookup并添加重复的单元格

发布于 2025-02-07 07:47:56 字数 419 浏览 2 评论 0原文

我有这个公式在表格中搜索两个标准(F1& e2或e3,e4 s of),并返回其相应的加仑值。我只想知道是否有可能在日期中有重复的值&板(a4& a5,b4& b5),然后将其相应的加仑值c4& C5进入细胞G3。

这就是我到目前为止所拥有的:

=XLOOKUP($F$1&E3,$A$2:$A$5&$B$2:$B$5,$C$2:$C$5,"",0,1)

”在此处输入图像描述”

I have this formula that searches within a table for two criteria (F1 & E2 or E3, E4 so on) and returns their corresponding Gallon Value. I just want to know if it is possible that should there be duplicate values in Date & Plate (A4 & A5, B4 & B5) then it should add up their corresponding Gallon values C4 & C5 into cell G3.

This is what i have as of now :

=XLOOKUP($F$1&E3,$A$2:$A$5&$B$2:$B$5,$C$2:$C$5,"",0,1)

enter image description here

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

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

发布评论

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

评论(1

或十年 2025-02-14 07:47:56

实际上,您需要sumifs()函数。尝试 -

=SUMIFS($C$2:$C$5,$B$2:$B$5,E2,$A$2:$A$5,$F$1)

如果您想使其更具动态性,则可以尝试 -

=LET(x,UNIQUE(B2:B5),y,SUMIFS(C2:C5,B2:B5,x,A2:A5,F1),CHOOSE({1,2},x,y))

Actually you want SUMIFS() function. Try-

=SUMIFS($C$2:$C$5,$B$2:$B$5,E2,$A$2:$A$5,$F$1)

If you want to make it more dynamic then can try-

=LET(x,UNIQUE(B2:B5),y,SUMIFS(C2:C5,B2:B5,x,A2:A5,F1),CHOOSE({1,2},x,y))

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文