array-formulas

How do I use a nested IF(AND) in an Excel array formula?

廉价感情. 提交于 2019-12-10 02:58:55
问题 How do I get a nested 'AND' to work inside 'IF' in an array formula? I reduced my problem to the following example: Note: the above image has been updated to included the array formula curly braces At the top right, we have the search criteria in L3 ("color") and L4 ("shape"). At the left, column D contains working match formulas for both color and shape in the list of items. The first table shows the match formula working properly without using an array formula. The second table shows an

Formula to search table and return multiple column headers

删除回忆录丶 提交于 2019-12-08 18:06:28
I am trying to enter a certain value in a cell, search a table for that value (vertically and horizontally), then return the column header of the columns containing that value. My formula works, but it will only return 1 column header, and I need it to return multiple Formula: {=INDEX(Sheet2!A1:J31,,MAX(IF(Sheet2!A1:J31=B2,COLUMN(Sheet2!A1:J1)-COLUMN(Sheet2!A1)+1)))} I'm not aware of a built in Excel formula that will do this, but this can be accomplished with a user-defined function. Here is an example dataset, showing the results and the formulas used: Here is the code for the user-defined

Google Sheets ArrayFormula with Sumifs

邮差的信 提交于 2019-12-08 15:39:54
问题 Usually don't need help with sheets but I think my brain is imploding from thinking on this too much. Trying to fill an entire column with an array formula that sums values from a separate column based on conditions from two other columns. If that sounds strange just check out this example sheet. Invoices have numbers. Customer payments have "Into" bank accounts and also invoice numbers associated with them so I know which payment corresponds to which invoice. Sometimes payments are made in

Google Sheets: Using ArrayFormula to COUNTIF depending on DATE in RANGE

我怕爱的太早我们不能终老 提交于 2019-12-08 13:34:50
问题 Okay so I have two formulas I would like to use together, one I use to 'SUM' the total of projects from the day before: =ArrayFormula(SUM(1*(INT(Archive!M3:M)=Today()-1))) This will count all projects done from the day before. Now I have several different types of projects, I use the following formula to separate project types and give a grand total: =COUNTIF('V1 Archive'!D:D,"25A") What I would like to do is be able to 'SUM' the total of a specific project from the day before. A few more

Textjoin not ignoring empty cell until enter is pressed a second time

你。 提交于 2019-12-08 06:52:39
问题 I wrote a formula using TEXTJOIN . On my side it worked perfectly but when my colleagues tried to use my spreasheet, it just showed them the series of coma as if the ignore_empty field of TEXTJOIN was set to False . But it's not, it is set to True . When I tried to debug it, I just directly hit ctrl-shift-enter (it's embedded in an array formula) and the problem disappeared. Moreover if I modify the data selected by the formula (to make the value of the cell where there is my textjoin formula

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

南笙酒味 提交于 2019-12-07 12:32:41
问题 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 回答1: Assuming your 2 columns are A and B,

Set ArrayFormula to many Excel cells using VBA

老子叫甜甜 提交于 2019-12-07 00:32:50
问题 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 =

Using COUNTIFS in an array formula

懵懂的女人 提交于 2019-12-06 13:33:48
I'm trying to count the number of times something of a given type occurs and I need this behaviour to automatically expand to inserted rows. Something like: =Arrayformula(COUNTIFS(I:I,I:I,H:H,H:H,G:G,G:G)) The nested countif formula will result in a correct value when used on a single row but currently the array formula is outputting 1 all the way down. My data resembles: Column1 Column2 Column3 Result -------------------------------------------- apple green eaten x orange orange noteaten x apple red eaten x orange orange noteaten x apple green eaten x ... The x column is where the

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

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