Get Range & Values - Apps Script | Spreadsheet Service ~ Episode 1.3

  Рет қаралды 24,253

David Weiss

David Weiss

Күн бұрын

Пікірлер: 23
@alx1st
@alx1st 3 жыл бұрын
Thank you so much for this tutorial!, I finally get it, I'll keep watching the rest of the tutorial!
@DavidWeissProgramming
@DavidWeissProgramming 3 жыл бұрын
Thank you! Keep me updated on your progress!
@fabriciosouza408
@fabriciosouza408 4 жыл бұрын
Bro, this course is so awsome! It really helps a lot!
@keithwallace7327
@keithwallace7327 Жыл бұрын
Hugely appreciate! So happy I found this. Just checked out all catalogue. Prolific! Already subbed and about to start consuming.
@hannanzubair9633
@hannanzubair9633 2 жыл бұрын
Awesome video!
@arielzabatecuizon5147
@arielzabatecuizon5147 3 жыл бұрын
thanks more power. keep doing some tutorials. it helps so much.
@JAWSFREE
@JAWSFREE 9 ай бұрын
how do you get it to show the helper text when you start typing the code? Is this an option I can turn on?
@giancarlopoli7160
@giancarlopoli7160 2 жыл бұрын
Thanks man, you helped me a lot
@yehudagoldberg8577
@yehudagoldberg8577 3 жыл бұрын
How do I setValues without knowing how large the range has to be?
@kamaljaingwalior3114
@kamaljaingwalior3114 2 жыл бұрын
I've shared a spreadsheets with my collaborators giving them permission to edit only some cells in particular sheets, so that each editor can edit only selected cells in his personal sheet, but can view the other sheets. The problem is that although sheets are protected each editor can anyway add new sheets. Is there a way to avoid it. Main problem is I don't want anyone to add any sheet in the shared spreadsheet.
@DavidWeissProgramming
@DavidWeissProgramming 2 жыл бұрын
Hi Kamal! Great question. As far as I know, as long as a user has edit access to the Spreadsheet, they will be able to create new sheets, regardless as to what preexisting cells are protected. One idea you could try to prevent new sheets from getting generated is to either display a pop up that says "Please don't create new sheets" that gets called from an INSERT_GRID changeType from an OnChange trigger. Or, in the same vein, use the onchange trigger to automatically delete the new sheet once it gets created. You could even combine both these strategies. First alert the user, then delete the sheet. Check out Episode 3.4 to learn more about the onchange trigger: kzbin.info/www/bejne/imamiZuAp76aq80
@kzhanserik
@kzhanserik 3 жыл бұрын
Is it possible to get one specific row and each cell of it as elements of an array. Getsheetvalues returns any row as a 1'st element of an array. I would like to get row values and parse them into doc template.
@syaduinotech3681
@syaduinotech3681 2 жыл бұрын
Thanks for your sharing. I really appreciate if you can help to explain the method for send email with condition on specific value, e.g. record indicate value from new row submission above certain setup, then the email will be sent. Please do help/ share link if you have any.. i try to browse from your playlist, but not able to find. Tq sir
@diankshop
@diankshop Жыл бұрын
how to get range from specific value define?
@taimoor722
@taimoor722 4 жыл бұрын
can we use A B C?? columns names like A1 to AQ1 and how to copy formate also like few of my column names are bold black and few are red bold
@DavidWeissProgramming
@DavidWeissProgramming 4 жыл бұрын
Hi Taimoor! Yes, you can describe your range in A1 notation as well. For instance, if you wanted the range from cells A1 to AQ6, you could write: sheet.getRange("A1:AQ6"); Also, to copy format, use the method copyFormatToRange(). For example, sourceRange.copyFormatToRange(destinationRange, 1, 33, 1, 1); For more info, look here: developers.google.com/apps-script/reference/spreadsheet/range#copyformattorangesheet-column-columnend-row-rowend
@kunalpat5844
@kunalpat5844 4 жыл бұрын
great, man! can you please help on how to get random cell value from column/Row using App script? thanks
@DavidWeissProgramming
@DavidWeissProgramming 4 жыл бұрын
Hi Kunal! An easy way to generate random numbers is via the built-in Javascript Math object. The method Math.random() will return a random number between 0 and 0.9999.... But this can be scaled and shifted using standard multiplication and addition operators. Finally, using the method Math.floor() will remove the decimal values from off the number so you're just left with a whole number. The following logic is how I would proceed: const lastRow = sheet.getLastRow(); const lastColumn = sheet.getLastColumn(); let randRow = Math.floor((Math.random() * lastRow) + 1); let randColumn = Math.floor((Math.random() * lastColumn) + 1); let randCellValue = sheet.getRange(randRow, randColumn).getValue();
@kunalpat5844
@kunalpat5844 4 жыл бұрын
@@DavidWeissProgramming Sir your reply and time highly appreciate, working great! very much enjoying your video and learning for us, blessing David to you....
@JoseAntonio-wt3zm
@JoseAntonio-wt3zm 4 жыл бұрын
This course is awesome !! I just discovered it, but I find your lessons clear and very well explained. Thank you so much for sharing your videos and the time and effort you put in making them.
@kulvinder8211
@kulvinder8211 3 жыл бұрын
how to remove header row in (getDataRange) function
@Pshock13y
@Pshock13y 3 жыл бұрын
let's say var dataRange = sheet_detroit.getDataRange().getValues(); dataRange.shift(); .shift() will remove the first index of an array which in this case is the entire first row (the header) of data.
@kulvinder8211
@kulvinder8211 3 жыл бұрын
@@Pshock13y thank 🙏sir
Google Apps Script: Get Range in Sheets
8:47
saperis
Рет қаралды 19 М.
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 37 МЛН
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 8 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 17 МЛН
On Change Trigger - Apps Script | Script Service ~ Episode 3.4
6:29
Google Sheets Dynamic Apps Scripts using Named Ranges
11:58
Get __it Done!
Рет қаралды 5 М.
Google Sheets - Add Timestamp When Cell Changes - Apps Script
16:39
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 341 М.
Find All in Google Sheets with Apps Script
12:54
Yagisanatode -Scott-
Рет қаралды 4,1 М.
Set Formula with Google Apps Script
6:07
saperis
Рет қаралды 19 М.
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 37 МЛН