google-sheets-formula

How to call library function as custom function from spreadsheet formula?

生来就可爱ヽ(ⅴ<●) 提交于 2020-08-26 09:47:25
问题 This might be the same root cause as in How to call a library function from a spreadsheet drop-down menu generated by the same library, but I still wanted to throw it out there in case there was something new or somehow the situation was different. The thing is that I want to keep all my custom functions in a library, then add the library to any given spreadsheet, and be able to reference them from a cell formula. In the library: /** * Returns the parameter * Eg: (16) to 16 * * @param {object

How to find nearest non-blank cell above the current cell?

天涯浪子 提交于 2020-08-21 04:54:22
问题 I have a column of data, and I need to find the previous non-blank cell. For example, if I have the following data: foo - - - - (formula) where - denotes a blank cell, then I want the (formula) cell to find a reference to the cell containing foo no matter how many blank cells are inserted between them. It is possible that new rows with blank cells in the test column could be inserted between the formula row and the previous non-blank row at any time, and the formula should be able to handle

Can I make custom function on google spreadsheet without Google Apps Script?

梦想的初衷 提交于 2020-08-20 07:36:19
问题 I'm using google spreadsheet with Google Apps Script. but it gives me error message too easily. like this Error Script invoked too many times per second for this Google user account. (line 0). Is there any way to avoid the error? (except the way reduce function call) or alternative Spreadsheet program that support Javascript function define? 回答1: As noted in the documentation you can work around this by ensuring that your function supports ranges, and the function on a range. See also the

Google spreadsheet countifs not respecting or condition

半城伤御伤魂 提交于 2020-08-10 18:51:25
问题 I have the following formula: =COUNTIFS(A2:A41, {"CORE", "TRIAL"}) However, the count comes as 7 when it should be 10. There are 7 core and 3 trials. Is there something I am missing? Just for testing, I tried putting TRIAL as first and it counted 3 回答1: Change your formula to =sum(ArrayFormula(COUNTIF(A2:A41, {"CORE", "TRIAL"}))) or use =sumproduct(regexmatch(A2:A41, "CORE|TRIAL")) If you only want exact matches, use =sumproduct(regexmatch(A2:A41, "^CORE|TRIAL$")) See if that helps? 来源: https

How to apply a formula to visible columns only?

百般思念 提交于 2020-08-10 13:15:12
问题 I need the formula to ignore a range if it`s hidden. I know that there is 'SUBTOTAL' that works for rows, but in my case, I need something for columns. I also tried to go with 'CELL("width")' with no luck. Here is the sample spreadsheet: https://docs.google.com/spreadsheets/d/10BNrnAyQw89gy-Sj3CLiz4AgVtFI0AjXTvc0REGGTfY/edit?usp=sharing Is there any other option to ignore hidden columns in a count formula? 来源: https://stackoverflow.com/questions/63241198/how-to-apply-a-formula-to-visible

How to apply a formula to visible columns only?

我只是一个虾纸丫 提交于 2020-08-10 13:14:32
问题 I need the formula to ignore a range if it`s hidden. I know that there is 'SUBTOTAL' that works for rows, but in my case, I need something for columns. I also tried to go with 'CELL("width")' with no luck. Here is the sample spreadsheet: https://docs.google.com/spreadsheets/d/10BNrnAyQw89gy-Sj3CLiz4AgVtFI0AjXTvc0REGGTfY/edit?usp=sharing Is there any other option to ignore hidden columns in a count formula? 来源: https://stackoverflow.com/questions/63241198/how-to-apply-a-formula-to-visible

To display which supplier gives the lowest price [duplicate]

给你一囗甜甜゛ 提交于 2020-07-31 06:09:35
问题 This question already has an answer here : To find the lowest supplier who gives the lowest price [duplicate] (1 answer) Closed 4 days ago . I have a sheet that gives the lowest price among two suppliers. the problem is it displays the value only if both barcode comes in the same row. pls help me to expand this equation that where ever matching barcode comes in the sheet must give me the lowest supplier.supplier column ("K") works only if the same barcode comes in same row ("A" & "C") an eg