English 中文(简体)
• 如何在Query获得ROW NUMBER基地
原标题:How to get the ROW NUMBER base on Query

谷歌如何 我要说的是,根据请求,我可以找到人数。

页: 1

=QUERY(Datas!A:A; "select A WHERE A LIKE  Test "))

在B栏中,我怎么能有row number?

例如,如果问询产生第9行的结果,那就应该给我9。

感谢。

问题回答

你们可以打上第一种论点中的滚动号码,在争.中挑选。

=QUERY({ARRAYFORMULA(ROW(Datas!A:A))Datas!A:A}; "select Col2, Col1 WHERE Col2 LIKE  Test ")) 

Add an Additional Column with Filter() and Row()

你只是需要制定两列公式,把目前的问答公式放在第一栏。 关于第二种公式,你应使用<代码>Row(>)来获取编号和Filter(>,以根据您所要求的检索词(此处为“试验”)对原始数据进行过滤。

Your formula should look like this:

={QUERY(Datas!A:A; "select A WHERE A LIKE  Test ")FILTER(ROW(Datas!A:A); Datas!A:A="Test")}

Output:

抽样数据(数据表):

“entergraph

该公式将产生以下产出:

“entergraph

For Regular Expressions:

为在公式中添加<条码>LIKE概念,可使用<条码>。 这将根据你的定期表述过滤你的数据。

你们的新职能就是这样:

={ARRAYFORMULA(SUBSTITUTE(REGEXEXTRACT(QUERY(Datas!A:A; "select A WHERE A LIKE  %FR SPORTS | TV% "); "tvg-name=(.*)tvg-logo");"""";""))FILTER(ROW(Datas!A:A); REGEXMATCH(Datas!A:A; "FR SPORTS | TV"))}

New Output:

“enterography





相关问题
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 ...

热门标签