google-sheets-formula

google sheets =indirect() on range of cells

久未见 提交于 2019-12-11 03:31:18
问题 I'm wondering if there is a standard function to loop over a range of cells and apply the indirect function on it. I'm trying to build a sheet to cover my expenses by store, month, and category, but as of yet it is hard to expand because I have a function that looks like =INDIRECT(""&$B$3&"!"&concat(A12,$C$1))+INDIRECT(""&$B$4&"!"&concat(A12,$C$1))+INDIRECT(""&$B$5&"!"&concat(A12,$C$1))+INDIRECT(""&$B$6&"!"&concat(A12,$C$1)) where B3:B7 are my stores, and it would be a lot easier to read as:

Is it possible to use simple triggers to increment a cell whenever another cell is edited in google sheets?

走远了吗. 提交于 2019-12-11 03:25:15
问题 Here is the desired behavior: Cell A1 contains a number (0 by default) representing damage taken. Cells B1:D1 contain checkboxes (FALSE by default). When cell B1 is edited (i.e. checked "TRUE"), cell A1 is decreased by 1. Cell B1 is automatically reset to FALSE. If cell A1 is decreased below 0, it is reset to 0). When cell C1 is edited, cell A1 is incremented by 1 and automatically reset to FALSE. When cell D1 is edited, cell A1 is reset to 0. I'm very new to Google Apps Script and recently

Format cell as minutes : seconds in google spreadsheets

南楼画角 提交于 2019-12-11 02:24:12
问题 I wish to record data on the amount of time it takes for me complete a certain programming problem. I am using google spreadsheets to maintain my performance. The issue am facing is that, I want the cells to accept the result as mm:ss , but google sheet is converting it to 12-hr format i.e. hh:mm:ss , how can I stop this from happening? For Eg :- 1:30 gets converted to 1:30:00 AM . 回答1: Update: I found a new way to do it that actually does give you the value you want: =TEXT(TIME(,text(A1,"HH"

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

Formula for summation on amount of equal column values

家住魔仙堡 提交于 2019-12-10 21:17:36
问题 Given a spreadsheet with two columns, say A and B, each containing n values under it, all text; is there a formula that allows me to fill just one cell containing the amount of equal values in columns A and B? Example: A B ----- 1 M M 2 L M 3 L L 4 M M 5 M L ----- 3 Since columns A and B both contain an M in rows 1 and 4, and an L in row 3, the result is (i.e. 2+1). 回答1: A simple solution is to use QUERY function in google spreadsheet: =SUM(QUERY(A1:B5, "Select 1 where A = B")) Or using

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

Formula to auto copy and display cell if contain a specific word

元气小坏坏 提交于 2019-12-08 13:44:47
问题 I have a Google Sheets where I store RSS feeds (in Sheet1). What I would like to do is to create a formula that will, in Sheet2, copy and display all feeds from Sheet1, which contain certain words. Screenshot of example: In this example I would like to copy and display (from Sheet1 to Sheet2) all feeds with the words BLACK and SHIRT, and from here on I would like to auto copy and display feed, every time it will contain this two words. Is this possible and how? 回答1: To return rows that

Find row when Cumulative sum reaches certain value with condition

旧街凉风 提交于 2019-12-08 03:02:48
问题 I have a table with 3 columns Date, Item and Number. Each row indicates how many items of each Item was received on that date. I am trying to find the date on which cumulative sum reaches 100 or more in that month. Each month will have a target for each item which will be saved in another sheet but for simplicity we can assume that its a fixed number of 100. Example Data: Date Item Number 1/2/2018 A 10 2/2/2018 B 10 2/2/2018 A 15 5/2/2018 C 25 6/2/2018 A 50 7/2/2018 B 10 7/2/2018 C 10 8/2

Auto fill a column with formulas when new rows are added

时间秒杀一切 提交于 2019-12-06 16:25:58
I have an automation workflow (Zapier) which adds a new row to a Google Sheets whenever a new card is added in Trello. We use it to track statistics for departments etc. I have some extra fields which transform a date field into things like weeknumber, day, month, year... simple stuff. I need to write a script which looks out for new rows entered into the spreadsheet and then auto-fills the other columns with preset formulas. Example layout: Columns populated via the automation: a,b,d,e Columns to populate via the script. f,g,h,i,j,k I've seen a few scripts that are similar but don't take a

Using COUNTIFS in an array formula

懵懂的女人 提交于 2019-12-06 13:33:48
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 apple red eaten x orange orange noteaten x apple green eaten x ... The x column is where the