named-ranges

How to protect ranges per specific users in google sheet?

感情迁移 提交于 2021-02-11 13:32:08
问题 I am trying to apply protection on all sheets and certain ranges using a google script, for every sheet in its workbook (and can be applied on new added sheets via a trigger later) the problem is, I want to assign different ranges to different users after protecting the whole sheet from anyone, but the people allowed to edit on their ranges! I can't seem to know why it doesn't work.. It works oppositely , allowing all users to edit all ranges but the protected ones. I want the first editor to

Using query, Import Range and named range to either label the named range or ignore the header

ⅰ亾dé卋堺 提交于 2021-02-10 19:27:55
问题 Context So I am trying to put together some data to run a machine learning model. I need all the data in one google sheet. But I am importing the data from a different spreadsheet saved elsewhere. This is my current formula =QUERY(IMPORTRANGE("link", "AvevaReturns")) Screen reader support enabled. It returns the spreadsheet but with the column label which is located in row 3 (two rows above it are blank). I have tried this, this and this to no avail. Problem I don't want the header included.

Using query, Import Range and named range to either label the named range or ignore the header

假装没事ソ 提交于 2021-02-10 19:26:29
问题 Context So I am trying to put together some data to run a machine learning model. I need all the data in one google sheet. But I am importing the data from a different spreadsheet saved elsewhere. This is my current formula =QUERY(IMPORTRANGE("link", "AvevaReturns")) Screen reader support enabled. It returns the spreadsheet but with the column label which is located in row 3 (two rows above it are blank). I have tried this, this and this to no avail. Problem I don't want the header included.

Copy all named ranges to another workbook

蓝咒 提交于 2021-02-08 10:13:00
问题 So I've been fussing with the Microsoft Support answer to this question but their code is simply not working. I'm confused about how they do not define x, or maybe x always equals a variable in VBA? Anyway, I am trying to copy all named ranges in one workbook and bring them over to another workbook. I have to do this for 50-odd workbooks and there are 30-40 named ranges in the base workbook. I really do not want to have to copy-paste these buggers manually. Here's the code they gave for this

Automating named Range function in google sheets

删除回忆录丶 提交于 2021-02-08 09:14:51
问题 Context So I have a spreadsheet with 11+ sheets, though will be adding more later. I want to dynamically name the columns using named range. I created a macro script and have been using this. Only the problem is for every sheet, I have to go to the script and change the name of the named range: function NamedRanges() { var spreadsheet = SpreadsheetApp.getActive(); spreadsheet.setNamedRange('TrainlineDate', spreadsheet.getRange('A:A')); spreadsheet.setNamedRange('TrainlinePrice', spreadsheet

Automating named Range function in google sheets

浪子不回头ぞ 提交于 2021-02-08 09:08:47
问题 Context So I have a spreadsheet with 11+ sheets, though will be adding more later. I want to dynamically name the columns using named range. I created a macro script and have been using this. Only the problem is for every sheet, I have to go to the script and change the name of the named range: function NamedRanges() { var spreadsheet = SpreadsheetApp.getActive(); spreadsheet.setNamedRange('TrainlineDate', spreadsheet.getRange('A:A')); spreadsheet.setNamedRange('TrainlinePrice', spreadsheet

Automating named Range function in google sheets

只愿长相守 提交于 2021-02-08 09:08:33
问题 Context So I have a spreadsheet with 11+ sheets, though will be adding more later. I want to dynamically name the columns using named range. I created a macro script and have been using this. Only the problem is for every sheet, I have to go to the script and change the name of the named range: function NamedRanges() { var spreadsheet = SpreadsheetApp.getActive(); spreadsheet.setNamedRange('TrainlineDate', spreadsheet.getRange('A:A')); spreadsheet.setNamedRange('TrainlinePrice', spreadsheet

How to select a named range in Google Sheets' query?

北战南征 提交于 2021-02-08 06:49:56
问题 I'm trying to set up a query using named ranges, is it possible to select a named range within a query? I've tried the following: =QUERY(NamedRange, "select '"&NamedRange2&"' where '"&NamedRange3&"' contains '"&B2&"' ") I want to be able to use named ranges instead of having to use select A where... or select col1 where... since the spreadsheet is constantly going through revisions where columns change so I want to keep the query dynamic so it doesn't constantly need updating. 回答1: partially.

Get all Workbook Range Names sorted by Order in Worksheet with VBA?

走远了吗. 提交于 2021-01-29 08:11:53
问题 I am coding a number of forms (possibly ultimately many dozens, all variants of one main template) into separate flat databases. Each form has over 2 - 300 fields that are unique entries. After assigning range names to all these fields, when I get a list of Range Names using the Formulas->Use in Formula->Paste Names->List , I get all the Named Ranges but they are sorted alphabetically. I need these in the order they appear in the Data Entry Form, sorted by row, then column. By using the Right