Google Sheets - QUERY from Another Sheet, IMPORTRANGE, Use Multiple Tabs, Subquery Examples Tutorial

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

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

  • @bobmolnar8591
    @bobmolnar8591 5 лет назад +32

    This entire series is amazingly helpful. It is THE definitive guide to using Sheets like a pro. Thank you!

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

      Agree! I wish this was in my search results 2 years ago

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

    QUERIES ARE WONDERFUL!! I was wondering how to reference a series of cells from a different worksheet into a series of cells in a different worksheet without copy-pasting a formula a million times. This is the answer. You don't have to type it all out manually, just as expected.
    Thanks for these tutorials, I looked for google spreadsheet tutorials and this series is what I came across, which is helpful.

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

      and here's a tip: to select only one column, enter this range:
      A: A
      or whatever column you want, with its name on both sides of the ":" symbol. The left side of the column is the start point and left side is end point, so you could do something like A12:A too.

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

    I don't have enough words to appreciate you putting out all this amazingly explained information for free on RUclips...
    Thank you...!!!! Thank you....!!!!! Thank you....!!!

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

    Your videos are the best. I have been able to build an entire database in multiple sheets because of your awesome tutorials. THANK YOU!

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

    I’ve searched months and found this great video to solve my problem.

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

    Thank you!!!, I was banging my head against the wall previously because IMPORTRANGE wasn't working for importing multiple sheets into a single query, you sir are awesome!! thanks again

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

    Awesome my main man. Had a bit of panic at first not working but I had forgot the QUERY at the beginning. All great.

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

    Sir, you are the Best, your videos have contributed too much in me gaining respect in my office

  • @nancylalicon4192
    @nancylalicon4192 6 лет назад +14

    This is amazing and your talent of explaining the steps inspires me!

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

    Thank you SO much - been having so much trouble sorting text data and this finally solved my problem at work!!

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

    Thank you so much! I have been able via your videos to minimize manual updates. Thanks again.

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

    I'm learning new tricks...This tricks also helpful for learning SQL queries..Thank you brad, very concise and clear..

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

    Thank you so much for this informative video. I have been looking for this for a long time. it solved my biggest problem.

  • @Richard.bassan
    @Richard.bassan 5 лет назад +7

    Greetings from Brazil. I would like to thank you for this serie, it was very helpful

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

    This is what I have been looking for. Thank you very much. Easy to understand and follow.

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

    Wow, the IMPORTRANGE explanation at 9:58 is going to be a game changer!

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

    That is an amazing lesson, and you are Talent online teacher.

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

    pretty awesome helpful and useful to the highest levelz

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

    great job with your channel, data is king

  • @Allen-L-Canada
    @Allen-L-Canada Год назад

    Wow, the subquery part is something I was looking for a long time. Since Google Sheet doesn't offer the "HAVING" SQL clause, this subquery is essentially the substitute for the "HAVING" clause.

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

      Correct 👍

    • @Allen-L-Canada
      @Allen-L-Canada Год назад

      @@ExcelGoogleSheets this is so useful that I have enhanced my spreadsheets in multiple places today. Thank a lot brother!

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

    Thanks for all your tutoring. Your videos are just what I needed as I needed to brush up on my accounting reporting skills not utilised since I retired years ago.
    The software environment has changed a lot and the advantages of Google sheets offers as a way of communicating and collaborating is significant.
    I used to use Visual dBase which had an SQL like query language so the syntax is familiar. What was great about VdB was that you could input data in a user friendly form and see the code come out on a "Command Screen". It was a great way for a novice to write and learn to code. In addition you could copy and paste the code and incorporate into larger programs.
    Wouldn't it be great if Google Sheets could come up with something similar?

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

    This video solved my biggest problem. Thanks and more power!

  • @Nishakumari-bx7zi
    @Nishakumari-bx7zi 4 года назад +1

    Helpful 👍

  • @MrChiluby
    @MrChiluby 5 лет назад +2

    This was so helpful. Literally the only place I found such a clear answer. Great video

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

    Excellent. Well done

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

    This is very fruitful and productive video that I have ever seen on RUclips. I want to to do the same thing you did but Instead of just taking the same info from sheet 1 to the master list, I need to cut the information form sheet one to sheet two while I apply query. Why I need this and ask you that because I have an Google sheet and there is a column which is just for the status of the projects in which I have pending and completed. So, whenever it is going to be completed in the sheet 1, then I want it to automatically delete the completed project in sheet one and transfer it to the master list. I will appreciate that if you can help me in this regard, not only me need this but all most all of us need to have it. A huge thnx for you and your amazing and productive videos. Best RUclips channel ever.

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

    VERY USEFUL FOR BOTH BEGINNERS AND PROS

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

    Thanks for the tutorial on using QUERY with IMPORTRANGE. Really helped me!

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

    thank you , for great sharing

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

    Thank you very much sir. Your video has helped me a lot.....

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

    This is great. Many thanks.

  • @foxhoundv1210
    @foxhoundv1210 5 лет назад +2

    Wonderful! I knew there had to be a way to query from multiple sheets, I just didn't know about the bracket for the array.

  • @VishalKumar-km4sj
    @VishalKumar-km4sj 3 года назад +1

    Awesome tutorial! Loved it. Thanks for putting in such efforts to educate folks.

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

    Excellent video, thank you!

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

    Thanks so much for posting this video! any tips on using importrange where the source file has URLs in multiple columns that you would like to show & work in the destination file?

  • @infinityvaservices
    @infinityvaservices 10 месяцев назад

    you explain it so well. thank you.

  • @gurpreetkaur-zr1qj
    @gurpreetkaur-zr1qj 3 года назад

    Ty for this video GOD BLESS U😊

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

    Thank you so much, exactly what I am looking for 😊👍👍👍

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

    Thank you its really helps me in query function.

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

    Pure gold!!!

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

    I like the way you teach about google sheet and its functions, please help me to pulldata from one google sheet to other tik by tik

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

    You are a great teacher. These videos are super helpful.

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

    Good evening,
    First of all thank for this awesome video! I learn how to do the importrange and combined it with a query from another video to add a filter on it.
    I am working in logistics in a production environment and making a tab to check each production status. For instance a tab with "Nesting" when they are collecting the materials. This will come in the "nesting" tab. But during a weekly follow-up meeting I add comments in a column next to the import range. When the "nesting" than is being put on "finished product" the imported line dissapears (which is my intention), but the comment I wrote myself just stays in the same cell and thus is 'transferred' or 'linked' to the "nesting" row below. When a status changes and dissapears how can I also let the comment dissapear with it? Is this possible?
    Thanks in advance!

  • @lapneto
    @lapneto 10 месяцев назад

    @ExcelGoogleSheets What if I have it more dynamic, referencing each of the importrange in 4 cells, one each. If one is blank (as it may be), is there a way to handle the error (similar to what iferror does)? My sheet still imports the same data (or behaves funny) when I delete one of the ranges... thanks for the help! Your videos are always very good and didactic!

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

    Thanks for your help

  • @markuswinter-cdps3008
    @markuswinter-cdps3008 6 месяцев назад

    Thanks so much for these videos! What I have yet to find is a video that addresses querying the same tab/sheet from hundreds of different worksheets. So, my situation is such that I have a running list of reports for a calendar year. By the end of the year, there are 400 or so reports. Within the reports, there is a equipment2 sheet that I am trying to query with a range from B4:E28, where the results can be either 1 row, or all 25, depending on how much equipment was used for that given incident (potentially no rows, if no equipment was used). I have a script that imports all the URLs from the reports into a tab/sheet that is called ReportURLs. Column D houses the URLs. So, how can I query ReportURLs!D2:D dynamically to pull out all the data? Thanks!

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

    You all are awesome. Thank you for the great videos you create and share!

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

      hi..can u pls help me coz, after i the formula when i enter doesnt extract my data only showwd is the headers..thanku

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

    Amazing. Thanks. Is there a short cut for chromebook to use the Dollar $ to lock the cell?

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

      No F4 on Chromebook?

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

      @@ExcelGoogleSheets unfortunately, nope. Even if I try to use an external keyboard, it does not work with the same functionality

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

    Its a great Video and help alot in my reporting... i have too much data like 15000 line with Columns goes upto BS. getting error Result too large how to rectify this?

  • @aNDy-qh1em
    @aNDy-qh1em 2 года назад

    Thank you so much sir, thank you so much, sir. Your tutorials ones of the best because of being halpful and very clear explanation (English is not my native) ! My questions is: do you need to do subquery because there is no 'having' statement in the 'google sql' ?

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

    Thanks.. it really help very much..

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

    Hi Great videos, the explanation is clear, but can I do the editiing on the data that I have imported to new spreadsheet?

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

    I'm running into the same problem.
    "At 18:49-18:50 in the video, there is an error message that pops up saying "In ARRAY_LITERAL, an Array was missing values for one or more rows." Are you able to explain what that means, and how to fix it?"

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

    Is it possible to filter both IL & CA at the same time during query and importrange?

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

    can i have a query function on the upper part of the sheet and a different query function on the lower part of the same sheet?

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

      No, according to my knowledge.
      because query function needs its next lines to be empty.
      when you'll write the second query function, first one will give you an error: "Array result was not expanded because it would overwrite data in A249".
      A249 just for the example.

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

      You can, so long as the first function has enough space for expected results.

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

    Thank you for your sharing. I learn a lot from this video.

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

    Really good, very clear tutorial

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

    Hi there. Using this formula,Is it possible to do multiple filter in the same column?

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

    Thank you!!!! So easy to follow and understand :D

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

    7:50
    What if the 2 tables (transactions and transactions previous) have different columns/different number of columns?
    How would the Col8 thing work?

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

      Watch my Pivot Table from multiple sheets video for a solution.

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

    level 40 google sheets! Thank you.

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

    Thanks, with the query how do we add the TAB "name" to each row so we know which TAB the match came from

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

    Does it in effect do a join on a common field in, both sheets?

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

      No. Google Sheets QUERY doesn't support SQL like join. Use VLOOKUP to get something similar to join.

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

    Wow Brother, thanks for making life Easy

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

    Great video, extremely useful! Thanks!

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

    Very useful mate, your video helps me a lots

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

    Wow amazed.. thanks again man.

  • @Success.simplified_
    @Success.simplified_ 4 года назад +2

    !!!!
    I used importrange function to copy a range from one sheet to another and I made some column in that sheet which were filled manually.
    how can i fix the manually/static filled data with the automatic/dynamic filled data?

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

    While pulling data from another spreadsheet with multiple tabs, can I specify the number of the tab instead of the name of the tab in the importance function? Basically, the source sheet from where I need to pull data from will have multiple tabs but I want to keep the first tab as the default source of the data, no matter what the name of the tab is. Data needs to be pulled from just one specific cell, say A1.

  • @ge2893
    @ge2893 5 месяцев назад

    You are a WONDERFUL teacher, Thank You!😊

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

    Awesome TUT man

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

    Great vid... thx. I can't find the limit of the number of tabs you can query with { }. I think I'll have to look at some scripts since my file will keep growing daily with new tabs that will need to be referenced.
    Thx again.

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

    Great demo. Is there a way to retain the formatting from your Master sheet onto your new sheet so it looks like the Master Sheet?

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

    Your video is really amazing. But I have a questions. I'd like to set up on Google Sheet where I can search just typing initials, such as "P" in a cell and them query makes the information in my sheet appear. Such as you've done with Shirt. Could you help with the funcion formula?

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

    Appreciate the examples!

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

    Very clearly explained - thank you!

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

    What is the boundary limit you mentioned? Could I use 50-60 import ranges for example

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

    ThanQ alot 😘

  • @AprilSheree17
    @AprilSheree17 5 лет назад +2

    Thank you, this was so helpful!

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

    Great Presentations. Would you share the sheets data so we can practice?

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

    Given a column of spreadsheet URLs and possibly next to each a range I. E. Transactions!A2:b30, is it possible to automatically pull and join the data from all those sheets?

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

      I had to use google script so that when a new URL and range is added, it builds the formula to join all the importrange formulas inside a query formula based on the URL list

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

    Thank you for nice series on Google query and other advanced techniques.
    I have a problem regarding Google Finance. Hope you can give me proper guidance. The problem is that I wish to compute Weekly, Bi-weekly and Monthly gains by a list of stocks. Google finance gives 'changepct' for daily data. But for weekly data it doesn't. I have made a formula using query to compute weekly percent change. But for Bi-weekly I have not yet succeeded. Can you suggest any formula for bi-weekly and monthly gains of stock prices. May be I am missing some where some thing.....

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

      How did you do the formula for weekly percent change?

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

      @@ExcelGoogleSheets Thanks for your quick response. As you asked, let me explain.
      There is a provision in GoogleFinance to list the weekly prices of a stock. With that I made a formula using queries, which gives the desired result. The process is a bit cumbersome.
      Here how i did it. Using query from GoogleFinance weekly price list - sorted in desc order, i) I extracted the first price (using Limit 1)-say A, II) extracted sum of first two prices (using Limit 2)-say A+B. Knowing price A and sum A+B, it is just use of algebra to get A-B [2A-(A+B)]. This will give latest weekly price change. Then computing % change is easy.
      This resulted in a large formula. And let me inform you that I have also computed the bi-weekly and monthly percent changes. But these all are large formulae and prone to make mind boggling mistakes while constructing it. Hence I wanted to know how to select the price using the GoogFinance output where the first column is date. I have seen your video on extraction of data based on date limits. But that is not working with in line Google Finance data, neither as a date or number. This would have made the life easier. Can you suggest something on this problem?
      The answer is a bit long, but then I have to explain any way.

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

      Yea, I'm afraid my solution wouldn't be simple either.

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

    Awesome!!

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

    Hi there, seems excellent and what I need but it doesn't work for me as my "IL" criteria is more diverse.. I need to look within the celle for one word (people answered paragraphs)
    can we please exchange on this issue? that would be very kind . Dave

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

    These video are super helpful as the steps are explained very well. I have tried various formulas to meet what I need and while I can make each formula work on it's own, i'm having trouble finding the right combo. I have two workbooks. I need one workbook to vlookup / match a name in a column that is on another workbook. Example, John Doe appears in Coulmn H in 1 workbook named WRAP. I need the formula to search column B in another workbook Named Assets, to see if that name is true. If it is True, then it should highlight the name in WRAP workbook a color, using conditional formatting. Ideally, once John Doe has been removed from Assets workbook the Wrap workbook will remove the highlight. Sorry for the long comment. Is there another way to submit this. Would love your help!

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

    This was so helpful. But when i'm using query(importrange) function to get data from one sheet to another sheet data is not fetching all the time. some times it is given error like #value. May i know solution here with google script or something. Thank you so much in advance!🙂

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

    Hi, great tutorial. Can this query syntax be used from a script? Have you got some examples to indicate? Thanks

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

    9:59 QUERY + IMPORTRANGE
    20:07 SUBQUERY

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

      Thank You!

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

      @@ExcelGoogleSheets are you kidding?! Thank YOU! 👍👍

  • @21zaman
    @21zaman 5 лет назад

    because if we enter data in linked sheets than master sheet shown the data in between sheet and sequence will be disturb. i want all updated data should be shown at the last.. is there any option please let me know.

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

    Great tutorials!

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

    If pulling from another URL, should it still be A2:H or can it be A1:H? Thanks for the great videos.

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

    Thanks for the awesome video. How can we overwrite importange spreadsheet data from destination sheet so source sheet data will be changed ?

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

    Any video to use query function with index match, or any alternative for this

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

      I don't understand why you would need that.

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

      @@ExcelGoogleSheets I was also wondering because it wasn’t picking up the right match. It was refereeing to the row number instead of match.
      I guess it was because I used rang names when referencing to range and gave name to the whole colum not some rows as I wanted to make the names range dynamic.
      But somehow it is picking up right not sure what happened but problem solved.
      I did =index(importrange),match(importrange)

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

    This is very helpful, but I another question. I have used the Query ImportRange function to move data from one sheet to another but my SELECT WHERE is referring to a specific date. I.e. I want to move all data where the date is 5/1/2020 and later. When I use the formula you suggested it works but all of my information is showing up on one cell block. How do I fix this?

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

    Could you please say what word to use when I need to query information not from a column (Col1/Col2/...), but from a line (which are designated as '1', '2', '3'). I have a page with columns often changing their positions, so I need to query a value from (line2) if (line1) contains 'specific-word'

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

    So Very Helpful and Succinct!
    I would appreciate knowing if there is a way to use an item on a Dropdown List (MASTER BEDROOM), as the QUERY?
    As in.... =QUERY(SELECTIONS!$A$1:$N$201,"SELECT A, B, C, D, E, F WHERE D = 'MASTER BEDROOM'",1) but replace 'MASTER BEDROOM' with the cell reference $A$3 that is a Dropdown List
    Also is there a way to "SELECT all columns, so complete rows of data are returned if they contain MASTER BEDROOM in column D?
    Cheers!

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

    hi, my sheet have merge 10 cells, when using query function it only read the first line correctly than the second line staright away jump to data which is line 21. how can i solve this issue.

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

    Thanks a lot, great learning..so how I getting this files , its better to practice.

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

    What if more than 2 things to be filter in the single column

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

    Fantastic! Quick question, what If i want the query for more than one option. So in your example I want to show for IL and CA at the same time. How would you do that?