google-sheets-formula

Why is REGEXEXTRACT returning a single value when it is expected to return an array of 1 row and multiple columns?

Deadly 提交于 2019-12-06 12:00:29
问题 The matrix management feature in Google Spreadsheets is convenient and combined with functions that handle regular expressions like REGEXMATCH and REGEXEXTRACT, among others, makes it especially useful. I have a case in which I do not know what is due that does not give the expected result. Here's what I'm trying to do: Spreadsheet Settings Regional Settings: Mexico, use . (dot) as decimal separator. Entry A1: abcde Formula B1: =ArrayFormula(REGEXEXTRACT(A1,{".{1}",".{2}"})) Expected result

Find row when Cumulative sum reaches certain value with condition

二次信任 提交于 2019-12-06 11:43:42
I have a table with 3 columns Date, Item and Number. Each row indicates how many items of each Item was received on that date. I am trying to find the date on which cumulative sum reaches 100 or more in that month. Each month will have a target for each item which will be saved in another sheet but for simplicity we can assume that its a fixed number of 100. Example Data: Date Item Number 1/2/2018 A 10 2/2/2018 B 10 2/2/2018 A 15 5/2/2018 C 25 6/2/2018 A 50 7/2/2018 B 10 7/2/2018 C 10 8/2/2018 A 25 9/2/2018 A 20 I am looking for the formula which should act on the data similar to above and

VLOOKUP within IMPORTRANGE

谁说胖子不能爱 提交于 2019-12-06 10:15:41
问题 I'm trying this function on Google spreadsheet without success in order to gather in a sheet a value after a VLOOKUP: =importrange("otherurl";cell("address";vlookup(value("201608"),"All_nodevice!$A$16:$C$1000",2,false))) I get a general error. Does IMPORTRANGE support this kind of functionality? What I need to do is to extract data from the cell of another sheet that has the value 201608 on its left. Since IMORTRANGE wants a cell pointer such as $A$12, I thought to do these steps: search with

Google Sheets formula match multiple criteria

喜夏-厌秋 提交于 2019-12-06 04:37:28
I have a spreadsheet like the one shown in the image. What I would like to do is generate a formula that will count how many times MALEs from NEW YORK choose the BLUE color. In column D, the user can enter 1-3 different colors. Column B will be ignored in this case. Can anyone help me with the formula? Try this formula in Google docs =ARRAYFORMULA(sum(if(A2:A4="Male",if(C2:C4="New York",If(isnumber(search("Blue",D2:D4)),1))))) you can expand it to as many rows as you need 来源: https://stackoverflow.com/questions/12254637/google-sheets-formula-match-multiple-criteria

Multiple criteria for sumif in Google Sheets

拟墨画扇 提交于 2019-12-05 07:45:37
I'm trying to calculate the sum of column in google spreadsheet when DataSheet!G:G="solved" AND DataSheet!C:C="May" it must calculate the sum of DataSheet!H:H. I have tried =ARRAYFORMULA(SUM(((DataSheet!C:C)="May") * ((DataSheet!G:G)="solved") * (DataSheet!H:H) )) But it returns N/A can anyone help me with this. This formula would only returns N/A if a value on your H column is N/A . Have you checked that? And, are you sure it's N/A and not other kind of error? If so, can you please share your spreadsheet, or a sample of it so I can take a look for myself, because I can't reproduce this. 来源:

Using MIN() inside ARRAYFORMULA()

左心房为你撑大大i 提交于 2019-12-05 06:49:13
I've seen some examples of using SUM() inside an ARRAYFORMULA() in Google Spreadsheets (and oddly enough, they all seem like workarounds) but I can't figure out how to apply them to using MIN() instead. Let's say I have columns A , B and C and I just want to get the result of MIN(A:C) on the D column, just for the three cells that would match each row. The straightforward way should be ARRAYFORMULA(MIN(A1:C)) but surely enough that doesn't work. How can I programmatically calculate the MIN() of some cells within a row, for all the rows in a Google Spreadsheet? MIN() always returns a single

Remove all diacritics without script with a single formula for use in all cells without making calls to Google API

老子叫甜甜 提交于 2019-12-04 18:55:13
I created a formula that removes diacritics but needs to make calls through an ImportDATA . If I use this formula on every cell I need, it will exceed the call limit I can make. And it will lock the spreadsheet. =ArrayFormula(if(exact(A1,Upper(A1)),Upper(VLOOKUP(A1,split(trim(transpose(split(query(SUBSTITUTE(regexreplace(regexreplace(query(IMPORTDATA("https://docs.oracle.com/cd/E29584_01/webhelp/mdex_basicDev/src/rbdv_chars_mapping.html"),"Select Col1 where Col1 contains '<td'",),"<td class=.+>","")&"~"&MOD(ROW(A:A),4),".+~[01]$",""),"~3","@"),"",9^6),"@"))),"~2"),2,0)),split(trim(transpose

Why is REGEXEXTRACT returning a single value when it is expected to return an array of 1 row and multiple columns?

杀马特。学长 韩版系。学妹 提交于 2019-12-04 15:32:43
The matrix management feature in Google Spreadsheets is convenient and combined with functions that handle regular expressions like REGEXMATCH and REGEXEXTRACT, among others, makes it especially useful. I have a case in which I do not know what is due that does not give the expected result. Here's what I'm trying to do: Spreadsheet Settings Regional Settings: Mexico, use . (dot) as decimal separator. Entry A1: abcde Formula B1: =ArrayFormula(REGEXEXTRACT(A1,{".{1}",".{2}"})) Expected result B1: a B2: ab Obtained result B1: a B2: Known workaround =ArrayFormula(TRANSPOSE(REGEXEXTRACT(A1,{".{1}";

Merge Multiple Google Spreadsheets into One Sheet

北城以北 提交于 2019-12-04 04:06:02
问题 I have a couple of Google Spreadsheets. This Spreadsheets have the same columns number and columns names, but diffrent data. I want to merge all of this Spreadsheets into one Sheet. The closest thing i found is this: http://ctrlq.org/code/19980-merge-google-spreadsheets , but it make new Spreadsheet with diffrent Sheet for every Sheets on Spreadsheets. I want just one Sheet with all data. Do you guys have idea how to do that? 回答1: Short answer Use embedded arrays. The simplest form for

IMPORTRANGE with condition

久未见 提交于 2019-12-03 23:06:00
Using Google Sheets I want, within the same document, to import data from one sheet to another using IMPORTRANGE with conditions. I have tried unsuccessfully: =IF(IMPORTRANGE("https:URL","Inc Database!B2:B300")="permanent",IMPORTRANGE("htps://URL","Inc Database!A2:A300"),"") and =QUERY(IMPORTRANGE("https:/URL", "Inc Database!A2:A300"),"SELECT Col1 WHERE Col1 <> 'permanent'") and =FILTER(IMPORTRANGE("URL","Inc Database!A1:A250"),IMPORTRANGE("URL","Inc Database!B1:B250"="venture permanent")) I want the function to say: Import any values from range A that meet criterion "permanent" in range B. A