array-formulas

How to use ARRAYFORMULA with OFFSET to previous row without getting circular reference error

霸气de小男生 提交于 2021-01-27 23:36:43
问题 Example sheet: https://docs.google.com/spreadsheets/d/14ma-y3esh1S_EkzHpFBvLb0GzDZZiDsSVXFktH3Rr_E/edit?usp=sharing In column B of ItemData sheet, I have achieved the result I want by copying the formula into every cell in the column, but I want to solve this using ArrayFormula instead. In column C I have achieved the same result using ArrayFormula. However, for addition, column C is referring to cells in column B, while column B is referring to cells in column B. I.e. every cell in column B

Combine Text in ArrayFormula

 ̄綄美尐妖づ 提交于 2021-01-27 16:21:16
问题 I have a table using Google Sheets. It has three columns that will always have a null value or a specific value for that column. Each line will have one, two, or three values; it will never have three null values on one line. In the fourth column, I want an ArrayFormula that will combine those values and separate the values with a comma if there is more than one. Here is a photo of what I am trying to accomplish. I've tried several ideas so far and this formula is the closest I've gotten so

Combine Text in ArrayFormula

主宰稳场 提交于 2021-01-27 16:15:31
问题 I have a table using Google Sheets. It has three columns that will always have a null value or a specific value for that column. Each line will have one, two, or three values; it will never have three null values on one line. In the fourth column, I want an ArrayFormula that will combine those values and separate the values with a comma if there is more than one. Here is a photo of what I am trying to accomplish. I've tried several ideas so far and this formula is the closest I've gotten so

ArrayFormula of Average on Infinite Truly Dynamic Range in Google Sheets

爱⌒轻易说出口 提交于 2021-01-25 03:52:22
问题 as per example: A B C D E F G ∞ |======|=======|=====|=====|=====|=====|=====|===== 1 | |AVERAGE| | | | | | |======|=======|=====|=====|=====|=====|=====|===== 2 | xx 1 | | 1 | 2 | 0.5 | 10 | | |======|=======|=====|=====|=====|=====|=====|===== 3 | xx 2 | | 7 | 1 | | | | |======|=======|=====|=====|=====|=====|=====|===== 4 | | | 0 | | | | | |======|=======|=====|=====|=====|=====|=====|===== 5 | xx 3 | | 9 | 8 | 7 | 6 | | |======|=======|=====|=====|=====|=====|=====|===== 6 | xx 4 | | 0 |

Is there a custom function or script that returns gid of a specific sheet in Google Sheets?

跟風遠走 提交于 2021-01-24 09:39:10
问题 I have been poring through the vast sea of knowledge on the Internet to get what I need but to no avail. Context In a single Google Sheets file, I have one master sheet and various other sheets named after the last names of people. In the master sheet, I created a cell in which I can type the name of any person. I would like to look up sheets for multiple individuals, so my search is dynamic. Anyway, let's call this cell the SEARCH CELL. Right next to the SEARCH CELL, I have another cell in

Extract digits from string - Google spreadsheet

冷暖自知 提交于 2021-01-20 15:56:11
问题 In Google spreadsheets, I need a formula to extract all digits (0 to 9) contained into an arbitrary string, that might contain any possible character and put them into a single cell. Examples (Input -> Output) d32Ελληνικάfe9j.r/3-fF66 -> 329366 h01j2j3jFxF$$4j5j6j7j8j9 -> 0123456789 回答1: You may replace all non-digit characters using the \D+ regex and an empty string replacement with =REGEXREPLACE(A11,"\D+", "") or with casting it to a number: =VALUE(REGEXREPLACE(A11,"\D+", "")) 回答2: These

Extract digits from string - Google spreadsheet

早过忘川 提交于 2021-01-20 15:50:33
问题 In Google spreadsheets, I need a formula to extract all digits (0 to 9) contained into an arbitrary string, that might contain any possible character and put them into a single cell. Examples (Input -> Output) d32Ελληνικάfe9j.r/3-fF66 -> 329366 h01j2j3jFxF$$4j5j6j7j8j9 -> 0123456789 回答1: You may replace all non-digit characters using the \D+ regex and an empty string replacement with =REGEXREPLACE(A11,"\D+", "") or with casting it to a number: =VALUE(REGEXREPLACE(A11,"\D+", "")) 回答2: These

A way to maintain cell references when doing dynamic running total

不打扰是莪最后的温柔 提交于 2021-01-05 10:57:40
问题 I have a running total of another dynamically generated column (I7:I). I computed it using mmult() . The only problem with this is using indirect means the references break if I move data around in my sheet say by adding or removing rows above 7. If I use I7:I as my reference, it says the resulting array is too large. Is there a better way of doing this? =ArrayFormula( MMULT(TRANSPOSE((ROW(indirect("I7:I" & max(ArrayFormula(ROW(I6:I)*(I6:I <> "")))) )<=TRANSPOSE(ROW(indirect("I7:I" & max

Formula to create multiple possible results

廉价感情. 提交于 2021-01-05 08:58:19
问题 The spreadsheet I am devising is to help me with the scoring of a football (or soccer depending where you're from) forum game I run. The idea is that each player picks 10 football teams and they get a point for each goal scored. However, they also pick one team which they think will not score any goals. If their team doesn't score they get 3 points but if the team does score they lose a point for every goal the team scores. For example - Example A) The player picks Man Utd to not score a goal

Formula to create multiple possible results

自古美人都是妖i 提交于 2021-01-05 08:56:56
问题 The spreadsheet I am devising is to help me with the scoring of a football (or soccer depending where you're from) forum game I run. The idea is that each player picks 10 football teams and they get a point for each goal scored. However, they also pick one team which they think will not score any goals. If their team doesn't score they get 3 points but if the team does score they lose a point for every goal the team scores. For example - Example A) The player picks Man Utd to not score a goal