Google Sheets:筛选;忽略直到一个词

huangapple go评论63阅读模式
英文:

Google Sheets: Filter; ignore until a word

问题

I understand that you want a way to apply a condition to ignore words until it encounters FALSE and stop on TRUE. However, I can't directly manipulate or execute code. If you're working with Google Sheets, you may need to consult the Sheets documentation or seek help from a developer familiar with Sheets scripting. If you have specific questions about how to implement this condition, feel free to ask and I can provide guidance in a general sense.

英文:

I have multiple columns of keywords that I'm trying to filter certain words from which I have flattened. This has already been done with the following formula:

=iferror(filter(flatten(A8:A,G8:G,M8:M),flatten(A8:A,G8:G,M8:M)<>""),"")

However, I'd like a way to make a condition to ignore words until it comes across FALSE and stop on TRUE.

1
2
FALSE
3
4
5
6
7
8
9
10
TRUE
11
12
13
14
15
16
17
TRUE
18
19
20
21
22
23
24
25
26
27
28
29
FALSE
30
31
32
33
34
35
36
37
38
39

From this list, it should go down this list and ignore every word until it comes across FALSE, then filter all words in until it comes across TRUE, then ignore every word until it comes across FALSE. So in this list above, the final result should be:

3
4
5
6
7
8
9
10
30
31
32
33
34
35
36
37
38
39

Is it possible to add a filter condition that satisfies this request?

Edit: Here's a sheet to play around with.
https://docs.google.com/spreadsheets/d/1URoMNuISdfqohoOpc9p15LjKPE5qMNoFxfORLhjeVVQ/edit#gid=0

答案1

得分: 3

=let(Σ,tocol({A:A,G:G,M:M},1,1),
filter(Σ,scan(,Σ,lambda(a,c,ifs(c=FALSE,1,c=TRUE,,1,a))),Σ<>FALSE))

英文:

You may try:

=let(Σ,tocol({A:A,G:G,M:M},1,1),
       filter(Σ,scan(,Σ,lambda(a,c,ifs(c=FALSE,1,c=TRUE,,1,a))),Σ&lt;&gt;FALSE))

Google Sheets:筛选;忽略直到一个词

huangapple
  • 本文由 发表于 2023年5月6日 16:46:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/76187964.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定