array-formulas

Arrayformula sum one column until this row

被刻印的时光 ゝ 提交于 2020-01-11 14:32:34
问题 I'm trying to make an array formula which sums up all the rows until this row. For clarification column a will be the input and column b would be the output. I'm looking for a way to do this with an arrayformula. a1:1 b1:1 a2:2 b2:3 a3:5 b3:8 a4:3 b4:11 I tried to use =ARRAYFORMULA(SUM(INDIRECT("F1:"&ADDRESS(ROW(),COLUMN(F2:F))))) but this doesn't work. 回答1: Since OP changed the question with a clarification, A different answer is submitted below: B1: =ARRAYFORMULA(MMULT(transpose(A1:A5)*--IF

Excel min value greater than x returns 0 if no value found?

笑着哭i 提交于 2020-01-11 06:45:09
问题 I am using the following formula: =MIN(IF(A1:A5>B1,A1:A5)) use Ctrl-Shift-Enter My value for B1 is 10 and my array is {1,5,4,2,7} so in this case no value is greater than 10. The problem is that excel returns 0 as the result of the empty set which is a problem as 0 is not greater than 10. In this case, I can test if the result 0 is greater than 10 and see that the result is invalid, however, if B1 is -10 for an array of {-15,-24,-11,-37-60} than the 0 seems like a valid value when no correct

How to automatically split one row into different rows in Google Sheets?

醉酒当歌 提交于 2020-01-05 07:03:36
问题 I'm trying to split one row in Google Sheets into different rows depending on its content. Here's an example: Name | Ticker | Categories Bitcoin | BTC | currency; store-of-value; trust layer; smart contracts; cross-industry Ripple | XRP | currency; cross-industry Into: Name | Ticker | Categories Bitcoin | BTC | currency Bitcoin | BTC | store-of-value Bitcoin | BTC | trust layer Bitcoin | BTC | smart contracts Bitcoin | BTC | cross industry Ripple | XRP | currency Ripple | XRP | cross-industry

Using REGEXEXTRACT in an array, searching multiple columns

爱⌒轻易说出口 提交于 2020-01-05 04:57:16
问题 Can someone please tell me what I am doing wrong in this formula? =ARRAYFORMULA(REGEXEXTRACT((A2:A&"")+(B2:B&"")+(C2:C&"")), "02(\d{14})37") I'm trying to extract a 14 digit number that sits between 02 and 37 that may be in columnA, columnB or columnC. I've tried this also, with the expected result showing on the first row only: =ARRAYFORMULA(REGEXEXTRACT(textjoin(" ",true,A2:C),"02(\d{6,14})37")) I'm really confuzzled. 回答1: it needs to be like this: =ARRAYFORMULA(IFERROR(IFERROR(IFERROR

How to use AVERAGEIFS within ARRAYFORMULA

余生长醉 提交于 2020-01-05 04:11:26
问题 I am trying to use AVERAGEIFS inside ARRAYFORMULA . Looking at other questions, I have come to the conclusion that it is not possible without using QUERY function. My intention is to average the values of a column whenever they share the same ID. I think this question comes pretty close to what I need, but I haven't been able to replicate and adapt its solution on my own sheet. In this sheet I show the result I expect (I got it by dragging the formula). I've also reviewed the Query Language

EXCEL- Count instances that have matching combinations

拜拜、爱过 提交于 2020-01-05 03:46:13
问题 I’m pretty good at excel but for some reason can’t find the right solution to this problem (maybe I’m over complicating it): Basically I have 2 columns with info like below: Column 1 Column 2 A Red A Blue A Yellow B Blue B Green B Brown C Red C Blue C Brown What I want is to create a cross tab type of table which counts how many items in column 1 have the correct combination of values in column 2 For instance, I’d expect the result below: Red Blue Brown Red 2 2 1 Red-Red would evaluate to 2

For each cell in a range, if a value in a seperate range is found in the next cell do stuff

僤鯓⒐⒋嵵緔 提交于 2020-01-04 05:27:22
问题 This Macro I have built works but I am hoping for a faster version or a Formula that will do the same in less time. What I Have: For Each cell In Range("Table_Query_1[[#Data],[Reason2]]") For Each PossibleValue In Range("F2", Range("F2").End(xlDown)) If Len(cell) = 0 Then If (InStr(UCase(cell.Offset(0, 1)), UCase(PossibleValue)) <> 0) Then cell.Value = PossibleValue.Value End If Else Exit For End If Next If Len(cell) = 0 Then cell.Value = cell.Offset(0, -1) End If Next The only other way I

Formula to search table and return multiple column headers

回眸只為那壹抹淺笑 提交于 2020-01-03 04:15:09
问题 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)))} 回答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.

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

爱⌒轻易说出口 提交于 2020-01-01 19:30:48
问题 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=.

Query one table and output data into multiple columns

半城伤御伤魂 提交于 2019-12-31 04:28:30
问题 Simply put I am trying to take a single column query result and output it into a 5 wide by × long table. This is how the main table is organized. On separate tabs, I want to list all of the caught and seen Pokemon on their own for easy search. While I can get it to output something like this with =query(NatDex, "Select C Where F <> ''",1) I would like it to output the data something like this for easy reading so it's not eventually 100+ entries long: Bonus points if you can give me formula