array-formulas

Why does a specific arrayformula not work in google sheets but works fine in excel

允我心安 提交于 2019-12-11 06:49:09
问题 This is in continuation to how to calculate XIRR dynamically in excel and in google sheets The proposed array formula** solution (mentioned below) works perfectly fine in excel =XIRR(INDEX(F:G,N(IF(1,SMALL(IF(B$2:B$8=J2,ROW(B$2:B$8)),ROW(INDEX(A:A,1):INDEX(A:A,COUNTIF(B$2:B$8,J2)))))),N(IF(1,{1,2}))),CHOOSE({1,2},INDEX(A:A,N(IF(1,SMALL(IF(B$2:B$8=J2,ROW(B$2:B$8)),ROW(INDEX(A:A,1):INDEX(A:A,COUNTIF(B$2:B$8,J2))))))),TODAY())) but the same solution refuses to work in google sheets with the

More Efficient Way to Avoid Multiple Calculations?

我与影子孤独终老i 提交于 2019-12-11 06:25:50
问题 I have a lot of these chains in my sheet. Is there a more efficient way than what I am doing? https://docs.google.com/spreadsheets/d/1sm1WLL6CJHckeUE1eyZQSG4CRb35UVxOb1Ymwtf6Yj8/edit?usp=sharing =$A$2+5 =$A$2+15 =$A$2+20 etc. It there a single formula or more efficient one that may reduce calculation time? 回答1: try like this: =ARRAYFORMULA(ROW(A1:A20)*5+A2) 来源: https://stackoverflow.com/questions/57979532/more-efficient-way-to-avoid-multiple-calculations

References changing in Google Sheets with new forms submissions

风流意气都作罢 提交于 2019-12-11 06:07:41
问题 I have a Google sheet that feeds from a Google form and then I use the sheet to make views to show data and graphics on Google sites. I noticed that suddenly the graphics said 'No Data', and when I checked, it seemed that for some reason the ranges that feed such tables had changed their referenced cells to the newest row from the submitted forms instead of retaining the range even if it was fixed. I have no idea why or how this happened, but it happened in different places and different

Remove diacritics via formula on Google Sheets (Part 2)

偶尔善良 提交于 2019-12-11 06:06:44
问题 With the help of a StackOverflow member, we have created a way to remove diacritics from personal names, these diacritics are saved in a list and as they appear in their names, they are removed and converted to common keyboard letters. =ARRAYFORMULA(PROPER(IFERROR(REGEXREPLACE(C2:C, TEXTJOIN("|", 1, A2:A1000), VLOOKUP(REGEXEXTRACT(C2:C, TEXTJOIN("|", 1, A2:A1000)), A2:B1000, 2* SIGN(ROW(A2:A1000)), 0)&""), C2:C))) But ... What happened was that in one of the names instead of the formula

Google spreadsheet query execute for entire column

感情迁移 提交于 2019-12-11 03:17:44
问题 I tried VLOOKUP function for two separate Google spreadsheets but it doesn't support, So I figure it out my required function with a QUERY using a ImportRange function. Here it is: =QUERY( ImportRange( "sheet key" , "Course Data!A2:I4" ) , "select Col2 where Col1 = '" & E2 & "' limit 1" ) This is execute well for selected cell, it return value from the second spreadsheet according to the value of the current sheet E2 cell. What I want to achieve is run this query for entire column (E3, E4, E5

Finding the maximum of minimum values

妖精的绣舞 提交于 2019-12-11 02:18:06
问题 I would like to calculate the maximum value of the minimum values of each row in a spreadsheet (Google Sheets, specifically) that is greater than 0. I hope that makes sense. My data is: 0 6 7 8 1 0 12 21 22 21 0 10 18 24 0 7 9 1 17 0 16 16 20 So, I want an ArrayFormula of some sort that will generate: 1 12 10 1 16 Of which I could then get the maximum. I've read and experienced that the obvious solution doesn't work, which is: =max(ArrayFormula(min(if(A:Z>0,A:Z,""))) The reason being the

Google Spreadsheet vlookup with arrayformula PLUS multiplication of returned value(s)

吃可爱长大的小学妹 提交于 2019-12-11 01:50:10
问题 I have my VLOOKUP with ArrayFormula working thanks to Adam's (AD:AM) brilliantly spelled-out solution (https://productforums.google.com/forum/#!searchin/docs/parallel$20lookup$20solution/docs/36A0epDlIdE/qnywZst0DioJ) So in col J this is what I have: =ArrayFormula(VLOOKUP(H2:H;ProductTable!A2:C;3*SIGN(ROW(H2:H));FALSE)) Works great. However, I would like to then take the returned value(s) from that formula in col J and multiply it against the Qty value(s) that are in row I. Obviously I could

How to insert hyperlink to a cell in Google sheet using formula?

天大地大妈咪最大 提交于 2019-12-11 00:41:44
问题 I am trying to insert a hyperlink to a cell in a fashion that can be replicated using '=MATCH()" function. However, I can't seem to figure out a method to link a cell in Google sheets without using the GID. When I right-click and "Get link to this cell" I get a URL with "#gid=1933185132" in the end. However this has no structure and I can't use it with a MATCH formula and autofill this like I normally do in Excel. https://docs.google.com/spreadsheets/d/sheetkey/edit#gid=1933185132 However if

Present date as first day of the month

扶醉桌前 提交于 2019-12-10 15:14:26
问题 In Google Sheets I'm looking for an array formula to provide the first day of a month for a given date. e.g. If A1 is 1/17/12 20:30 B1 would read 1/1/12 and so on. The formula must keep the date format so that I can sort by date, on column B in this example. 回答1: I think you could just "compose" a new date using the DATE formula. e.g. =Date(Year(A1);Month(A1);1) 回答2: Let me add to contribution from Henrique ... I can use the following arrayformula in cell B1: =ArrayFormula(if(A:A,eomonth(A:A,

Using COUNTIFS in an array formula

自闭症网瘾萝莉.ら 提交于 2019-12-10 10:39:00
问题 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