English 中文(简体)
如何在谷歌谢物中写出一个ARRAYFORMULA,根据谷歌提交的形式产生独特的字母数字产出?
原标题:How to write an ARRAYFORMULA in Google Sheets that generates unique alphanumeric outputs based on Google Forms submissions?

我正试图在谷歌谢茨书写ARRAYFORMULA功能,使通过谷歌表格提交的条目有一个标签制度。 我希望每个表格的甲型数字数据输出都输入电子表格。 每一条目都将属于20个“类别”或标题之一(由表格答复确定),每个条目都有自己的编号系统。 为了说明:第一个指定为“HA”的条目将具有“HA001”产出,下一个指定“HA001”的产出是“HA002”。 但是,第一个被指定为“CP”的条目同样具有“CP001”的产出,而不论谷歌表格的提交顺序如何。

我曾多次尝试,利用ROW、COUNTIF和MATCH(都属于ARRAYFORMULA)。 例如:

= ARRAYFORMULA(IFS(ROW(A:A)=1,“Temp Box ID”, LEN(A:A)=0, IFERROR(1/0),LEN(A:A)>1,(D:D&text(row(A:A)+1-match(D:D:D:D:D,0)),“00000”

此处D栏是“类别”(如上所述,“HA”或“CP”)。 但是,特定“类别”(此处为“CA”)的第二次出现在“CA00003”而不是“CA00002”。

enter image description here

问题回答

您可尝试以下公式:

=MAP(D2:INDEX(D2:D,COUNTA(D2:D)),LAMBDA(variable,variable&RIGHT("00000"&COUNTIFS(D2:variable,variable),5)))

“在座的影像描述”/</a





相关问题
How to use year counter google app script?

I need an urgent help i have data as follows in a google sheet i need to add a year counter to the column d as follows using google apps script

Google Spreadsheet multiple column filter using OR

I have a Google Spreadsheet with 3 columns that are either blank or have a value. I want to get the count of the number of rows that has A and either B or C populated. If I were writing a SQL query ...

Run Google Apps Script on Google-Spreadsheet event?

If I create a Google apps script, can I hook it up to Google spreadsheet to run based on an event, or must I manually invoke it? I don t know if Google Sheets supports any events. For example: a ...

How do I insert a row in to a Google spreadsheet using c#

I ve seen; Accessing Google Spreadsheets with C# using Google Data API and http://code.google.com/apis/spreadsheets/data/2.0/developers_guide_dotnet.html#CreatingRows However i m still having ...

using Zend_Gdata_Spreadsheets for public spreadsheets?

I have this code which is working, to load a Google Spreadsheet and load some data from it. If the spreadsheet in question is public, how do i modify the code to not require a username/password? $key=...

Programatically updating a Google spreadsheet

I ve got a pre-existing Google spreadsheet. Each month I update this document. I ve got a template workseet in the spreadseet that I d like to clone and then update. I d prefer to clone the ...

热门标签