array-formulas

Google Sheet - Transform two columns into one column using arrayformula (more than 50,000 characters)

為{幸葍}努か 提交于 2019-12-05 23:01:15
I'm using Google Sheets and looking for an arrayformula that able to take a list in two columns and arrange it alternately in one column. The sheet contains about 5,000 rows, each row has more than 35 characters. I tried this: =transpose(split(join(" ", query(transpose(B5:C),,50000)), " ")) But then I got this message: Please take a look at the sheet here: https://docs.google.com/spreadsheets/d/11T1Roj1trviOSiiTZS292-4l3oODid7KLi9oGz3Z66o/edit#gid=0 Assuming your 2 columns are A and B, this formula will "interlace" them: =query( sort( {arrayformula({row(A1:A3)*2, A1:A3}); arrayformula({row(B1

Insert an Array Formula via VBA

不问归期 提交于 2019-12-05 13:15:49
问题 I'm using VBA, and I need to insert an array formula (the one that if I'm writing it manually, I'll press Ctrl + Shift + Enter and not just Enter ). When I'm inserting it like a regular formula it doesn't work, neither when I put it with {} around it... What's the correct way of writing that formula using VBA? The formula is this: =INDEX(subset!R1C1:R2472C10,MATCH(1,(RC1=subset!C1)*(RC2=subset!C2)*(RC5=subset!C5)*(RC6=subset!C6),0),10) 回答1: Your looking for the FormulaArray property that you

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

Set ArrayFormula to many Excel cells using VBA

泪湿孤枕 提交于 2019-12-05 05:32:04
I have an array formula that outputs a single value, and I want to give a whole bunch of cells this same array formula. The problem is when I assign the array formula to the range, it interprets the formula in such a way as them all sharing the output of a single call to the array formula, rather than each of them outputting a separate value. To show you what I mean, I'm using the following code: With MarginalData .Range(.Cells(2, 1), .Cells(13, .UsedRange.Columns.Count)).FormulaArray = pullFormula End With What I want , is a result that looks like this: That is what it looks like when I enter

Categorizing bank transactions in Excel

纵饮孤独 提交于 2019-12-05 01:34:20
问题 I have an exported list of bank transactions in Excel, which I'd like to categorize as quickly and simply as possible. I suspect this is possible just with array formulas, but a VBA function would be equally useful. The Scenario My spreadsheet header looks like this: | A | B | C | D | ========================================== | Date | Description | Amount | Category | ------------------------------------------ Date, Description and Amount come pre-populated from my bank. I fill in the

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

ArrayFormula and “AND” Formula in Google Sheets

六眼飞鱼酱① 提交于 2019-12-04 16:09:23
问题 In Google Sheets, when using ArrayFormula with AND formula, I don't get the results as it should be. A|B 2|7 In C1 I put formula as: =and(A1>5,B1>6) then I get True . If in D1 I put formula as: =ArrayFormula(and(A1:A>5,B1:B>6)) I get the results as False . Here are my two questions: Why is ArrayFormula not repeated for all cells in the column? Why do I get true without ArrayFormula and False with Arrayformula ? 回答1: AND doesn't work with that way with Array formulae because it AND s the whole

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}";

formula to pick every pixel in a bitmap without repeating

心不动则不痛 提交于 2019-12-04 07:22:41
I'm looking for an algorithm, I am programming in swift now but pseudocode or any reasonably similar "C family" syntax will do. Imagine a large list of values, such as pixels in a bitmap. You want to pick each one in a visually random order, one at a time, and never pick the same one twice, and always end up picking them all. I used it before in a Fractal generator so that it was not just rendering line by line, but built it up slowly in a stochastic way, but that was long ago, in a Java applet, and I no longer have the code. I do not believe it used any pseudo-random number generator, and the