array-formulas

ArrayFormula a Filter in a Join (Google Spreadsheets)

孤街醉人 提交于 2019-12-01 08:05:57
问题 I've done a lengthy search and couldn't find what I'm looking for. Maybe someone out there can kindly help? I have this formula in my Google Spreadsheet (I will explain what it does below): =Join(" ",FILTER(Sheet1!B:B;Sheet1!A:A=A1)) In Sheet 1 is a table: Column A is first names (e.g. 'James') and Column B is some comment (e.g. 'Headache'). James (or anyone else) may have multiple rows with different comments in each one (e.g James has 2 rows, one saying 'Headache' and another saying 'Knee

iterate row by row COUNTIF using ArrayFormula on Google Sheets

半城伤御伤魂 提交于 2019-11-30 15:40:09
I am trying to iterate a COUNTIF formula that counts the number of cells in each row containing numbers greater than 4. I am trying to use ArrayFormula to do this but it isn't working. Unfortunately it counts ALL the cells matching the condition across the entire range B2:G39 resulting in 26 being entered in each row of column K rather than row by row count i.e. number of cells >4 in B2:G2 entered in K2, number of cells >4 in B3:G3 entered in K3 This is the formula =ARRAY_CONSTRAIN(arrayformula( if( row(H:H)=1, "Number of cells >4",COUNTIF(A2:G39,">4"))),39,1) Here is a spreadsheet that

Getting the count and unique values of a column of comma separated values?

[亡魂溺海] 提交于 2019-11-30 14:40:21
Supposing all I have is the column A below + + A | B | C +--------------|---------|----------+ | | X, Y, Z | X | 3 | | X, Z | Y | 2 | | X, Y | Z | 2 + + How do I generate columns B and C - where the B column grabs the unique elements from A, and the C column generates a count of those values. =ArrayFormula(QUERY(TRANSPOSE(SPLIT(JOIN(",",A:A),",")&{"";""}),"select Col1, count(Col2) group by Col1 label count(Col2) ''",0)) QUERY function TRANSPOSE function SPLIT function JOIN function Without hidden cells is possible to do it with an alternative method than the one proposed by Adam (that did not

Array formula on Excel for Mac

孤者浪人 提交于 2019-11-30 11:44:32
I need to call LINEST in Excel 2011 for Mac, I would say - this was a detective story. My laziness, my curiosity, all was here! I had a homework from university course to use LINEST. I even stopped trying to do so on MAC, because after googling I could not find any solution how to do it. (I have tried EACH AND EVERY combination of Fn Ctrl Alt Cmd Return !) Finally, I found a solution here on stack overflow! I want to mention it again, as it was a long time I spent looking for the solution. I have spent 4 days outside of home, to use just windows PC where it is easy as a pie - F2 , CTRL + SHIFT

Array formula on Excel for Mac

若如初见. 提交于 2019-11-29 17:50:45
问题 I need to call LINEST in Excel 2011 for Mac, I would say - this was a detective story. My laziness, my curiosity, all was here! I had a homework from university course to use LINEST. I even stopped trying to do so on MAC, because after googling I could not find any solution how to do it. (I have tried EACH AND EVERY combination of Fn Ctrl Alt Cmd Return !) Finally, I found a solution here on stack overflow! I want to mention it again, as it was a long time I spent looking for the solution. I

ArrayFormula is breaking the getLastRow() funtion. Possible workarounds?

ぃ、小莉子 提交于 2019-11-29 16:40:25
In my spreadsheet, I have a running script, which is using the getLastRow() function as an essential part of its logic. Ever since I applied the array formula in one of my columns, the getLastRow() function doesn't work properly. It seems that the array formula is "applying" all the way to the bottom of the sheet even when there are no other values in the other columns and thus, getLastRow() is returning the last row where there is an array formula, instead of the actual non-empty row. Writing a slow function which checks which cells are empty is not an option for me, since the script will run

Make Google Spreadsheet Formula Repeat Infinitely

烈酒焚心 提交于 2019-11-28 18:39:10
Okay so I have a Google Form that dumps info into a spreadsheet. On each line I need to have a simple calculation done. The problem is I can't figure out how to get it to repeat a formula on every new line as new lines are added. Yes I know how to use the fill handle to copy formulas down and what not, but I want it to automatically add the formula instead of me manually copying it. For example this is being used to track time so there is a cell for In Time and a cell for Out Time on each row. I want to have a column called Time Spent that will subtract their in time from the out time to

Doing an array formula lookup

喜夏-厌秋 提交于 2019-11-28 13:10:32
I have a list of data like this: Name | Number Bob | 300 Joe | 200 Jane | 400 Sisqo | 450 Jill | 500 There's about 62 rows of this, all numbers which can be different, some repeated. My goal is to basically add a column which contains all the list of people who are at 400 or above. So that it looks like this: Name Jane Sisqo Jill What I have is: {=iferror(INDEX($A$2:$B$6, SMALL(IF($B$2:$B$6 >= 400, $B$2:$B$6,), ROW(1:1)), 1), "")} What I imagine this is doing: 1) The small function is looking in range b2:b6, and because this is an array formula, looks at each cell in B2:B6 to see if its

Is there a script to bypass 50000 characters for in-cell formula?

…衆ロ難τιáo~ 提交于 2019-11-28 06:23:32
问题 I have this (insanely) long formula I need to run in Google Sheets, and I came across the limit error: There was a problem Your input contains more than the maximum of 50000 characters in a single cell. Is there a workaround for this? my formula is: =ARRAYFORMULA(SPLIT(QUERY({B!A1:A100; ........ ; CA!DZ1:DZ100}, "select * where Col1 is not null order by Col1 asc", 0), " ")) full formula is: pastebin.com/raw/ZCkZahpw apologies for Pastebin... I got a few errors here too: note 1: due to fact

How to use Excel's array-formulas for a UDF to read each cell correctly?

♀尐吖头ヾ 提交于 2019-11-27 21:52:24
问题 G'Day, I have a question more towards helping myself understand how Excel's array-formulas (Control+Shift+Enter) can read each cell dynamically into the formula. I made an simplified example to show you what I mean. I created a small fictional farm that has some animals, listed by names and will provide the sound of what the animal makes. In the next column I made a User Defined Function called MakesSound which takes an input of what animal it is and respond the sound that animal it makes. As