根据条件添加一排数据 - Google表

发布于 2025-01-17 23:43:49 字数 618 浏览 2 评论 0 原文

我正在尝试创建一个公式,根据另一个单元格中的值添加一行数据。到目前为止,我只设法创建了一个可以复制数据行的公式,但我认为我没有走上正确的道路。

https://docs.google.com/spreadsheets/d/1J0ATk-aoEN7FHhLaGjxWZQx6n0sPAPTIGKNofdotP-w/edit?usp=sharing

在此处输入图像描述

每行均由唯一的订单号组成,如果购买的商品超过 1 件,则该订单号会重复,然后在 C 列中指定物品。我想为每个订单添加一个附加行,其中在“物品名称”列中包含“运费”一词,但仅当运费 > 0 时,我还想要运费出现在附加行上。

对此的任何帮助将不胜感激!

I'm trying to create a formula that adds a row of data based on the value in another cell. So far I've only managed to create a formula that will duplicate the row of data but I don't think I'm on the right track with this.

https://docs.google.com/spreadsheets/d/1J0ATk-aoEN7FHhLaGjxWZQx6n0sPAPTIGKNofdotP-w/edit?usp=sharing

enter image description here

Each row is made up of a unique order number which repeats if there's more than 1 item purchased, the items are then specified in column C. I would like to add an additional line to each order that contains the word "Shipping" in the Item Name column but only when the shipping cost is >0, I would also like the shipping cost to appear on the additional row.

Any help at all on this would be hugely appreciated!

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

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

发布评论

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

评论(1

听风念你 2025-01-24 23:43:49

尝试:

=SORT({UNIQUE(QUERY(QUERY({A3:C}, 
 "select Col1-0.99999999999,'Shipping',Col3 
  where Col3>0"), "offset 1", 0)); A3:C}, 1, 0)

在此输入图像描述

try:

=SORT({UNIQUE(QUERY(QUERY({A3:C}, 
 "select Col1-0.99999999999,'Shipping',Col3 
  where Col3>0"), "offset 1", 0)); A3:C}, 1, 0)

enter image description here

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