根据Google表中的单元格值将行转置为新列

发布于 2025-02-08 22:44:15 字数 430 浏览 3 评论 0原文

如果E列中的单词说“餐饮”,我目前正在尝试进行行并将其转换为另一个表格。我似乎无法弄清楚如何使公式抓住当前的行,我想知道我是否必须编写一个应用程序脚本。我已经尝试过,如果用transpose表示陈述,则无济于事。我尝试运行查询,这也没有帮助。

要清楚,我希望该公式查看E列是否说餐饮,并在其上进行餐饮单词的行,并将其垂直转置到Sheet2中。如果可以在转移时消除空字段,那就更好了。

这是我正在与之合作的表格的示例。

I am currently trying to take a row and transpose it into another sheet if the word in column E says "catering". I can't seem to figure out how to get the formula to grab the current row and I am wondering if I am going to have to write an app script instead. I have tried and IF statement with TRANSPOSE to no avail. I have tried running a query and that hasn't helped either.

To be clear I want the formula to see if column E says catering and if it does then it takes the row with the word catering and transposes it vertically into sheet2. If empty fields could be eliminated on transfer that would be even better.

Here is an example of the sheet I am working with.

https://docs.google.com/spreadsheets/d/1C6cPwtg0CZVfhjZm3KIxGJzcQaOfWCNXMWSKOei-zx0/edit?usp=sharing

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

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

发布评论

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

评论(3

莳間冲淡了誓言ζ 2025-02-15 22:44:15

尝试:

=QUERY(Sheet1!1:996, "where E is not null and E = 'Catering' order by A", 1)

“

try:

=QUERY(Sheet1!1:996, "where E is not null and E = 'Catering' order by A", 1)

enter image description here

束缚m 2025-02-15 22:44:15

当您使用标准餐饮时,您不需要使用不是null。 transpose是什么意思?尝试-

=QUERY(Sheet1!1:996, "Select * Where E = 'Catering' Order by A",1)

While your are using criteria Catering then you no need use is not null. What do you mean by transpose? Try-

=QUERY(Sheet1!1:996, "Select * Where E = 'Catering' Order by A",1)
℡Ms空城旧梦 2025-02-15 22:44:15

我正在玩提供的公式。我认为这会解决问题:
= transpose(query(Sheet1!1:996,“选择 * WHERE E ='catering'sord a a a”,0))>

I'm playing around with the provided formula. I think this will do the trick:
=TRANSPOSE(QUERY(Sheet1!1:996, "Select * Where E = 'Catering' Order by A",0))

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