数据公式

发布于 2025-01-24 07:23:48 字数 516 浏览 2 评论 0原文

我希望获得一些帮助制定阵列的帮助,以更简单地查看我的数据来自Google表格。这是有人可以帮助我的吗?我有点熟悉,但是恐怕这样做的功能将非常复杂。

在我的Google表格上,我有一个问题,即人们可能会或可能不会多次填写。为了让他们这样做,我不得不在表格上反复复制问题。如果他们需要继续回答这个问题,他们将继续删除复制的版本。如果完成了,他们会选择“否”,并指示完成表格。

在我的进气表上,此数据通过大约30列列出,以说明该问题的每个复制版本。我希望订购填写的列,然后删除列,如果它们留为空白。这确实有助于该电子表格的可读性。

这是表格的副本:

I am hoping to get some help formulating an array to more concisely view my data coming in from a google form. Is this something someone can help me with? I'm slightly familiar, but the function to do this is going to be quite complicated, I'm afraid.

On my Google form, I have a question that people may or may not fill out multiple times. In order to let them do that, I've had to copy the question repeatedly on the form. If they need to keep answering the question, they continue down the copied versions. If they're done, they select "no," and are directed to finish the form.

On my intake spreadsheet, this data comes through as about 30 different columns to account for each of the copied versions of that question. I'm hoping to order the columns that are filled out and then delete columns if they are left blank. It would really help the readability of this spreadsheet.

Here is a copy of the Sheet:
https://docs.google.com/spreadsheets/d/1_W8PpwiMa60sPY8YF2pTEx-QPIMexqs5ZizVPiWgxMQ/edit?usp=sharing

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

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

发布评论

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

评论(1

人心善变 2025-01-31 07:23:48

尝试:

=ARRAYFORMULA(QUERY(SUBSTITUTE(SPLIT(FLATTEN(FLATTEN(QUERY(TRANSPOSE(SUBSTITUTE(
 IF('Form Responses 1'!A2:C="",,"¤"&TO_TEXT('Form Responses 1'!A2:C)), " ", "×")),,9^9))&FILTER(SUBSTITUTE(
 IF('Form Responses 1'!D2:AT="","¤×","¤"&'Form Responses 1'!D2:AT), " ", "×"), 
 MOD(COLUMN('Form Responses 1'!D2:AT), 4)=0)&FILTER(
 IF('Form Responses 1'!D2:AT="","¤×","¤"&'Form Responses 1'!D2:AT), 
 MOD(COLUMN('Form Responses 1'!D2:AT)-1, 4)=0)&FILTER(
 IF('Form Responses 1'!D2:AT="","¤×","¤"&'Form Responses 1'!D2:AT), 
 MOD(COLUMN('Form Responses 1'!D2:AT)-2, 4)=0)&FLATTEN(QUERY(TRANSPOSE(SUBSTITUTE(
 IF('Form Responses 1'!AV2:BA="",,"¤"&TO_TEXT('Form Responses 1'!AV2:BA)), 
 " ", "×")),,9^9))), "¤"), "×", " "), "where not Col4 starts with ' '"))

“在此处输入图像描述“

具有条件格式:

=INDEX(COUNTIFS($A:$A, $A1, ROW(A:A), "<="&ROW(A1)))>1

演示表


更新:

=ARRAYFORMULA(QUERY(SUBSTITUTE(SPLIT(FLATTEN(FLATTEN(QUERY(TRANSPOSE(SUBSTITUTE(
 IF('Form Responses 1'!A2:C="",,"¤"&TO_TEXT('Form Responses 1'!A2:C)), " ", "×")),,9^9))&FILTER(SUBSTITUTE(
 IF('Form Responses 1'!D2:AT="","¤×","¤"&'Form Responses 1'!D2:AT), " ", "×"), 
 MOD(COLUMN('Form Responses 1'!D2:AT), 4)=0)&FILTER(
 IF('Form Responses 1'!D2:AT="","¤×","¤"&'Form Responses 1'!D2:AT), 
 MOD(COLUMN('Form Responses 1'!D2:AT)-1, 4)=0)&FILTER(
 IF('Form Responses 1'!D2:AT="","¤×","¤"&'Form Responses 1'!D2:AT), 
 MOD(COLUMN('Form Responses 1'!D2:AT)-2, 4)=0)&FLATTEN(QUERY(TRANSPOSE(SUBSTITUTE(
 IF('Form Responses 1'!AV2:BA="","¤ ","¤"&TO_TEXT('Form Responses 1'!AV2:BA)), 
 " ", "×")),,9^9))), "¤"), "×", " "), "where not Col4 starts with ' '"))

try:

=ARRAYFORMULA(QUERY(SUBSTITUTE(SPLIT(FLATTEN(FLATTEN(QUERY(TRANSPOSE(SUBSTITUTE(
 IF('Form Responses 1'!A2:C="",,"¤"&TO_TEXT('Form Responses 1'!A2:C)), " ", "×")),,9^9))&FILTER(SUBSTITUTE(
 IF('Form Responses 1'!D2:AT="","¤×","¤"&'Form Responses 1'!D2:AT), " ", "×"), 
 MOD(COLUMN('Form Responses 1'!D2:AT), 4)=0)&FILTER(
 IF('Form Responses 1'!D2:AT="","¤×","¤"&'Form Responses 1'!D2:AT), 
 MOD(COLUMN('Form Responses 1'!D2:AT)-1, 4)=0)&FILTER(
 IF('Form Responses 1'!D2:AT="","¤×","¤"&'Form Responses 1'!D2:AT), 
 MOD(COLUMN('Form Responses 1'!D2:AT)-2, 4)=0)&FLATTEN(QUERY(TRANSPOSE(SUBSTITUTE(
 IF('Form Responses 1'!AV2:BA="",,"¤"&TO_TEXT('Form Responses 1'!AV2:BA)), 
 " ", "×")),,9^9))), "¤"), "×", " "), "where not Col4 starts with ' '"))

enter image description here

with conditional formatting:

=INDEX(COUNTIFS($A:$A, $A1, ROW(A:A), "<="&ROW(A1)))>1

demo sheet


update:

=ARRAYFORMULA(QUERY(SUBSTITUTE(SPLIT(FLATTEN(FLATTEN(QUERY(TRANSPOSE(SUBSTITUTE(
 IF('Form Responses 1'!A2:C="",,"¤"&TO_TEXT('Form Responses 1'!A2:C)), " ", "×")),,9^9))&FILTER(SUBSTITUTE(
 IF('Form Responses 1'!D2:AT="","¤×","¤"&'Form Responses 1'!D2:AT), " ", "×"), 
 MOD(COLUMN('Form Responses 1'!D2:AT), 4)=0)&FILTER(
 IF('Form Responses 1'!D2:AT="","¤×","¤"&'Form Responses 1'!D2:AT), 
 MOD(COLUMN('Form Responses 1'!D2:AT)-1, 4)=0)&FILTER(
 IF('Form Responses 1'!D2:AT="","¤×","¤"&'Form Responses 1'!D2:AT), 
 MOD(COLUMN('Form Responses 1'!D2:AT)-2, 4)=0)&FLATTEN(QUERY(TRANSPOSE(SUBSTITUTE(
 IF('Form Responses 1'!AV2:BA="","¤ ","¤"&TO_TEXT('Form Responses 1'!AV2:BA)), 
 " ", "×")),,9^9))), "¤"), "×", " "), "where not Col4 starts with ' '"))
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文