array-formulas

Google sheets - join one value to each value in comma separated list and generate a single list of the results

安稳与你 提交于 2021-02-10 05:12:32
问题 I have a list like the following in Google Sheets (2 columns) _A_ _B_________________________________ _1_ 932 a@email.com,b@email.com _2_ 343 c@email.com,d@email.com,e@email.com _3_ 198 _4_ 197 f@email.com _5_ 231 g@email.com,h@email.com I want to generate a single list like this... _A_ _B_________ _1_ 932 a@email.com _2_ 932 b@email.com _3_ 343 c@email.com _4_ 343 d@email.com _5_ 343 e@email.com _6_ 197 f@email.com _7_ 231 g@email.com _8_ 231 h@email.com So far, I've managed to make this in

Create List of unique elements and display group membership parsed by commas and en-dash

落花浮王杯 提交于 2021-02-07 04:36:11
问题 I'm an Excel VBA newbie and I'm trying to figure out how to create a unique list of names in one column with associated group names in the next column. For example, the Name "cds" is a member of the following groups: "group1","group3","group4","group5", and "group6". I would like the output to show: |Column D | Column E | cds group1, group3–group6 I did find a Macro on a different message board that displays the unique element with the associated Group Number(s) instead of Group Name(s) .

Google Sheet formula for cumulative sum with condition

时间秒杀一切 提交于 2021-02-05 11:27:28
问题 I have a Google Sheet with the following layout: Number | Counted? | Cumulative Total 4 | Y | 4 2 | | 6 9 | Y | 15 ... | ... | ... The first cell in the Cumulative Total column is populated with this formula: =ArrayFormula((SUMIF(ROW(C2:C1000),"<="&ROW(C2:1000),C2:C1000) However this counts all rows in the 'Number' column. How can I make the Cumulative Total only count rows where the Counted? cell is Y ? 回答1: Try this in C2 and copy down: = N(C1) + A2 * (B2 = "Y") Update Doesn't seem to work

How to display a personalized message when I use a query-importrange in Sheets

血红的双手。 提交于 2021-02-05 08:18:12
问题 I'm using a query function with importrange but I need a personalized message when query couldn't find anything in the database. Currently I'm using this formula. =QUERY( { IMPORTRANGE("url", "'Parte 1'!A1:AH"); IMPORTRANGE("url", "'Parte 2'!A1:AH"); IMPORTRANGE("url", "'Parte 3'!A1:AH"); IMPORTRANGE("url", "'Parte 4'!A1:AH") }, "Select Col2, Col1, Col34, Col24, Col3, Col4, Col5, Col6, Col11, Col7, Col8, Col9, Col10, Col12, Col13, Col14, Col15, Col20, Col21, Col22, Col23 Where Col10="&$C$1&"

Transform one to many data to columns

狂风中的少年 提交于 2021-02-05 08:10:52
问题 Given this data: How do I transform it to look like this: There are two columns in the data source, key ( title ) and value ( responsibility ). I need to transform it such that we have the key column ( title ) and then n columns where n is the highest number of value a key has, eg 3 in the picture above. Hence the columns should be: Title, 1, 2, 3 . The values in each column 1, 2, 3 should be corresponding to values in the original data. Any combination of formula is welcomed - I believe a

Comma separated list into matched columns pairings

 ̄綄美尐妖づ 提交于 2021-02-05 07:45:10
问题 I thought I was a decent Sheets jockey, but here's a toughie. I'd like to turn the left into the right using just a formula Sample also at: https://docs.google.com/spreadsheets/d/1JgDZOV_K7SbOrCb27Z5K2XUBcrtq99GTCa3-BM2pOD0 The closest I found was this (Separating Comma List into Cells with Formula) but it doesn't also do the matching. 回答1: alternative by @Matt:King: =ARRAYFORMULA(QUERY(VLOOKUP(SEQUENCE(COUNTA(A2:A)* COLUMNS(SPLIT(B2:B, ",")), 1, 0)/ COLUMNS(SPLIT(B2:B, ","))+2, {ROW(A:A), A

Google Sheets cell info

一笑奈何 提交于 2021-02-04 08:25:34
问题 I am doing a ledger for accounting purposes. I have it set up like a checkbook registry. It has 4 columns: Date, Description, Amount and Balance. The formula set up in the last column (Balance) is set up to add the number in the "Amount" column to the balance in the last line entry. The formula is copied down the page in the last column. What I would like to do, is only have a number in that column if there is an entry on that line. Here is my question: Is there a way to hide the number in

Subtotals with ArrayFormula()

别说谁变了你拦得住时间么 提交于 2021-01-29 08:54:04
问题 I've created a simple table and trying to split data with subtotals. A indicates the subtotal lines. B contains the rows number for previous subtotal. This is just extra field to simplify formulas. C Contains some amounts. D Contains subtotals of amounts between previous and current subtotal line. The subtotal formula has the following view: =ArrayFormula( IF($A2:$A; MMULT( ($B2:$B < TRANSPOSE(ROW($A2:$A))) * (TRANSPOSE(ROW($A2:$A)) < ROW($A2:$A)); IF(ISNUMBER(C2:C); C2:C; 0) ); ) ) The

Array Formula with AverageIF of a row

大兔子大兔子 提交于 2021-01-29 08:35:44
问题 I have a formula in a Google Sheet that is averaging the values in a row... =AVERAGEIF(A2:L2,"<>0") Simple, right? However, I cannot figure out how to get the ARRAYFORMULA to work for this. =ARRAYFORMULA(AVERAGEIF(A2:L,"<>0") That formula only averages all of the cells in the range, instead of returning the average for each row. What am I missing? 回答1: you were close. try: =ARRAYFORMULA(QUERY(TRANSPOSE(QUERY(TRANSPOSE(A2:L), "select "&TEXTJOIN(",", 1, IF(LEN(A2:A), "avg(Col"&ROW(A2:A)-ROW(A2)

Google Sheets Text Join to join character from columns into row

别等时光非礼了梦想. 提交于 2021-01-29 06:22:55
问题 have data like this and want result like this using this formula: =ARRAYFORMULA(REGEXREPLACE(TRIM(SPLIT(TRANSPOSE(QUERY(QUERY( IF(D2:D<>"", {C2:C&"♠", D2:D&","}, ), "select max(Col2) where Col1 is not null group by Col2 pivot Col1") ,,999^99)), "♠")), ",$", )) make the result like this Can someone figure it out, How to fix this formula? Thanks 来源: https://stackoverflow.com/questions/62670569/google-sheets-text-join-to-join-character-from-columns-into-row