- Видео 147
- Просмотров 237 259
Sheets Ninja
США
Добавлен 24 ноя 2020
Google Sheets, now a little more magical! Google Sheets & Google Apps Script tutorials to help make your life easier and your Google Sheets feel a little less like a chore and a little more magical.
Easy Monthly Mortgage Payment Calculator in Google Sheets
Ever need a simple monthly mortgage payment calculator? Look no further than this simple tutorial.
You can download the final demo sheet here: bit.ly/4gl6fd0
You can download the final demo sheet here: bit.ly/4gl6fd0
Просмотров: 37
Видео
Easy Way to Simplify the Apps Script Authorization Flow
Просмотров 469 часов назад
In this tutorial, I show you the easy way to simplify and streamline the Google Apps Script authorization flow. Keep in mind, this only works on "container-bound" scripts (meaning a script that was created from within a Google Sheet, Google Doc, Google Slide, or Google Site), and that only accesses that particular project.
How to Add a Slicer in Google Sheets
Просмотров 6814 часов назад
What is a slicer and when would you use it? In this quick tutorial, I show you how to add a slicer and use it.
How to Hide Rows in Google Sheets
Просмотров 3421 час назад
In this video, I show you how to hide/show rows in Google Sheets and how that works if you're also grouping rows.
How to Hide Columns in Google Sheets
Просмотров 50День назад
In this guide, I show you how to hide and unhide columns and how hiding works when you're also grouping columns.
How to Combine Two Cells in Google Sheets
Просмотров 63День назад
In this video, I show you two ways to combine cells in Google Sheets, depending on whether you want to combine the text from two cells or turn two cells into one cell.
Color Me Impressed with these Dropdown Background Colors in Google Sheets
Просмотров 7314 дней назад
In this video, I show you how to add background colors to your dropdowns in Google Sheets.
Dropdowns: Chips, Arrows, and Plain Text, Oh My! - Google Sheets
Просмотров 12514 дней назад
In this video, we take a quick look at the different types of dropdowns available in Google Sheets.
How to Delete Multiple Tabs in Google Sheets
Просмотров 7614 дней назад
In this video, I show you a couple of ways to delete multiple tabs in Google Sheets.
Copy Sheet from One Spreadsheet to Another
Просмотров 6221 день назад
In this video, I'll show you how to copy a tab/sheet from one Google Sheets spreadsheet to another one.
Easiest Single-Cell Dependent Dropdowns in Google Sheets
Просмотров 11821 день назад
If you're looking for a way to add dependent dropdowns to your Google Sheets without a script and without helper tabs, then this is the method for you. The bonus for using this method is that it also makes it fast and easy to search for and select just the option you want. You can create a copy of the final demo sheet here: bit.ly/4gq4uey
Can't Select Option Error: Multi-Select Dropdown in Google Sheets
Просмотров 11321 день назад
Are you getting this error: "The data you entered in cell violates the data validation rules set on this cell." and are unable to select certain options from your new multiple selection dropdown in Google Sheets? If so, most likely there is a space after or before one or more of the options in your multi-select dropdown list. See how to fix it in this video.
How to Import Excel Files into Google Sheets
Просмотров 8021 день назад
In this video, I walk you through how to import Excel files into Google Sheets.
Easy Hack to Add Multi-Select Dependent Dropdowns in Google Sheets
Просмотров 29821 день назад
If you've been wondering how to add dependent dropdowns to the multi-select dropdown feature in Google Sheets, this is a no-code way to accomplish this, and I walk you through how to build this step-by-step. You can make a copy of the final demo file here: bit.ly/3XELr9f And if you want to check out the original dependent dropdown video, that also goes into how to do multiple levels of dependen...
How to Save An Excel File as a Google Sheet
Просмотров 6521 день назад
In this quick video, I'll show you how to upload & convert a Microsoft Excel file to Google Sheets.
Capture Emails Before Giving Access to Free Stuff - Google Sheets & Apps Script Tutorial
Просмотров 17521 день назад
Capture Emails Before Giving Access to Free Stuff - Google Sheets & Apps Script Tutorial
How to Make a Cell Bigger in Google Sheets
Просмотров 126Месяц назад
How to Make a Cell Bigger in Google Sheets
3 Ways to Create Tables in Google Sheets
Просмотров 194Месяц назад
3 Ways to Create Tables in Google Sheets
3 Ways to Add Photos in Google Sheets Like a Pro
Просмотров 263Месяц назад
3 Ways to Add Photos in Google Sheets Like a Pro
How to Find & Highlight Duplicates in Google Sheets
Просмотров 774Месяц назад
How to Find & Highlight Duplicates in Google Sheets
2 Reasons Dropdown Chips Drive Me Crazy in Google Sheets
Просмотров 148Месяц назад
2 Reasons Dropdown Chips Drive Me Crazy in Google Sheets
Prevent Editors from Changing Permissions or Adding People to Google Sheets
Просмотров 53Месяц назад
Prevent Editors from Changing Permissions or Adding People to Google Sheets
Prevent Viewers from Copying, Printing, or Downloading Your Google Sheets
Просмотров 65Месяц назад
Prevent Viewers from Copying, Printing, or Downloading Your Google Sheets
Simple Stock Portfolio & Watchlist Tutorial - Google Sheets
Просмотров 134Месяц назад
Simple Stock Portfolio & Watchlist Tutorial - Google Sheets
Create Your Simple Stock Watchlist in Google Sheets Now!
Просмотров 166Месяц назад
Create Your Simple Stock Watchlist in Google Sheets Now!
Simple Project Management System Tutorial - Google Sheets
Просмотров 383Месяц назад
Simple Project Management System Tutorial - Google Sheets
Finally! Multiple Selection Dropdowns in Google Sheets! (2024)
Просмотров 1,4 тыс.Месяц назад
Finally! Multiple Selection Dropdowns in Google Sheets! (2024)
Easy Automatic Last Updated Timestamp in Google Sheets [No Authorization Required]
Просмотров 7422 месяца назад
Easy Automatic Last Updated Timestamp in Google Sheets [No Authorization Required]
Awesome stuff! Would this work for changes to a spreadsheet that receives data via IMPORTRANGE() from another spreadsheet?
The onEdit trigger doesn't pick up indirect changes like this. Probably the best would be to incorporate the last updated script on that other spreadsheet and then you can do an importrange directly from that cell.
@@SheetsNinja Thanks for the fast reply. The other spreadsheet I am importing from is not mine, and I only have 'View only' for it.
I really couldn't read the scripts. They're too small 🙈
Hey! Did you have any problems connecting with Fiverr? For some reason I cannot connect my Fiverr account to IFTTT and seems to not work soon...
Thank you so much for this. It's been years since I've needed a P&L and I couldn't for the life of me, remember what all needed to be included. This will help!!
Awesome, so glad this was helpful!
So could I use this script to allow clients to authorise all scripts in one go are you saying?
The point of this video (and the @OnlyCurrentDoc method) is to simplify the authorization process in cases where you are only accessing one Google Sheet and no other or external services. Anytime you add scripts to a Google Sheet (or other Google product) and have a user run or try to run any function, it will ask for permissions as requested by the script. So if you are trying to access multiple Google Sheets, you do NOT want to add the @OnlyCurrentDoc, otherwise you will have an error.
hi sir, can I do same to re-route from existing form response spreadsheet which is auto created by google sheet to another spreadsheet tab in same file. As i already collected data from responses in one spread sheet, but somehow it got unlinked from the previous one and created another tab while re-link. Or can I simply paste response data from older to newer one if it not effect the new response sheet. please guide.
So you can actually relink the Google Form back to your spreadsheet. I cover the linking here: ruclips.net/video/5hZ1i7PhPcM/видео.html The only difference is when it's already linked to a different spreadsheet, you'll need to click the 3 dots next to "View in Sheets" to change the response destination.
@@SheetsNinja Really appreciate your quick response. But I want to select specific tab in selected sheet sheet.
@@AnshitaChauhan-t9g In that case, yes, you would need to use a script like the one in the video to route new responses to that tab. In that case, you would add this script to whichever Google Sheet you end up connecting the form to, and then for the target tab, you would use something like: let targetSS = SpreadsheetApp.openById('SPREADSHEET_ID'); let targetSheet = targetSS.getSheetByName('Target Tab'); And then continue using "targetSheet" for the code to add the data.
@@SheetsNinja okay Sir! I'll just go through this video again and try n test. will get back. Thanks a lot.
Thanks for this tutorial Sheets Ninja! The script works perfectly. Just wondering if there's a way to include comments on the move. I'm not sure if that's possible since it will be a move and delete script.
So you can't include/move/add comments, but you can add notes. For example, if you want to add a note in column D on the new row, you can add this after the .appendRow(data) line: targetSheet.getRange(targetSheet.getLastRow(),4).setNote("My note here");
Is it possible to create a loop that only does 15 addresses at a time if there are more than 15
You can loop this but not to create a single map. What you would need to do in that case is use the actual Places API, or you can download the data and upload it to My Maps in Google Maps to create a map.
Why is the completely deleted off the spreadsheet can you help me?
Never mind I found it why is my row moving to the bottom of the new tab. How can I make it move to the top like yours?
So if it's not moving to the bottom of the existing data and moving to the very bottom of the tab, it means you have checkboxes or a formula with "" or " " that is showing rows as not being blank. So you can remove the checkboxes and use the script to add them--e.g., if you need checkboxes in columns 4 & 6, after appending the data, you can add: targetSheet.getRange(targetSheet.getLastRow(),4).insertCheckboxes(); targetSheet.getRange(targetSheet.getLastRow(),6).insertCheckboxes(); And then everytime it adds a new row it will also add the checkboxes.
good
Glad this was helpful for you!
Pleasee help.🙏🏾 I don't know why I'm unable to add the X-axis. I keep undoing my chart and recreating it from scratch as you did but when it comes to adding “X-axis” it doesn't add.
Google Charts can be finnicky at times, and if it gets unreasonable, I end up typing in the ranges to use. The one thing with this template that may be throwing that off is the title of each section is merged, so likely what is happening is that is throwing you off. So let's say you want to do income/expenses/net profit: You could put this in the data range cell C6:O6,C7:O7,C10:O10,C20:O20,C24:O24 Then underneath that, select "Vertically" under "Combine ranges", then "C6:O6" in X-axis, and then scroll tot he bottom and check "Switch rows/columns", "use column C as headers", and "use row 6 as labels", and then you can select the series.
ang because of this i love yooooooooooo but may i ask how did you do it or you just hide the rest of the column and rows that aren't use?
So glad this was helpful! You can right-click on any single column or row number (e.g. the part where it says A,B,C etc. or 1,2,3, etc) and delete that single row or you can select multiple rows or columns and do the same thing. So for example if you want to delete all the rows after row 30, you can click on "31", scroll down, hold down Shift and then click on "1000", right-click and select "Delete 969 rows"
Going too fast, should explain how to create step by step
Any idea why I don't have a "blank table" option? I've tried opening new docs but I can't find it anywhere.
Is it a Google Sheet that you created awhile ago? It's possible if it's an older sheet that for some reason it's blocked for that reason. Otherwise if it's a new or newer sheet, it may just be a glitch. You can check this playlist for access to download different Google Tables templates: ruclips.net/video/fxuW2QO38qA/видео.html
@@SheetsNinja It's a new sheet. Must be a glitch of some kind. Not the end of the world, I can just edit other templates.
I want to do the same thing, only bring in a CSV file from my C drive on my laptop rahter than from Google drive. I have searched and searched and can't find the way to do this. Do you know if there is a way to do this? I have code that does this in Excel VBA but can't find the equivalent way of doing it in Sheets. I know how to write script code that prompts the user to select a file from a Windows file dialog so that I can get the file name, but I don't know how to read that data and convert it to a worksheet.
So with Google Apps Script, there isn't a way to upload files from C drive natively without user interaction. You would have to have some kind of service on your desktop that the script could access. If you're wanting to upload CSVs from your computer on a regular basis or with automation, what you'll probably want to do is get a python or other local script. Another option is download "Google Drive for Desktop" and then when you're on your computer, you can drop files right into a Google Drive folder shortcut on your desktop: www.google.com/drive/download/
I keep getting an error while trying to make the report "Error Circular dependency detected. To resolve with iterative calculation, see File > Settings."
This means somewhere you have a formula referring to another formula referring back to it. Whatever formula you're adding when you get this error, you'll want to check the cells referenced in the formula to see what cells they reference. Usually what it is in this kind of case is you need somewhere to actually set the initial inventory and then you can add/subtract from there.
@@SheetsNinja Okay I fixed that but now when I made the report, it's 0's all across. for some reason it's not pulling the data from the log
Your videos are always well explained with great results. Do you happen to know why multi-select dropdowns don't work in mobile?
Oh, thank you! I do not know why it doesn't work in mobile! I just tried it myself and sure enough, it does not work on the mobile app at the moment! I'm assuming the current UI in the mobile app doesn't support the multi-select and that's what they will have to update. So maybe in the next Sheets app update?
How if i only want to appear the timestamp only in one cell for entire sheet. How can i do it?
I got it sheet.getRange('A1').setValue(timestamp);
This was a great tutorial, I used the same script but i keep getting an error message that says "Form not defined"
You need to make sure the tab name matches between the Google Sheet and the script (sometimes a blank space at the beginning of end of a tab name can throw you off in the script)
Thanks!
Glad this was helpful!
Hello, do you know how i can do this but the conditional dropdowns will copy over if i duplicate the sheet?
Unfortunately, you can't do this with the non-scripted method. You would have to set up a helper tab for each sheet you want this to work on. The other options are setting up the scripted version of this: ruclips.net/video/5Yysv-QouTQ/видео.html Or a different version of this that does not require a dedicated helper tab: ruclips.net/video/rFiFxoO407M/видео.html
MIGHTY! Thanks again!
You bet!
'So helpful, THANK YOU!
Glad it was helpful!
OUTSTANDING! Thank you!
You're very welcome!
Sooooo good and complete thank you sooooooo much
Awesome, so glad this was helpful!
Can't click Run.
Hi, it works, but it does not transfer the links as well. For ex: each person's name is linked to a *SHEET* and any other contact details including the company website link
lifesaver, thank you so much!. Much simpler than other video, great video. Wish you had more subs.
lifesaver, thank you so much!. Much simpler than other video, great video. Wish you had more subs.
Awesome, so glad this was helpful for you!
Best simple CRM I've come across, thanks. I am in a member based organisation so I'll be using it for our membership register rather than sales.
Awesome, so glad this was helpful for you!
Good video but why were you rushing through it? I know you have done this 100's of times, but the people watching your video haven't. Please slow down. Don't immediate switch screens when writing code. I barely saw that you added a bracket to the end of that first bit of code. 😳
But if data is coming through another source of sheet and if we have used query and import range to transfer data than how we can use this data to tackle query and importrange because when we applying this move and delete function than its erase all data Please provide solution for this
So if the data is coming from another sheet, you would either have to not delete using the script, or you would have to use the script to go search the source sheet for the row and delete it there.
Very helpful
Awesome, so glad this was helpful for you!
@@SheetsNinja YW! ⭐️
Thank you so much for this helpfull video. Im learning with every video. Just a question: How to I prevent a line from being moved if the tab indicator is blank. I want it to stay on the first page and not be deleted.
Thanks sheet ninja you have solve my big problem please keep posting like videos which is related to task management
Glad this was helpful for you!
super cool 😊 I was looking for this! Could you make a video and share template of simple Content Managment System? And incorporate these dropdowns?
Glad this video was helpful, and thanks for the idea, I'll keep it in mind.
Thanks for the good tutorial man!
Glad it was helpful!
Is there a way to have one selection move in the same sheet and another move to a separate tab?
How can I use this for two sheets where the row and column number are different?
You would want to split that into two "if" blocks... e.g. if (tabName == 'tab 1') { sheet.getRange(tab1Row,tab1Col).setValue(today); } if (tabName == 'tab 2') { sheet.getRange(tab2Row,tab2Col).setValue(today); }
Thanks for making the code available. Writing non-linearly in a linear environment is confusing without the final product at hand. 🤓
Glad it was helpful!
Hi, it works but the problem is it does not transfer the links as well. For ex: each person name is linked to a folder and any other contact details including the company website link
Are you talking about smart chips? If so, Google has not updated apps script to be able to pull data from smart chips. Otherwise if you're talking about links that you added, you can switch out .getValues() for .getRichTextValues(), so something like this: **replace the .getValues() and .appendRow() lines with these: let data = sheet.getRange(row, 1, 1, sheet.getLastColumn()).getRichTextValues(); targetSheet.getRange(targetSheet.getLastRow() + 1, 1, 1, data[0].length).setRichTextValues(data);
Would it be possible to have another dependent dropdown that relies on the other two?
Yes, so you could set up another helper tab and do the same thing again. I walk through the logic (just sub in the new formula I use in this new video) in this older video on regular dependent dropdowns: ruclips.net/video/xzzDNDNkO6Y/видео.html
@@SheetsNinja I find that I'm struggling to get it to work with the columns in my second helper sheet
Hi I have done this but for some reason anytime I do any edit and change the status drop down to match what another tab is, there is no change and the script doesn't even run. Please help me understand what might be wrong? Thanks!
If you have not authorized the script, that would be the #1 reason why this wouldn't work. Other than that, what you would want to check is when you pull up the Script Editor, on the left-hand side, check the icon that looks like three lines and an arrow, labeled "Executions", and see if there are any executions happening for the script, and if they completed successfully or if there are errors.
@@SheetsNinja Got it thanks! I will look into those.
Hi! I messaged you on Facebook but not sure if you check FB, so I’ll try my luck here! I watched your videos on youtube about how to make a script that transfers a row from one sheet to another with a drop-down selection. i have struggled a little bit because i need a code where the row is transferred to another sheet when for example in column L a name sheet is selected (i have name sheets and weekday sheets) so it would only transfer to the name sheet selected, but it would only get copied to the sheet selected. but when in column P a weekday is selected, i want the row to be transferred to the sheet selected and be deleted from the original sheet. I also have a formula in column E, that has a google maps link, where every time an address is typed in column D, the link for the google maps for that address will show up in column E. So far Ive made it work, but theres a glitch, everytime i select something in column L, it will transfer to the sheet selected but it would show up twice or more times, when i select a sheet in column P, it transfers the row selected and the next one. I havent found a way to fix this and don't even know if its possible. Would you be able to help me? I would appreciate it so much!!! Basically I have two dropdown columns on each weekday sheet
Hey there, from what it sounds like, you may not have restrictive enough if statements, or you may have two onEdit triggers. This can happen if you either add a trigger multiple times or your main script is onEdit(e) and then you also add a trigger for that function. If you're in the script editor, double-check your function name, and then click on the clock icon on the left-hand side, and see if there are any triggers listed. If there is any triggers listed and your function name in the script is onEdit, then you should remove any triggers tied to it. Otherwise, if your function name is something like checkMySheet(), then just ensure there is only one listed. If this isn't your issue, then my guess would be that your if conditions to determine where the row goes both allow the row to go through, so you need to make them restrictive enough that only one will be true... e.g.: // name sheet if (col == 12 && val != ''){ // rest of name sheet part of the function } // weekday sheet if (col == 16 && val != '') { // rest of the weekday target part of the function }
Any idea why, for the first transposed filter function, I might be getting this reference error? "Error Result was not automatically expanded, please insert more columns (101)." This is my formula: =TRANSPOSE (FILTER(Settings!B:B,Settings!A:A=Naming!A2)) Hoping its a user error that I'm totally overlooking
So if you have a lot of options, you could get that error because Google will automatically add more rows, but not always more columns. So in this case, you just need to add more columns to the right of your formulas in column A. If you select multiple columns (click on "B" for example, hold down shift and then click on "Z", then right-click and select "Insert __ Columns" (left or right), and do that until you have approx 101 more columns, then it should populate.
@@SheetsNinja YES that was exactly it. thank you!! not to be dramatic but this changed my life
wonderful
Thank you! Cheers!
Thanks bro. Will it be simplier for using Google add-on, such as Comfort Attendance, which creates web app to update the attendance sheet by clicking on names extracted from the attendance sheet?
Add-ons can make your life easier if the standard configuration provides what you need. Usually it's the customization to fit your exact needs is where those fall short, or when the cost exceeds the value it provides. If it works for you, then awesome! Otherwise you may look for a compromise of using an add-on and customizing it in the Google Sheet, or building something from scratch like the solution I demo-ed.
great🙏
Glad this was helpful!
This is very useful for me, was looking for something similar, this helps a lot. Thanks for all the effort and hardworking you put into this.
Glad it was helpful!
I have a question, what if i want to have a dependent drop-down list based on a multi selected category which is also in a dropdown form. Please help
I just added a new video on how to add dependent dropdowns for multi-select dropdown fields: ruclips.net/video/AFPasThu9sE/видео.html
🙌 Great tutorial!
So glad this was helpful!