google-sheets-formula

Google Sheets Summing a cell over a changing number of sheets

坚强是说给别人听的谎言 提交于 2020-07-08 02:52:49
问题 I am trying to convert a Spreadsheet from Excel to Google Sheets. Most formulas have worked as expected, with the exception of this formula: =SUM('J Slater:Job Sheet'!C6) I am using it to sum a specific cell over a range of sheets this formula allows sheets to be added between the range an also be added to the sum cell without any change to the formula. I can't find a way of replicating this in Google Sheets. 回答1: You can do this with custom functions in Google sheets: Script: /** * @returns

How to count the number of cells which contain specific text using Google Sheet Scripts?

谁说我不能喝 提交于 2020-07-03 13:00:40
问题 How to count the number of cells which contain specific text using Google sheet scripts? Currently I'am using the following script to count the number of cells which contain specific text, for example cells which contain: 'Complete' or 'Not Complete'. function COUNT_TEXT_ACROSS_SHEETS(sheetNames, range, text) { sheetNames = sheetNames.split(','); var count = 0; sheetNames.forEach(function(sheetName) { var sheet = SpreadsheetApp.getActive().getSheetByName(sheetName); var values = sheet

How to count the number of cells which contain specific text using Google Sheet Scripts?

偶尔善良 提交于 2020-07-03 13:00:08
问题 How to count the number of cells which contain specific text using Google sheet scripts? Currently I'am using the following script to count the number of cells which contain specific text, for example cells which contain: 'Complete' or 'Not Complete'. function COUNT_TEXT_ACROSS_SHEETS(sheetNames, range, text) { sheetNames = sheetNames.split(','); var count = 0; sheetNames.forEach(function(sheetName) { var sheet = SpreadsheetApp.getActive().getSheetByName(sheetName); var values = sheet

Union multiple ranges in google sheets with programmatic lookup

北战南征 提交于 2020-07-03 09:35:04
问题 I have a google sheet with a dynamically changing number of worksheets within it. I'd like to be able to automatically union all worksheets that included in a named range that has the worksheet names. I have a manual formula that is working and will union all data into a single worksheet. I'd like to make this computed from the named range. UNION FORMULA ={QUERY('Sheet1'!A2:L, "select * where A != ''");QUERY('Sheet2'!A2:L, "select * where A != ''")} I also have a named range in another sheet

Union multiple ranges in google sheets with programmatic lookup

馋奶兔 提交于 2020-07-03 09:34:08
问题 I have a google sheet with a dynamically changing number of worksheets within it. I'd like to be able to automatically union all worksheets that included in a named range that has the worksheet names. I have a manual formula that is working and will union all data into a single worksheet. I'd like to make this computed from the named range. UNION FORMULA ={QUERY('Sheet1'!A2:L, "select * where A != ''");QUERY('Sheet2'!A2:L, "select * where A != ''")} I also have a named range in another sheet

How do I get the formula separator in a script?

末鹿安然 提交于 2020-07-03 05:16:24
问题 I have a basic Google Sheets script and as part of the HTML sidebar I show the user the formula to type in; e.g. =myformula("bob", "ross") . This works for people in the U.S. and a lot of other countries but there are quite a few countries that use ; instead, so the formula looks like =myformula("bob"; "ross") . I know I can probably get the locale of the spreadsheet via a script but is there a way to get whether I should put a , or a ; ? Thanks! 回答1: ; is universally accepted(except in case

Google Sheet use Importxml error could not fetch url

落花浮王杯 提交于 2020-07-03 05:05:11
问题 I want to get price data on this website (https://tarkov-market.com/item/Pack_of_sugar) But it doesn't work =IMPORTXML("https://tarkov-market.com/item/Pack_of_sugar","//*[@id='__layout']/div/div[1]/div/div[4]/div[1]/div[2]/div[1]/div[2]") 回答1: You want to retrieve the price like 55,500₽ from the URL of https://tarkov-market.com/item/Pack_of_sugar and put to a cell on Google Spreadsheet. I could understand like this. If my understanding is correct, how about this answer? Issue and workaround:

Get value of same cell from multiple sheets

自古美人都是妖i 提交于 2020-06-29 06:44:13
问题 I'd like to get the value of cell A1 from multiple tabs in my sheet. I attempted to use INDIRECT , only to be reminded that it wouldn't work in an ARRAYFORMULA . Is there some sort of "makeshifty" formula that would do the same thing? This is what I originally attempted: =ArrayFormula(IF(LEN(A2:A),INDIRECT(A2:A&"!A1"),)) Column A is a select list of the tab names in my sheet. So the first instance works, but of course, it doesn't populate down the column as I had hoped. I realize I can just

How can I get text from a cell using the select statement of the query function in Google Sheets?

痞子三分冷 提交于 2020-06-28 08:34:58
问题 I try to get some data from tab A to tab B using the query function. This all works fine untill I include some data of tab B into the object in the query function. The thing is, I want to create a scoring sheet that calculates the constructor points based of the first sheet with the driver standings. So tab A looks something like this: Peter Wright - Team Fast Racers - 85 Cameron Bright - Team Quickies - 60 Marc Feiner - Team Fast Racers - 20 In this example the number correspond to a total

How can I get text from a cell using the select statement of the query function in Google Sheets?

ε祈祈猫儿з 提交于 2020-06-28 08:34:12
问题 I try to get some data from tab A to tab B using the query function. This all works fine untill I include some data of tab B into the object in the query function. The thing is, I want to create a scoring sheet that calculates the constructor points based of the first sheet with the driver standings. So tab A looks something like this: Peter Wright - Team Fast Racers - 85 Cameron Bright - Team Quickies - 60 Marc Feiner - Team Fast Racers - 20 In this example the number correspond to a total