如何在 Google Sheets 的查询公式中使用 ABS 等效项?

发布于 2025-01-14 21:58:51 字数 523 浏览 5 评论 0原文

该公式将负数转换为正数,反之亦然,但如何才能使 Col8 中的所有数字都为正数呢?

=query(UNIQUE(IMPORTRANGE("https://docs.google.com/spreadsheets/d/ddddddddddddsssssssssssssssswwwwwwww/edit";"Sheet1!A1:K"));"select Col1, Col2, Col3, Col4, Col5, Col6, Col7, Col8*-1 where Col2 matches '"&B6&"' label Col8*-1 'Qtd' ")

副本

这是工作表的 >ABS() 在这里等效吗?

谢谢你!

The formula converts negative into positive and vice versa, but how can I get all numbers in Col8 to be positive?

=query(UNIQUE(IMPORTRANGE("https://docs.google.com/spreadsheets/d/ddddddddddddsssssssssssssssswwwwwwww/edit";"Sheet1!A1:K"));"select Col1, Col2, Col3, Col4, Col5, Col6, Col7, Col8*-1 where Col2 matches '"&B6&"' label Col8*-1 'Qtd' ")

Here's a copy of the sheet

Would there be an ABS() equivalent here?

Thank you!

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

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

发布评论

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

评论(1

心不设防 2025-01-21 21:58:51

尝试:

=INDEX(QUERY(UNIQUE({
 IMPORTRANGE("1uU9zw9BbXp5hOO1f8fZEcgc8f8u8uZNjoeeuHI3SBpM"; "Sheet1!A1:K")\ABS(
 IMPORTRANGE("1uU9zw9BbXp5hOO1f8fZEcgc8f8u8uZNjoeeuHI3SBpM"; "Sheet1!H1:H"))});
 "select Col1,Col2,Col3,Col4,Col5,Col6,Col7,Col12 
  where Col1 is not null label Col12'Qty'"))

在此输入图像描述

try:

=INDEX(QUERY(UNIQUE({
 IMPORTRANGE("1uU9zw9BbXp5hOO1f8fZEcgc8f8u8uZNjoeeuHI3SBpM"; "Sheet1!A1:K")\ABS(
 IMPORTRANGE("1uU9zw9BbXp5hOO1f8fZEcgc8f8u8uZNjoeeuHI3SBpM"; "Sheet1!H1:H"))});
 "select Col1,Col2,Col3,Col4,Col5,Col6,Col7,Col12 
  where Col1 is not null label Col12'Qty'"))

enter image description here

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