google-sheets-formula

How to get a matrix with the row numbers for every cell of the original matrix?

白昼怎懂夜的黑 提交于 2020-06-28 06:58:09
问题 Stumbled upon a strange behavior. This formula: =ARRAYFORMULA(ROW($A$1:$E$5)) Returns a 5 element column with the row numbers from 1 to 5. I thought that ARRAYFORMULA would iterate through every cell in the range specified and execute the ROW() on it - resulting in a new range of the same size (5 columns, 5 rows), but with the row numbers in cells. For example =ARRAYFORMULA(ISBLANK($A$1:$E$5)) returns a 5 on 5 range. I found a way to force the desired behavior (see the answer below), but is

Return cell content based on max value of other column in Google Sheets

橙三吉。 提交于 2020-06-27 18:55:10
问题 In Google Sheets, I have a table with dynamic cells that count the number of occurrences in a feed from Google Forms. At the left, in Column A there are names of items, and the columns at the right count how many times they are listed in the responses from the forms, so this values change as more responses are added. I am trying to make a report that mentions which item had the most instances per column. The formula I used initially works: =INDEX(INDIRECT("A$3:A$6"), 1, MATCH(MAX(B3:B6), B3

Google Sheets Arrayformula for maxifs

夙愿已清 提交于 2020-06-27 16:24:10
问题 G'day people, I am a long time supporter/reader but this is my first time posting on Stackoverflow so please bear with me. Example of the Sheet I am working in =if(E2="",,If(maxifs($E:$E,$K:$K,K2)=E2,K2,"")) I am a little stumped on converting this maxifs formula above that I am trying to convert to an arrayformula in Google Sheets. This formula checks to ensure E2 (timestamp) is not blank and then compares then looks all over the timestamp column for a newer timestamp for a distinct

Google Sheets Arrayformula for maxifs

六月ゝ 毕业季﹏ 提交于 2020-06-27 16:24:05
问题 G'day people, I am a long time supporter/reader but this is my first time posting on Stackoverflow so please bear with me. Example of the Sheet I am working in =if(E2="",,If(maxifs($E:$E,$K:$K,K2)=E2,K2,"")) I am a little stumped on converting this maxifs formula above that I am trying to convert to an arrayformula in Google Sheets. This formula checks to ensure E2 (timestamp) is not blank and then compares then looks all over the timestamp column for a newer timestamp for a distinct

You do not have permission to use copyTo

北城余情 提交于 2020-06-18 12:45:47
问题 I'm trying to copy a range from one sheet to another ( whilst preserving the formulas ). I wrote a simple script using copyTo : function copyRangeAcrossSheets(source_sheet,source_range,target_sheet,target_range) { var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); var source_sheet = spreadsheet.getSheetByName(source_sheet); var target_sheet = spreadsheet.getSheetByName(target_sheet); var source_range = source_sheet.getRange(source_range); var target_range = target_sheet.getRange(target

in Google Apps Script; using Regular Expression & Conditional formatting - to create a IPv4 address validator / checker

这一生的挚爱 提交于 2020-06-17 03:42:29
问题 in Google Apps Script; using Regular Expression & Conditional formatting - to create a IPv4 address validaton / checker 1. VALIDATING the input with regular expression : I try to make a script to get feedback of a validator, to check if the input an IP addresses is. regular expression pattern : cell ' ip!I12 ' named ' REGEXP_IP_pattern ' : ^((((25[0-5])|(2[0-4][0-9])|([01]?[0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|([01]?[0-9]{1,2}))) reg exp demo : https://regexr.com/54fon - works fine (in

Google Sheets: count numbers of HYPERLINKS where value > 0

本小妞迷上赌 提交于 2020-06-17 02:05:05
问题 I have a range of cells in Google Sheets Some of these cells contain values (numbers) some with and others without HYPERLINKS I need to count the number of hyperlinks for this range of cells if the value > 0 This function works fine, but does not include any cell-values Counting hyperlinks on Google Sheets formula 回答1: You want to calculate the number of cells which have the formulas of =HYPERLINK() and the value more than 0 . This is run for one row and also there are the cells which have no

Replace Content of a cell based on a list of options in Google Sheets

谁说我不能喝 提交于 2020-06-17 00:55:14
问题 For years I have been using a very long formula to help me achieve what I am going to ask here. Basically, every month I download my Credit Card statement and use a bunch of formulas to sum it up in a better way to import into my accounting software. What my formulas do is that it reads the Description in each row and based on the content of that row it rewrites that description. For example: In my credit card it may say "Starbucks Main St.", so it looks for that information in a list and if

Replace Content of a cell based on a list of options in Google Sheets

吃可爱长大的小学妹 提交于 2020-06-17 00:52:13
问题 For years I have been using a very long formula to help me achieve what I am going to ask here. Basically, every month I download my Credit Card statement and use a bunch of formulas to sum it up in a better way to import into my accounting software. What my formulas do is that it reads the Description in each row and based on the content of that row it rewrites that description. For example: In my credit card it may say "Starbucks Main St.", so it looks for that information in a list and if

Replace Content of a cell based on a list of options in Google Sheets

﹥>﹥吖頭↗ 提交于 2020-06-17 00:51:26
问题 For years I have been using a very long formula to help me achieve what I am going to ask here. Basically, every month I download my Credit Card statement and use a bunch of formulas to sum it up in a better way to import into my accounting software. What my formulas do is that it reads the Description in each row and based on the content of that row it rewrites that description. For example: In my credit card it may say "Starbucks Main St.", so it looks for that information in a list and if