Google Sheets Query Function Explained

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 มิ.ย. 2024
  • Join 400,000+ professionals in our courses here 👉 link.xelplus.com/yt-d-all-cou...
    Dive into the world of data analysis with Google Sheets' QUERY function. While it might seem intimidating at first, understanding its basics unlocks a world of possibilities. From simple data retrieval to complex analysis, QUERY is your go-to tool.
    🎓 To master the QUERY function and other important functions check out my complete Google Sheets course: www.xelplus.com/course/google...
    🔑 Key Points:
    ▪️ Understanding Clauses: Learn the sequence and usage of clauses like SELECT, WHERE, GROUP BY, ORDER BY, and PIVOT. Remember, the order is crucial.
    ▪️ Practical Examples: Start with basic queries like selecting specific columns, then advance to aggregating data with SUM, and sorting results with ORDER BY.
    ▪️ Advanced Usage: Explore grouping data with GROUP BY, pivoting data for a clearer view, and using ORDER BY for sorting.
    ▪️ Custom Formatting: Utilize the FORMAT clause to tailor the appearance of your data directly within the QUERY function.
    ▪️ Labeling and Limiting: Change column labels with the LABEL clause and limit the number of results with LIMIT for concise reports.
    The QUERY functions is one of THE most powerful functions in Google Sheets when it comes to data analysis and data manipulation. But because it has all this flexibility it's not an easy function to master at first.
    In this video I'll teach you the basics and the set of rules you need to follow if you really want to understand the Query Function in Google Sheets. You'll learn how to use SELECT, WHERE, LIMIT, GROUP BY, FORMAT and other clauses to filter data. You'll also learn how to exclude null value cells or cells that are empty when using QUERY. Also how to include cells with a specific value. We'll sort data in ascending and descending order with Query. We'll also use aggregation functions in QUERY such as the sum function.
    00:00 How to Use the Google Sheets QUERY Function
    00:43 Clauses in Google Sheets QUERY Function
    01:57 Practical Example with Google Sheets QUERY Function
    04:41 How to Aggregate Data with Google Sheets QUERY Function
    08:27 How to Use Order By Clause in Google Sheets Query Function
    10:19 How to Format Data with Google Sheets Query Function
    11:06 How to Use the Label Clause in Google Sheets Query Function
    11:32 How to Use Limit Clause in Google Sheets Query Function
    Check out this video to learn how to use QUERY function together with IMPORTRANGE: • IMPORTRANGE Function i...
    More Google Sheets Tutorials: • Google Sheets Tips, Tr...
    ★ My Online Excel Courses ► www.xelplus.com/courses/
    ➡️ Join this channel to get access to perks: / @leilagharani
    👕☕ Get the Official XelPlus MERCH: xelplus.creator-spring.com/
    🎓 Not sure which of my Excel courses fits best for you? Take the quiz: www.xelplus.com/course-quiz/
    🎥 RESOURCES I recommend: www.xelplus.com/resources/
    🚩Let’s connect on social:
    Instagram: / lgharani
    LinkedIn: / xelplus
    Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
    #googlesheets #query

ความคิดเห็น • 225

  • @LeilaGharani
    @LeilaGharani  4 หลายเดือนก่อน

    Get access to the complete Google Sheets Masterclass here 👉 www.xelplus.com/course/google-sheets/

  • @bobbyman410
    @bobbyman410 3 ปีที่แล้ว +45

    The biggest thing I like about Leila is how she interacts with everyone in the comments and considers her viewers as friends. Great content as usual, can't wait for the next video!

    • @LeilaGharani
      @LeilaGharani  3 ปีที่แล้ว +12

      Thank you! We're friends with similar interests - specially that we all love to learn.

  • @davidtmiller56
    @davidtmiller56 3 ปีที่แล้ว +6

    Another excellent video. I’ve been using the Query function since 2015. This is an excellent quick overview. Well done.

  • @malikastar9265
    @malikastar9265 ปีที่แล้ว +1

    All your tutorials Leila are great, clear and to the point, thank you !

  • @IsraTC
    @IsraTC 3 ปีที่แล้ว +1

    La manera en la que llevas el paso a paso hace que sea sumamente útil, contigo práctico 2 casas a la vez.
    El excel y el idioma.
    Muchas gracias Leila, saludos desde México

  • @dlovegrove11
    @dlovegrove11 3 ปีที่แล้ว +1

    Wow, this is great! I have recently started diving into Google Sheets, and this video is super helpful and clear. Thanks!

  • @jjackson4273
    @jjackson4273 10 หลายเดือนก่อน +1

    I was really overwhelmed by the query function, but you made it simple to understand. Thanks so much for this video!

  • @charlesrobertthomas
    @charlesrobertthomas 5 หลายเดือนก่อน +1

    I've been watching your videos in MS Excel and wanted to try my hand at Google Sheets. This is the first of your videos I've watched on Google Sheets. AWESOME!!!!! Wish I had known earlier that you were a Google Sheets guru as well, it would have saved me a ton of time.

  • @imr4nkhan
    @imr4nkhan ปีที่แล้ว +1

    This is so powerful and your presentation style makes it look way too easy... thanks Leila, you rock!💥

  • @RajeshKumar-mf3jf
    @RajeshKumar-mf3jf 3 ปีที่แล้ว

    you have a great illustrating power, whatever i am currently doing in my business, every credit goes to you Leila,

  • @mahsekerpolat3817
    @mahsekerpolat3817 2 ปีที่แล้ว

    You are my rescue! Thank you So much for your amazing work!

  • @abdullahquhtani4247
    @abdullahquhtani4247 3 ปีที่แล้ว +5

    You are one of my favorite instructors. I bought your Excel courses on Udemy. BUT this one is beyond my budget as a collage student 😢 I may consider enrolling when there is another discount on next Black Friday or sooner one. Thank you 🙏.

  • @matrixsecurityandautomatio427
    @matrixsecurityandautomatio427 ปีที่แล้ว

    Leila ma'am, you are spreading your knowledge in a great way. Thanks for your efforts

  • @ehsanbb1983
    @ehsanbb1983 4 หลายเดือนก่อน

    Great! Thank you Leila

  • @aryanbarnwal5180
    @aryanbarnwal5180 2 ปีที่แล้ว

    Great tutorial helped me understand the query function easily, which I was finding challenging at first.

  • @mirekkryskapriv7445
    @mirekkryskapriv7445 ปีที่แล้ว

    Great explanation! Thank you a lot!!!

  • @CharcoalDaddyBBQ
    @CharcoalDaddyBBQ ปีที่แล้ว

    This has made my daily life so much easier!!

  • @michaelcasabar4316
    @michaelcasabar4316 ปีที่แล้ว +1

    i learned more from you than my college prof. Great vid!

  • @nadeemmalik8031
    @nadeemmalik8031 3 ปีที่แล้ว +6

    Google Sheets is really cool. I like the way Leila explains the Query Function. It is very well illustrated and Leila's examples used to explain the topic are always brilliant and well thought out. Leila you really are the best video tutor on TH-cam. Your experience and knowledge is exemplary.

    • @LeilaGharani
      @LeilaGharani  3 ปีที่แล้ว

      Glad it was helpful, Nadeem!

  • @josericardo3015
    @josericardo3015 3 ปีที่แล้ว +1

    Very Powerful Function!

  • @hosseinkhabiri4060
    @hosseinkhabiri4060 ปีที่แล้ว

    سپاس سرکار خانم قرانی، مفید بود.

  • @davidlondon9242
    @davidlondon9242 2 ปีที่แล้ว +1

    Great video. I found out what I needed to know, quickly, in a way that was easy to understand and apply for my circumstance. Thank you.

  • @markfrombriz
    @markfrombriz 2 ปีที่แล้ว

    Brilliant explaination, so clear

  • @iancarr3923
    @iancarr3923 ปีที่แล้ว

    Excellent introduction to Query. Thanks

  • @ilfipetrov9208
    @ilfipetrov9208 ปีที่แล้ว

    Thank you so much! Great video. Finally got around to tackling this issue )

  • @tonester1964
    @tonester1964 ปีที่แล้ว

    This video was awesome!

  • @crmwako2757
    @crmwako2757 2 ปีที่แล้ว

    Thanks a lot, so helpful!

  • @hiteshrathod692
    @hiteshrathod692 3 ปีที่แล้ว +1

    This is helpful...
    Thank you Leila!

  • @anorenbergs
    @anorenbergs 3 ปีที่แล้ว

    Leila, you are the best. Thank you!

  • @xiangxiang397
    @xiangxiang397 2 ปีที่แล้ว

    Nice!!! This was the very first watching video about query :)

  • @viniciusdias5478
    @viniciusdias5478 3 ปีที่แล้ว +1

    Very good Leyla, congratulation!

  • @rahulrustagi6119
    @rahulrustagi6119 2 ปีที่แล้ว

    👍👍👍 huge fan of your knowledge

  • @paulminosa7740
    @paulminosa7740 ปีที่แล้ว

    This Video Saves my day awesome

  • @AnandGautam9901
    @AnandGautam9901 2 ปีที่แล้ว

    This one is awesome basic understanding

  • @aumarivero
    @aumarivero 3 ปีที่แล้ว

    Thank you so much for this tutorial. You saved me!

  • @2000sunsunny
    @2000sunsunny ปีที่แล้ว

    Magic function. Enjoyed :) Thank you

  • @ahmedmorsy8214
    @ahmedmorsy8214 2 ปีที่แล้ว

    Super useful thank you

  • @Beantravel
    @Beantravel 5 หลายเดือนก่อน

    I found this video very helpful ❤

  • @KNLP23
    @KNLP23 ปีที่แล้ว

    Good job! Keep it up!

  • @mohammadashiq9996
    @mohammadashiq9996 3 ปีที่แล้ว +2

    I like Google sheets Query function trying more time making a more sense thank you Leila.

    • @trongpham9999
      @trongpham9999 2 ปีที่แล้ว

      You will be more surprised when using the keywords "format", "pivot", "label", "limit".
      Try it!

  • @amarchaurasia3821
    @amarchaurasia3821 2 ปีที่แล้ว

    Always a valuable video. Happy to see that 0 dislike. Perfecto

  • @wayneedmondson1065
    @wayneedmondson1065 3 ปีที่แล้ว +1

    Hi Leila. Very interesting and powerful function. Thanks for the examples to get started. Thumbs up!!

    • @LeilaGharani
      @LeilaGharani  3 ปีที่แล้ว +2

      You are so welcome Wayne! Thank you.

  • @ebinvarghese8624
    @ebinvarghese8624 3 ปีที่แล้ว

    Thank u very much madam. Your video is very easy to understand difficult areas of excell and google sheets. God bless u.

  • @hassanmburia8825
    @hassanmburia8825 ปีที่แล้ว

    Thanks you so much

  • @ranganathasadalbanjan9802
    @ranganathasadalbanjan9802 ปีที่แล้ว

    I love this.

  • @kerronduncan6697
    @kerronduncan6697 3 ปีที่แล้ว +1

    I clearly am guilty of underestimating google sheets. Wow powerful function. Thanks for sharing Leila!!

    • @LeilaGharani
      @LeilaGharani  3 ปีที่แล้ว +2

      Glad it was helpful! There are quite a few hidden gems in sheets.

  • @venkatiyer7459
    @venkatiyer7459 3 ปีที่แล้ว

    Thanks again for teaching something new ... your teaching skill is too good ...

  • @SothearithKONGMrMuyKhmer
    @SothearithKONGMrMuyKhmer 3 ปีที่แล้ว +2

    Google sheet has some more special features than Excel. Thanks Leila for great video, as always! 👍😍

  • @dvd.25
    @dvd.25 2 ปีที่แล้ว +1

    I saw many videos about query function, but I could not understand and learn enough to use it. Thank you Leila. Now all the concepts got clearer and I learned a lot through this video. I am subscribing you. Thank you again..

    • @LeilaGharani
      @LeilaGharani  2 ปีที่แล้ว

      Happy to hear that, David!

  • @chaddemeuse6760
    @chaddemeuse6760 2 ปีที่แล้ว

    You're the best, hands down. Smashing the subscribe button

  • @pjpw2320
    @pjpw2320 2 ปีที่แล้ว

    Great video, Leila. Thank you.
    Is it a viable option to create a table area within a Google Sheet to set up various "what if" options in terms of input of various query variables for a certain set of data?
    Changes to inputs could then be quickly made by changing the variables in the table area.
    And, from a practical perspective, how far could you go with this methodology in terms of not just input variables for the various query clauses, but mathematical and boolean operators used in the query function as well, if at all possible?

  • @rodcas
    @rodcas 3 ปีที่แล้ว

    who else read ”Quiero function”? happy new year ty for all the vids

  • @AccountingandQuickbooks
    @AccountingandQuickbooks 3 ปีที่แล้ว

    Leila you always create amazing and helpful videos. 👍👍👍

  • @markk3701
    @markk3701 3 ปีที่แล้ว

    Most helpful person on TH-cam

    • @LeilaGharani
      @LeilaGharani  3 ปีที่แล้ว +1

      I appreciate that! Thank you.

  • @ambotsaimo9467
    @ambotsaimo9467 3 ปีที่แล้ว

    Thank you for sharing your knowledge!!! You have a very clear and organized presentation! I salute you Mam!

  • @kevincockburn6305
    @kevincockburn6305 3 ปีที่แล้ว

    Great Thanks

  • @SamirHabib
    @SamirHabib 2 ปีที่แล้ว

    Təşəkkür edirəm Leila!!

  • @BaluSubbuBalasubramanya
    @BaluSubbuBalasubramanya 2 ปีที่แล้ว

    Simple and under standing 🧍‍♂️ 👌

  • @lnlefteris4744
    @lnlefteris4744 3 ปีที่แล้ว

    Amazing video!!!! Many thanks! just a question: does it have window functions like for example sum(sales) over (partition by scenario order by App)

  • @nitee2482
    @nitee2482 2 ปีที่แล้ว

    super cool this is 🎉

  • @Veigaburame
    @Veigaburame ปีที่แล้ว

    you are the legend

  • @blackknight6452
    @blackknight6452 3 ปีที่แล้ว

    Thank you Leila. And happy new year

  • @yukari3305
    @yukari3305 ปีที่แล้ว

    Thanks and for the sharing Teacher Leila

  • @undhaddipak
    @undhaddipak 3 ปีที่แล้ว +1

    it is most useful video and enhance my knowledge. Thank you mam

    • @LeilaGharani
      @LeilaGharani  3 ปีที่แล้ว +1

      It's my pleasure, Dipak.

  • @danjarupath
    @danjarupath 3 ปีที่แล้ว

    💕💕💕💕💕 Love your vdo

  • @rbfreitas
    @rbfreitas 9 หลายเดือนก่อน

    Great video

  • @TheEmjay19
    @TheEmjay19 2 ปีที่แล้ว

    Hi Ms Leila, really informative video, thank you!
    I have a question, if you please, in this query function, how do you select the column BY?

  • @safashaikh4089
    @safashaikh4089 3 ปีที่แล้ว

    Wonderful video thanks 👍

  • @NuriaHidalgo
    @NuriaHidalgo 3 ปีที่แล้ว +1

    Mein Gott, so viele Sachen 😅 dankbar, dass ich dein Google sheets Kurs gekauft hatte 👍🏼

  • @thinkthinktechs1119
    @thinkthinktechs1119 3 ปีที่แล้ว

    Amazing work leila,I have seen all other google sheet videos on youtube but none looks wonderful like this

  • @praveensharma2632
    @praveensharma2632 3 ปีที่แล้ว +2

    One more wonder by Leila.👍

  • @mrashid229
    @mrashid229 3 ปีที่แล้ว

    The best thing about this video is, it is only (12:3৪) long but describes most lucrative aspects of query() and SQL(google sheet) so clearly! Apparently too short (time) to cover so many features. Once again I am amazed by your presentation/delivery skill Leila.

  • @peterwoods35
    @peterwoods35 ปีที่แล้ว

    Nice!

  • @martinapenasso
    @martinapenasso 2 ปีที่แล้ว

    Hi Leila, this video is super useful!! Thank you. Do you know if there is any chance to do the same in Excel?

  • @mohammedhassan2808
    @mohammedhassan2808 3 ปีที่แล้ว

    Amazing tricks

  • @TylerStanczak
    @TylerStanczak 3 ปีที่แล้ว +3

    Haha I love that part at 0:24 really cool gif insert. :)

  • @sathyamoney
    @sathyamoney 3 ปีที่แล้ว

    Nice video... Learned something new today thanks...😊😊😊

  • @bradleyhowell3298
    @bradleyhowell3298 3 ปีที่แล้ว

    What a fantastic video! My brain hurts but I followed most... You will be seeing more of me!

    • @LeilaGharani
      @LeilaGharani  3 ปีที่แล้ว

      Glad you like it! Welcome aboard :)

  • @rehanahmad1306
    @rehanahmad1306 ปีที่แล้ว

    Hello Leila, your tutorials are always helpful. I want to ask if query function is helpful in creating a dynamic content calendar, where we put all detail on a sheet and it get posted on calendar automatically?

  • @hosseinhosseinpoor4845
    @hosseinhosseinpoor4845 3 ปีที่แล้ว

    thanks..

  • @highnickelalloys
    @highnickelalloys 2 ปีที่แล้ว

    Thanks!

  • @chelahjojo4563
    @chelahjojo4563 2 ปีที่แล้ว

    well done

  • @Augusto_SilvaN
    @Augusto_SilvaN 2 ปีที่แล้ว

    Thanks

  • @chakralamurali
    @chakralamurali 10 หลายเดือนก่อน

    Excellent madam

  • @tangsh497
    @tangsh497 3 ปีที่แล้ว

    powerful and complicated formula

    • @lacs83
      @lacs83 3 ปีที่แล้ว

      complicated???

  • @Paulydude1
    @Paulydude1 3 ปีที่แล้ว

    Wow that’s powerful and easy, if you already know sql. Thanks

  • @franciscovwilliams
    @franciscovwilliams 3 ปีที่แล้ว

    What a useful video! I did not know this function in Google Sheets. It's kind of similar to Pivot Table in Excel. I like it because it makes you feel like a badass programmer! haha

  • @les.matematika.online
    @les.matematika.online 8 หลายเดือนก่อน

    Very lucky to find this video, because I have a problem related to my business which requires connecting some data in Google Sheet, thank you

    • @LeilaGharani
      @LeilaGharani  8 หลายเดือนก่อน

      Glad it was helpful!

  • @trongpham9999
    @trongpham9999 2 ปีที่แล้ว +1

    4:04 I have a note, @Leila
    We will use Column number (like Col1, Col2, Col3) when using ImportRange() function or using array with { }
    even though the database and the QUERY() place are the same workbook.

  • @EnglishSquared
    @EnglishSquared 2 ปีที่แล้ว

    Great video. I need to select from a dataset based on color. I am quite new at this - if anyone has some hints (a good video, for example), that would be great.

  • @davidjr.5584
    @davidjr.5584 3 ปีที่แล้ว

    Hi Leila, love your content.
    Can you do a video about social network graph in excel?

  • @rohitbhandari6382
    @rohitbhandari6382 7 หลายเดือนก่อน

    ur awesome madam thanks

  • @girishwavhal6171
    @girishwavhal6171 2 ปีที่แล้ว

    Hi Leila, Just wanted to to know how can we select a specific word from a particular cell and through the query can we also get the count of that unique word..

  • @murugana3013
    @murugana3013 3 ปีที่แล้ว +1

    Wonderful explanation, i love this

  • @sachitsrinivas03
    @sachitsrinivas03 2 ปีที่แล้ว

    Great Video, how do I sort a column month-wise in ascending order?

  • @TheTramos00
    @TheTramos00 3 ปีที่แล้ว

    After learning enough Excel and enough VBA I think that Google Sheets is the right direction. But Javascript is needed also to see the real potential. Thanks for these videos.

    • @LeilaGharani
      @LeilaGharani  3 ปีที่แล้ว +1

      Agree. JavaScript would be a good language to know (I'm actually learning it now 😀) Excel online also uses JavaScript so it will be easy to create automations on both sides.

  • @2JSinc
    @2JSinc 3 ปีที่แล้ว

    Thanks you for this, after watching this and the importrange video, I managed to use the query function to import columns from my google form's, Form Responses sheet into a new Print Layout sheet, and do a switch functions on the imported data and populate several columns, now I have a Google form for entering my 3 required fields and have 8 column/fields automatically and automatically have a formatted layout ready for printing for my report. I could also just send the link of the google form to our personnel on the field and have them submit an entry anywhere they go... Thank you Super Hero and Gorgeous Ms. Liela...

    • @LeilaGharani
      @LeilaGharani  3 ปีที่แล้ว +1

      That's great! I'm glad the videos are helpful.

    • @2JSinc
      @2JSinc 3 ปีที่แล้ว

      @@LeilaGharani been watching your videos for several years now and they have been very helpful. Thanks for making them free to watch for all of us here... Happy new year!

  • @jagdishhaldankar4677
    @jagdishhaldankar4677 3 ปีที่แล้ว +1

    Hi Leila.
    Great video. Thanks for making such informative videos.
    Few queries:
    1) What is more efficient? (Query, Array, Pivot Tables)
    2) How skip first row or any specific row?

  • @josericardo3015
    @josericardo3015 3 ปีที่แล้ว

    Tks for the video Leila!
    As usual very explained!
    Is there in Google sheets something as Power Query in order to clean unstructured data?

    • @LeilaGharani
      @LeilaGharani  3 ปีที่แล้ว

      BigQuery seems to be the Power Query alternative. I haven't had a close look yet though....

  • @joaquinhernandez1205
    @joaquinhernandez1205 3 ปีที่แล้ว

    Can you use this function with data from a different google sheet? IF so, how do you select the range you want to import?