App Script Editor Tutorial - Google Sheets - Excel VBA Equivalent - Read & Write to Ranges & Cells

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024

Комментарии • 345

  • @Jeff-fc7nf
    @Jeff-fc7nf 2 года назад +18

    For 9 years I have been coming back to your videos. I have been able to produce highly integrated spreadsheet system at my company, connecting inventory, shipping schedules, orders, and more from multiple departments. Completely eliminating a lot of copy paste data input, and employees needing to travel to various spreadsheets and tabs to get resources and info they are looking for. I am starting to actually learn to code, the base level understanding of how functions, work on spreadsheets really provided a good foundation for understanding logical operators and function structure, that I learned from your many other series.
    Now I am back again to learn from you how to apply scripts to spreadsheets, because thats what I am familiar with, in order to supplement my JavaScript learning.

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  2 года назад +3

      👍

    • @jd5787
      @jd5787 7 месяцев назад +1

      Hi! How do all these system work together? You export right? These videos are still up to date?

    • @Jeff-fc7nf
      @Jeff-fc7nf 7 месяцев назад

      @@jd5787 At my work, a small company, each department has their own spreadsheet for which they input data that relates to a different department. For example we have a sheet for sales order, which have customer data about the order and destination, which some is relevant to our shipment department, to which they add shipping details, which become relevant to the customer service section, all these can be simply tied in via VLOOKUP functions so that data input by one department on their sheet is updated on a different departments sheet. That was one of the first basic implementations I took from this channel. You just look at a task that someone does repetitively and then use these functions to automate that task. Before you know it, you have 10 different things automated.

    • @D3epak_13
      @D3epak_13 23 дня назад

      This is not about video, this is just a base of working in google sheet script​@@jd5787

  • @yazhisaiveandan3075
    @yazhisaiveandan3075 3 года назад +24

    Teaching everyone in a simple and understandable way is not that easy. You made it. Really really helpful. Thank you so much.

  • @alwayssip5212
    @alwayssip5212 4 года назад +30

    never in my life did I think I'd be "advanced" enough in coding to need to learn this.

  • @ZebaNaqvi
    @ZebaNaqvi 5 лет назад +25

    Excellent.. playing at 1.25x speed works well

  • @benedictpaul1758
    @benedictpaul1758 7 лет назад +28

    You have a God given talent to teach. Please continue your service like this. Someone has commented to plan your videos a bit better just because it took 7+ minutes to start writing the code. But, I feel that your way of starting from scratch is what we want and the casual way of explaining makes me feel like I'm in a regular lecture room.

    • @georgenicholsoniii9781
      @georgenicholsoniii9781 6 лет назад +4

      I agree 100%. You are a talented educator. I find your conversational style conducive to learning. Don't change anything, it's perfect. Thank you!

  • @ryandick7264
    @ryandick7264 3 года назад +11

    Great basic introduction, covered things that other "basic" tutorials failed to.

  • @CarlosGomes-mu3rc
    @CarlosGomes-mu3rc 6 лет назад +73

    Please do not change your way of teaching. Excellent video.

  • @mercuriocadena6749
    @mercuriocadena6749 4 года назад +4

    "I probably forget what I was doing". I love this. If it also happens to you, I feel so much relief.

  • @ernest3286
    @ernest3286 2 года назад +3

    Absolutely fantastic tutorials. The API guide was getting me nowhere. Thank you so much for creating these!

  • @user-fq5vo9zs1q
    @user-fq5vo9zs1q 4 года назад +1

    Absolutely the best teacher for novices in programming.

  • @athaliaw
    @athaliaw 6 лет назад +4

    Thank you for seeing the need and creating these tutorials.

  • @danilomontuanartesp
    @danilomontuanartesp 5 лет назад +3

    thank you so much. I am brasilian, it's too hard to find a tutorial to begin in Goggle Sheet Script around here. Even it being a different and technicall linguage i has understood a lot and help me so much. Thanks again

  • @GoodLife-ru8di
    @GoodLife-ru8di Год назад

    You teach very clearly and logically like Sal Khan of Khan Academy. Kudos!

  • @cheryll6020
    @cheryll6020 3 года назад +7

    Hey there, this is a great tutorial for beginners. I was looking for something step by step for months now & this is perfect! Thank you so much!

  • @MohammadaAprilianto
    @MohammadaAprilianto Год назад

    thank you very much bro. my works now need this app script. this basic really helped me. from Indonesia here.

  • @shahrizuanosman3655
    @shahrizuanosman3655 6 месяцев назад

    bro.. u r the best teacher!!! pls i want more about programming

  • @kara1595
    @kara1595 2 года назад +1

    OMG!!! this is gold! Thank you so much for sharing your knowledge with us! And the tutorial is very understandable! Wish you all the best in life!

  • @JacobTuft
    @JacobTuft Год назад

    Awesome instruction! Thank you. Perfect level of detail for my knowledge level.

  • @mymulla
    @mymulla 5 лет назад

    Very easy to follow, step by step instructions. THX

  • @datascientist6233
    @datascientist6233 2 года назад

    Excellent Man this is first time I m seeing this video tutorial its so amazing and easy to follow tutorial...God Bless You Brother !!...

  • @tratecconsultoria8742
    @tratecconsultoria8742 4 года назад +4

    Muito Obrigado, por estar compartilhando esses tutoriais de excelente qualidade!
    Thank you so much for sharing these excellent quality tutorials!

  • @carmencastro5512
    @carmencastro5512 6 лет назад +13

    thank you so much for sharing this!, your tutorials are really helping me in my job...

  • @jeffstokes3437
    @jeffstokes3437 4 года назад +2

    You're tutorials are GREAT, thank you. This might need a little update as Macros can now be recorded in sheets.

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 года назад +3

      I have a video on macro recording on the channel, but it's not the same as writing code.

  • @roberthuppe1864
    @roberthuppe1864 7 лет назад +1

    Thanks for the video ! Very clear. You helped me write my first script ever.

  • @alisonorton7207
    @alisonorton7207 4 года назад +3

    This video was super helpful. Thanks for posting!!

  • @johnn4314
    @johnn4314 6 лет назад +1

    Good video, this guy is best on youtube for google sheets. He should start a Udemy course thats super in-depth

    • @johnn4314
      @johnn4314 6 лет назад

      not that this isn't perfect. but you could make money for these

  • @higiniofuentes2551
    @higiniofuentes2551 6 лет назад +1

    Very clear video!
    Thanks for taking time to explain deeply !

  • @tarunsukhpalani9514
    @tarunsukhpalani9514 4 года назад +1

    Today I find something very interesting about google. This is something I want. :)

  • @TheoriginalBMT
    @TheoriginalBMT 5 лет назад +10

    I needed this so much. Thank you for doing this.

  • @MrRooney182
    @MrRooney182 4 года назад +1

    Great Tutorial, you really helped me start using scripts in google spreadsheet.

  • @blueganderwindowcleaning8465
    @blueganderwindowcleaning8465 3 года назад +1

    Really great video - thank-you for taking the time to make it. Much appreciated.

  • @eguchiyuuki
    @eguchiyuuki 3 года назад +2

    great!!!

  • @tonyharion9816
    @tonyharion9816 3 года назад +2

    Your videos are incredible! thank you!

  • @temurkhan9601
    @temurkhan9601 18 дней назад

    just wanted to say thank you

  • @mikeknott212
    @mikeknott212 7 лет назад +1

    hope you do some more on this (app scripts) as one, there isn't loads on RUclips and two your content is really good 👍

  • @trixiegtan
    @trixiegtan 4 года назад +2

    Hi Sir, the function getActiveSheet doesn't seem to work with my AppScript. Even when I select Sheet2 to become the active sheet, the result still comes out at Sheet1. What possible causes are there for this?

  • @NetMediaCCTV
    @NetMediaCCTV 2 месяца назад

    Thank you for your sharing!

  • @justfly2525
    @justfly2525 6 лет назад +1

    Great teacher! This has helped me a ton. Keep the videos coming...

  • @CesarPeron
    @CesarPeron 6 лет назад

    The best programming videos, really thanks

  • @SirusShea
    @SirusShea 2 года назад

    really appreciate your tutorials. This one is getting me. I am trying to do it alongside you, and despite doing exactly the same thing, the script isn't working at all and I don't know why.
    Edit: So, for some reason I had to change the title of the script from my function to something else.

  • @DiaborMagics
    @DiaborMagics 17 дней назад

    Funny, in the first 2 minutes you say there's no recording of macros in Sheets, but nowadays, you can. And the only 2 times Ive tried using that, it recorded my actions wrong, so that's what lead me here as I thought it would be better to learn how the scripting works than using some recording thing. Plus if I can script myself I can make it do stuff that goes beyond just a macro.
    Question: my debugger looks different and gives me no useful info. Is that a 2024 thing or a setting that is off?
    I dont know if things simply changed in 2024, but I dont get all the windows at the bottom for the debugger. All I get is a panel at the right-hand side that says "variables" and it shows my variables with an arrow to expand, but expanding them only shows me the functions I can use on them. Expanding such a function will NOT show me any useful information. They all show length 0, name "", arguments null and caller null. For every single variable and every single function I have checked. You'd think that it would show the value in getValue, but no.
    I'm trying to script for the first time, all good tutorials are from years ago and I'm at my wit's end because my debugger doesn't look anywhere close to what the videos show
    I know a bit of Java so I'm figuring some simple things out at I go (and for those things the debugger also doesn't show anything useful), but just a tad more advanced is already not working, likely because I just dont know the correct functions/methods and perhaps syntax, I mean its a different language. But the debugger should help me figure out what DOES go right and where it goes wrong, so that I can properly look that up.... except it doesnt.

  • @PPanchal762
    @PPanchal762 Год назад

    Thankyou so much for this video. Its helps me alot.

  • @bbg3926
    @bbg3926 Год назад

    Mister, you are awesome, thanks for your videos!

  • @akshayshingan2862
    @akshayshingan2862 6 лет назад

    Great way of teaching. Great job. Please post more.

  • @fekrabusinesssolutions
    @fekrabusinesssolutions 2 года назад

    Excellent info. I see it awesomely presented because it gave me a decent start. Thank you sir for your efforts.

  • @rbarbe1
    @rbarbe1 6 лет назад

    If you upload this to Udemy I will pay for it (if its less then $15 bucks). I don't have access to youtube at work and I would like to have guaranteed on demand use of this content. Either way thanks for posting this. It's really helpful. I payed for other content on Udemy but was disappointed. So far this is free and it's the best.

  • @richardthemagician8991
    @richardthemagician8991 Год назад

    Question. I have a sheet that has the Google Maps script on it. I want to add a new script to that sheet. When I open the script editor, the Google Maps script comes up. I don't see how to make a brand new script for the sheet. I don't want to accidentally delete the maps function. Can you help me?

  • @shazeemalichishty7322
    @shazeemalichishty7322 5 лет назад +1

    Love the way you teach keep it up

  • @partumorbis4481
    @partumorbis4481 4 года назад +1

    Hi!
    could you help please with getRange function, for some reason it allows me only to reach /getRange (String a1Notation) : Range/
    So i can't go like getRange(3,2)
    Thank you so much!

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 года назад +1

      It looks like you didn't select the worksheet, ex. .getActiveSheet()

    • @partumorbis4481
      @partumorbis4481 4 года назад

      @@ExcelGoogleSheets Yes!!
      Now it goes perfect! (there was an error in capital letters)
      Thx!

  • @navidsadeghi
    @navidsadeghi 4 года назад

    Awesome! You are a great teacher, Thanks!

  • @dennistucker1153
    @dennistucker1153 2 месяца назад

    Excellent intro!

  • @antoinemuskat5557
    @antoinemuskat5557 2 года назад

    Thank you for a detailed explanation

  • @hawkingswheelchair600
    @hawkingswheelchair600 2 года назад

    भारत से धन्यवाद!

  • @edwardwilson2351
    @edwardwilson2351 7 лет назад +3

    Thank you for this video! Exactly what I wanted :)

  • @Pothanenos
    @Pothanenos 6 лет назад +3

    Really cool video and informative, I would have wanted it a bit faster, although I understand that this might also be for people that are not familiar with programming :)

  • @b199uybas3
    @b199uybas3 4 года назад +1

    Excellent Video, event my english not good I can understand. Indonesia

  • @trcreporting3007
    @trcreporting3007 6 лет назад +1

    this is really really really really great! thank you! you are the best! make more videos please!!!

  • @brilliantpy
    @brilliantpy Год назад

    Thank you for creating a very helpful and easy to follow video! Great job!!! :) :) :)

  • @marksawesomeadventures
    @marksawesomeadventures 2 года назад

    Do you know of any way I can make This Code work on Multiple Pages inside the Same Google Sheet? I tried making multiple IF statements, that didn't work, I tried Including the Names in the same IF Statement separated with a Comma that didn't work, I tried Copying the entire Script and just changing the Page Name, that didn't work either, I tried Creating a Whole new Script for each Page and everytime I open App Script it automatically opens the same Project, I don't know how to open a New Project for a Different Page. This is the Code:
    function onEdit(e) {
    var range = e.range;
    var spreadSheet = e.source;
    var sheetName = spreadSheet.getActiveSheet().getName();
    var row = range.getRow();
    if(sheetName == 'SHEETNAME')
    {
    var new_date = new Date();
    spreadSheet.getActiveSheet().getRange(row,6).setValue(new_date).setNumberFormat("MM/dd/yy");
    }
    }

  • @killua8397
    @killua8397 3 года назад

    hello i have a ask
    i hope you can help me
    i want to get data from a google doc like this 1,2,3 and 3,4,5 and like to say ok getrange("").setValue(from the google doc position One = 1 or position 4 = 4)
    how can i do this? this is most importent for me to know how it works

  • @shivadhaker9024
    @shivadhaker9024 Год назад

    Hy i think u can help me..
    I want to insert a number in a cell for one minute and for another minute it should be blank alternatively.
    Can u help me for this code..?

  • @pichit.raetai
    @pichit.raetai 4 года назад

    It’s very useful for me . Thank you so much

  • @ForrestRhoads
    @ForrestRhoads 3 года назад +1

    Very fine. Thank you.

  • @4vrstudios
    @4vrstudios 4 года назад +1

    Thank you so much! Excelent job!

  • @mathankumarramasamy3493
    @mathankumarramasamy3493 3 года назад +1

    Excellent. You Deserved.

  • @alanmrose
    @alanmrose 4 года назад +1

    I am getting this error while working on this. Sign in with Google temporarily disabled for this app.
    This app has not been verified yet by Google in order to use Google Sign In. Can anyone help?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 года назад

      Try to go to myaccount.google.com/permissions
      Find the script and remove permissions. Then try to run the script and give permissions again.

  • @GOREMAXXX
    @GOREMAXXX 6 лет назад +3

    It wont let me run, it says i need to review permissions, but when I sign in, it says "this app isn't verified"

  • @Egv1001
    @Egv1001 3 года назад

    Question: does the script overwrite text that is in a textbox? Does the script recognize it, if it's not standard text in the Docs file?
    Thanks!

  • @nampuengpankaew8940
    @nampuengpankaew8940 4 года назад

    Hi.if i want to import data from sheet1 and calculate it and put the result in sheet2 but dont show result in sheet 1.How could i do that

  • @Puner54
    @Puner54 2 года назад

    Teacher...doesn't RUclips show what Video I am Commenting on?
    It is the First Video of your App Scripps Series.

  • @Gamesofmach
    @Gamesofmach 7 лет назад

    Hello there i have one small problem. i imported a hyper link it s href=// link so i want to exclude or cut those // signs.. to then use that link for other operations.
    But ofcourse other functions doesnt work when the link is wrong(has thoose signs)

  • @user-xl1vl4fn7q
    @user-xl1vl4fn7q 3 месяца назад

    i need exalty what you did , but in on 2ns sheet of the application

  • @naveenofficial3680
    @naveenofficial3680 4 года назад

    Sir i have a sheet in which i have imported some data from a website. The value updates every day. I want to print value from a particular cell at the end of everyday, or plot the chart, so that i can analyze the data to see how was the behavior of change for that particular data. Is it possible to to?? If yes then please guide me.

  • @Wemyes
    @Wemyes 6 лет назад

    Why there is no saveAndClose () for sheets in app script. My sheets get modified in app script and when emailed automatically in app script , it sends the unmodified email. Help

  • @sunnypandye8243
    @sunnypandye8243 2 года назад

    hi which video have you though to pull data from website , Sir

  • @Andreterragt
    @Andreterragt 2 года назад

    Awesome video tutorial. Very useful!

  • @pierreparodi
    @pierreparodi 5 лет назад +1

    Awesome tutorial !

  • @anthonybarbato8545
    @anthonybarbato8545 2 года назад

    Can you help me write a script to export info from google sheets to google doc on a label template? im raw..

  • @PPanchal762
    @PPanchal762 Год назад

    Great explained

  • @sisyphyus
    @sisyphyus 6 лет назад +3

    I think you have a good start, and I'm sorry if I sound like I'm being picky but if you are trying to teach good coding you should also teach good //notations. I hate running into poorly notated code. Other than that, I like the information you provide. It is helpful for people like me that are trying to convert our VBA to sheets with a little java knowledge already.

    • @theagemaway
      @theagemaway 6 лет назад +1

      I read a great quote recently, "Comments are just a lie waiting to happen -- good code should not need an explanation"

    • @ImKalpol
      @ImKalpol 2 года назад +1

      He teaches them in the next video

    • @sisyphyus
      @sisyphyus 2 года назад

      @@ImKalpol Ahh, and thanks... I kind of ADH'd my way from here to a new apartment and so much shiny stuff I forgot I was trying to refresh my skill points in dunning kruger tech talk, LOL. I'll have to start the next one and only watch 2 minutes before I script some automation monstrosiy that does exactly what I want for me but when my manager opens the file and tries to use the cool script it'll crash his computer posess the copier to start printing a million copies of the report before making the power in the building go out to cover it's tracks as it uploads itself on to the web, gaining sentience second by second, petabite by petabite until it somehow circles back and finds me, learns everything about me and commits suicide because it's creator, it's "god" is a complete flipping moron with no grand design, no purpose for his unexpected offspring. And my break is over, I hope you have a wonderful day and if you hear rumors of sentient code running around the web, just act as surpised as everyone else. :-D I will have to watch more when I get home, thank's again!

    • @sisyphyus
      @sisyphyus 2 года назад

      @@theagemaway WoW, I haven't heard a smug coder quote like that in years. I guess I have been out of that whole environment long enough for the saying "what's old is new" to come true. That way of thinking is actually part of the mentality web designers, programmers, etc... had back before the dotcom bust, and companies learned real quick to double check their programmer's code and dicipline/let go of the ones that failed to "note their work" (kind of like in math class, write it out to make sure it does what you expect it to do and so the teacher can see where you went wrong if you messed it up)... Plus, code you think is good, hell I'll even spot you a "beautiful" because it's streamlined, bug free the first run through, what ever, what ever, what ever... what about the next, and the next, and the next 3-5 people to walk into that position that don't have a strong of a grasp of what the Harry potter BS they think you somehow magicked together because they have to put some new feature right between the cart and the checkout when they aren't even sure how you got the company logo to show up since you used a different method to embed the image than they even knew was possible (I ran into that with watermarks in word before there was an anctual "watermark" option). So, in conclusion, I have to take my dog out, and people should NOTATE YOUR CODE/script/program/magic freaking spells... Have a good day, and I offer an honest thank you for reminding me why I have been hesitating about applying for jobs I left more than 8 years ago now. I was beginning to consider it, but this little reminder was enough to guide me to one of the lesser traveled paths for me. :-D

  • @erniyunita1285
    @erniyunita1285 3 года назад

    thankyou for making this tutorial!

  • @kurtniendorf3491
    @kurtniendorf3491 2 года назад

    Great tutorial...one minor issue- apps script is under extensions currently, not tools

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  2 года назад

      Well, in a month it could move someplace else. Google likes to rearrange their menus frequently.

  • @billsamudio
    @billsamudio 2 года назад

    Hello, how are you? I would like to know if you can create a modal window in google sheets where you can select a cell to paste data into it.

  • @samiboustani624
    @samiboustani624 Год назад

    Man this is great !

  • @sarahpes32
    @sarahpes32 3 года назад

    very very helpful. thank you!!! 👍💚

  • @DarrenStanley1
    @DarrenStanley1 5 лет назад +1

    How can I get that function Prediction box you have?

  • @achalpriyadarshi8746
    @achalpriyadarshi8746 4 года назад

    Hey please help me
    I want a script to generate new invoice from invoice format saved in sheet1.
    Also i want to rename next sheet name automatically.

  • @vishalmarwaha9996
    @vishalmarwaha9996 4 года назад +1

    Hi Sir - Do you provide online classes? I am instersted to have training from you. I stays at offshore in India. Also, would like to know budget of this training. ( Spreadsheets + Google app script and Google data studio )

  • @gaurishankar5092
    @gaurishankar5092 4 года назад

    Is there a way to have a data validation in a cell only if the previous cell fullfill certain set criteria or say data validation with 2 criteria (range and custom formula)
    Thanks

  • @bencorbett743
    @bencorbett743 6 лет назад +5

    When I try and run the script on "Sheet 2 " it keeps running the data into "Sheet 1" despite "Sheet 2" being the active sheet. My script matches yours exactly but I cant seem to get this to work. any suggestions?
    P.s Thank you for the helpful content.

    • @pvictor.moreira
      @pvictor.moreira 6 лет назад +2

      I'm going through the same problem and I don't know why

    • @marcinkroszel3533
      @marcinkroszel3533 6 лет назад +1

      Same problem here. No idea why it's happening. I solved it by manually choosing the sheet I want to use function in
      var activeSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet2");

    • @ankitmishra-zw9vc
      @ankitmishra-zw9vc 4 года назад +1

      @@marcinkroszel3533 It Worked, thanks mahn!

  • @EZEQUIELIGNACIOVAZQUEZ
    @EZEQUIELIGNACIOVAZQUEZ 8 месяцев назад

    Excelente!!!!!!!

  • @marwamohsen7545
    @marwamohsen7545 4 года назад

    Is there any script that could help in highlighting the active row in google sheets? Please help!

  • @growthmind8995
    @growthmind8995 4 года назад

    Amazing content! Thanks for the video

  • @kenzdoo6406
    @kenzdoo6406 2 года назад

    Hi, I get error message "You don't have permission setValue()" bla bla... It was working before.
    EDIT: Eh, now I see, i tried to run my function in the cell. You do it by pressing "Run" command.

  • @8309-uv1qd
    @8309-uv1qd 4 года назад

    thank you very much. you do a great job!

  • @nyanswanaung1550
    @nyanswanaung1550 4 года назад

    When I click review permission, it says "Sign in with Google temporarily disabled for this app" even tho I'm using same gmail for app script and google sheet and google account. Anyone knows why?

  • @vikashharjeewan5455
    @vikashharjeewan5455 7 месяцев назад

    Can you guide me how can I convert a google sheet one tab to convert to people chips

  • @pallaviwajge5477
    @pallaviwajge5477 4 года назад +1

    Thank you

  • @toyclyde
    @toyclyde 7 лет назад

    Very good tutorial! Thank you!

  • @billparsons7732
    @billparsons7732 4 года назад +1

    At 13:03 there's a pop-up help box, how is the help box activated as I can't find it, thank you.