QUERY - Select a Range of Multiple Columns in Google Sheets

  Рет қаралды 80,066

Learn Google Sheets & Excel Spreadsheets

Learn Google Sheets & Excel Spreadsheets

Күн бұрын

Пікірлер: 80
@JMC2935
@JMC2935 3 жыл бұрын
I'm following your lessons from France. Your pronunciation for a non native English listener and your teaching techniques are brilliant! I have so much improved my skills at work. I thank you so much!
@davidcohen1861
@davidcohen1861 2 ай бұрын
I commented on one of your other videos that your amazing and this one continued to prove that. Thank you again. You not only showed me what I needed but I was learning so much from you that I even took it a step further without guidance and made it work. Thank you! Amazing instructor!
@GM085
@GM085 9 ай бұрын
The Choosecols function, which was not available at the time of this video, can make the process easier. You can use Sequence inside Choosecols to select a range of columns. For example, if you want columns 3-7 and 10-15, the formula would look like this: =choosecols(query(TEXT!A1:T,"select *",1),sequence(5,1,3),sequence(6,1,10)). Forgivingly, it also works if you swap the rows and columns in the Sequence; i.e., in a Choosecols function, sequence(1,5,3) works the same as sequence sequence(5,1,3). If you have a long string in your Query, then putting it in a Let function and inserting some returns makes it simpler.
@ArthurBorges-yi7uh
@ArthurBorges-yi7uh 8 ай бұрын
Thanks a million pal. That information helped me a lot. All the best
@tecnoideas7436
@tecnoideas7436 3 жыл бұрын
Greetings from Paraguay. You are the best teacher ever. The content of your channel is liquid gold! I just asked my sister if she wants to marry you...
@robertmaluka2763
@robertmaluka2763 3 жыл бұрын
I could never do query function. I just did filter function. Now I am starting with query function, Thanks again your videos so helpful, I learn so much.
@nssdesigns
@nssdesigns 2 жыл бұрын
I binge watch ALL your videos. You are the goTo guy for advanced sheets stuff. This helps a lot!
@Maestr055
@Maestr055 3 жыл бұрын
Never used SEQUENCE, awesome to learn, thanks! As always, my 0,02 $ just to give some alternatives: 1. you can use MATCH to find the col number: =QUERY({TEXT!A2:G};"Select Col"&MATCH(A1;TEXT!1:1;0)&", Col"&MATCH(B1;TEXT!1:1;0)&", Col"&MATCH(C1;TEXT!1:1;0);1) you need to set the data array to skip the headers and the query sheet will need to have column names in it to look for. this can be very powerful in combination with a validated list for the column headers 2. you can replace the ARRAYFORMULA with just a join (both formula's below amount to the same): =ARRAYFORMULA("SELECT " &JOIN(", "; "Col"&Sequence(1;10))) ="SELECT Col" & JOIN(", Col";SEQUENCE(1;10))
@ronamyzacarias4110
@ronamyzacarias4110 2 жыл бұрын
Thanks for sharing this
@tanveerhussain3881
@tanveerhussain3881 3 жыл бұрын
Nice Best Unique
@TheHeatingEngineer
@TheHeatingEngineer 3 жыл бұрын
A great video, well presented and very informative. Well done and thanks.
@eugeniab9680
@eugeniab9680 3 жыл бұрын
so cool, as always! thanks for doing this!
@anvi84
@anvi84 3 жыл бұрын
Thank you for the new trick to use in the query formula. Am I the only one who gets excited when I see a new video posted by you? 🙂
@garychadwick1240
@garychadwick1240 3 жыл бұрын
Really useful for large data sets. Thanks as always!
@SudipChakraborty-d5m
@SudipChakraborty-d5m 8 ай бұрын
Just what I was looking for. Many Thanks!
@marcosrs75
@marcosrs75 3 жыл бұрын
Amazing trick! Seriously, one of the most brilliant! Your channel is the best one.
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
Wow, thanks!
@diaa2262
@diaa2262 3 жыл бұрын
Thank you very useful, Can we have the same idea with a dynamic range of rows.
@lafamillecarrington
@lafamillecarrington 2 ай бұрын
Really interesting discussion. I think that I would just hide the columns that I am not interested in using!
@sukanandnarula8898
@sukanandnarula8898 3 жыл бұрын
I never comment on videos - but I have been using your video as guides and have managed to automate a lot of my business. I want to sincerely thank you for your videos. You are doing an awesome job and a great service. Always look forward to new videos. I was wondering if you have the time; could you do a video on google sheets and whatsapp integration - for example - like sending whatsapp message from sheets - or even better can take a message from whatsapp and pull corresponding data from the sheet and send back message to whatsapp. Anyways keep up the good work!
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
Unfortunately, whatsapp currently doesn't have a publicly available API.
@johndarenvaldez5726
@johndarenvaldez5726 2 жыл бұрын
That is awesome buddy! You just solved my problem today. Thank you so much. New subscriber here from the Philippines.
@ExcelGoogleSheets
@ExcelGoogleSheets 2 жыл бұрын
👍
@HagridThoughts
@HagridThoughts 3 жыл бұрын
Thanks for putting these great videos together! They’re always helpful and spark new ideas. I was wondering if there is a way to dynamically select multiple columns by using checkboxes
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
I have recorded a video on this. It will most likely be published next week.
@n3rVex
@n3rVex 3 жыл бұрын
@@ExcelGoogleSheets can't wait for that one!
@alexmstn
@alexmstn 3 жыл бұрын
Thanks a lot! I had same issue early today! 😀
@sharadgupta2007
@sharadgupta2007 3 жыл бұрын
Great
@dadtrepreneur7550
@dadtrepreneur7550 Жыл бұрын
Great tutorial video! Keep it up! I am trying to create a registration form, what would be the formula within this formula I want to pull data to how many people are registering? Would I have to create several different spreadsheet? For example 1 person, 2 people, 3 people, etc. But I don't want the data for 1 person to show in my spreadsheet for 3 people.
@arunthathirema6568
@arunthathirema6568 3 жыл бұрын
sir will the query function do column wise copy.for example if there are sheets with names Eng,Maths,Language and Each sheet with column labels test1,test2,test3. i want to pull out the values of test1/test2/test3 of all 3 subjects in a single table based on the drop down list.What is the query to be given. help in this regard
@mercyfrs
@mercyfrs 3 жыл бұрын
AWESONE...The true Master!!!
@MarcCastellsBallesta
@MarcCastellsBallesta 3 жыл бұрын
I currently have a query with such a long column list (C to AF) I almost feel ashamed of it. This will no longer happen!
@Julie-so5xe
@Julie-so5xe Жыл бұрын
will this work if I am getting the data from a different sheet? (i am always watching your tutorial btw, and it helps me a lot! thank you so much!
@RajaGiri_tvpm
@RajaGiri_tvpm 3 жыл бұрын
In Join function, fixed Range as per your instruction works well, when I removed fixed Range , data add in another row join function get problem , not update , please guide me
@ikura7117
@ikura7117 2 ай бұрын
Hi! How do I add a where query function to the multiple columns selected?
@chirondragon
@chirondragon 2 жыл бұрын
AWESOME trick, thanks
@NewToneProducer
@NewToneProducer 3 жыл бұрын
Is there a way to make the columns that are selected based on a condition? For example, if I want to ignore columns that are blank, can I make it so it only selects columns that have text or numbers in them?
@maciejrodak3590
@maciejrodak3590 3 жыл бұрын
It doesn't work for me when I'm trying to merge two ranges =QUERY({Arkusz2!B3:C;Arkusz2!E3:G};"Select *";1). The error is "In ARRAY_LITERAL, an Array Literal was missing values for one or more row". What's wrong?
@r.lemesh
@r.lemesh 3 жыл бұрын
have the same problem. help plz!
@maciejrodak3590
@maciejrodak3590 3 жыл бұрын
@@r.lemesh try something like that =QUERY({Dane2013!A2:B25\Dane2013!D2:J25};"Select *";1) it's different, but it works for me
@r.lemesh
@r.lemesh 3 жыл бұрын
@@maciejrodak3590 Thanks a lot, it works for me too. It seems like in NOT US formatted spreadsheets we should use "\" instead "," for uniting different columns in same range.
@SatryaNouvanda
@SatryaNouvanda Жыл бұрын
​ @Maciej Rodak Thank you. A character changes everything.
@mateusoliveiraalvarenga428
@mateusoliveiraalvarenga428 3 жыл бұрын
What if i'm trying to bring a lot of Columns, but I don't want to bring it any null cels (ex: =QUERY({'TEXT!A2:AB;'NUMBERS2!A3:AB};"SELECT Col3, Col9, Col10, Col11, Col12, Col13, Col14"...) If I put just "WHERE IS NOT NULL" or "WHERE Col3, Col9, Col10... IS NOT NULL" it doesn't work. Can someone give me a hand here?
@Ali-Hassan-Shooq913
@Ali-Hassan-Shooq913 3 ай бұрын
Can we do same thing with rows?
@DarinPirkey
@DarinPirkey 2 жыл бұрын
Is there a way to query multiple sheets (same worksheet but different tabs) where I query different columns in different tabs? The data I'm using is autopopulated and the "Impressions" tabs for each are in different columns. So in one tab it might be column B but in another tab it is Column F (as an example). I know how to query from multiple tabs in a range but not when there data is in different columns. I currently use =QUERY({'Sheet1'!A2:C;'Sheet2'!A2:C;'Sheet3'!A2:C}, "select * where Col1 is not null",0) but instead of having to format each tab is there a way to just select which columns I want to pull per sheet?
@ExcelGoogleSheets
@ExcelGoogleSheets 2 жыл бұрын
Sure, it's the same exact formula, just change the column to whatever column you want.
@julianscantlebury4858
@julianscantlebury4858 Жыл бұрын
Thank you very much for this video. I found the technique very useful in simplifying some of my QUERY formulas. But if I may ask a follow-up question. I tried to use the same technique of JOIN and SEQUENCE with ARRAYFORMULA, but this time with a VLOOKUP within a QUERY (so I could do some 'sumproduct-like' calculations with a pivot table). Anyway within the VLOOKUP formula I was trying to use your technique above to create the index array (as I needed something like {9,10,11,...19,20} to specify the columns I wanted to use, which will change. However I got an error 'Can't perform the function sum on values that are not numbers'. Any pointers, or is it just the wrong tool to do this? Many thanks
@julianscantlebury4858
@julianscantlebury4858 Жыл бұрын
Apologies, I ended up answering my own question above with some further experimentation. All I needed was ArrayFormula(SEQUENCE(1,12,9). You don't need the JOIN to put the commas in or the concatenation of the {} brackets. Much simpler!
@ExcelGoogleSheets
@ExcelGoogleSheets Жыл бұрын
👍
@pyrageisold
@pyrageisold 2 жыл бұрын
how would I select every x row like if x was 5 how would I have it select rows 5 10 15 20 25 etc
@jennreyes8199
@jennreyes8199 Жыл бұрын
Hi. Is it possible to use this formula, but I want to skip blank data on an included column?
@ExcelGoogleSheets
@ExcelGoogleSheets Жыл бұрын
WHERE Col4 is not null
2 жыл бұрын
Do you know if it's possible to do QUERY not with columns but with rows? I can't make it :(
@avi1710
@avi1710 3 жыл бұрын
I need a help ,. I need to copy a range from sheet1 and paste to last empty row in sheet2 in google sheet . Please help
@gustavodecastrosantos1378
@gustavodecastrosantos1378 3 жыл бұрын
Great video thanks so much. Is it possible to add WHERE conditions in this formula ? I mean SELECT * WHERE Col 1 = 2021 for example.
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
Sure. Just chain it with &" WHERE Col1 = 2021"
@edwinrondina5491
@edwinrondina5491 2 жыл бұрын
Hi sir, you're the best teacher as always! Is there a way that I could select, unselect and select all data in a certain range dynamically thru data validation? Hope you may read my comment. Thank you very much sir!
@HassanAlmaateeq
@HassanAlmaateeq 3 жыл бұрын
Wow.. magic
@emilianoreyes
@emilianoreyes 3 жыл бұрын
Thank You!
@michelparmentier3063
@michelparmentier3063 3 жыл бұрын
Brilliant !
@RomanA-p6h
@RomanA-p6h 3 жыл бұрын
Tell me, how can I make a similar request, only through the API to get an answer in JSON format? You do not have a video on this topic?
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
Maybe check this on my other channel kzbin.info/aero/PLRmEk9smitaVGAAhgU0Pdc2sEs7yxDrEk
@247dman
@247dman 3 жыл бұрын
You should do a lesson on having a column name be dynamically linked within a query. (There's a fun hack so that if you change column order, you don't need to rewrite the overall query) "Select "&regexreplace(ADDRESS(1,COLUMN('Sheet1'!$A$1),4),"[0-9].*","")&" where...
@TheBambooProject
@TheBambooProject 3 жыл бұрын
I tried to run this script so that I can rearrange the sheets but nothing is happening and I keep getting this error “ Exception: Cannot call SpreadsheetApp.getUi() from this context. “ // global var app = SpreadsheetApp.getUi(); var ss = SpreadsheetApp.getActiveSpreadsheet(); // create menu entry in spreadsheet upon opening function onOpen() { app.createMenu('Move Sheet') .addItem('Move Active To Right Of', 'moveactiveSheet') .addToUi(); } // move active sheet to position zero function moveactiveSheet() { var name = app.prompt('Move active sheet to the right of...', 'Insert name of sheet after which to move the active sheet', app.ButtonSet.OK_CANCEL) .getResponseText(); var foundit = null; sheets = ss.getSheets(); for (i=0; i
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
Try to replace variable app with SpreadsheetApp.getUi() and remove the line var app = SpreadsheetApp.getUi();
@TheBambooProject
@TheBambooProject 3 жыл бұрын
@@ExcelGoogleSheets thank you I got it to work. What do I have to change so it goes to the left instead of the right
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
ss.moveActiveSheet(0);
@jodhvirsingh8677
@jodhvirsingh8677 3 жыл бұрын
Hello Sir...can you make a tutorial on how to import data (in google sheets) from webpages which require login id and password..thank you
@paketou8114
@paketou8114 Жыл бұрын
Thank you so much.
@osvaldodsj
@osvaldodsj 3 жыл бұрын
Muito obrigado por compartilhar seu conhecimento!
@AzeemaFaizunnisa
@AzeemaFaizunnisa 4 ай бұрын
That is so clever.
@dylanmeyers4436
@dylanmeyers4436 3 жыл бұрын
Awesome :D
@mercyfrs
@mercyfrs 3 жыл бұрын
How to get the file. I wanna practice it.....Please can have this.
@jjavkira
@jjavkira 3 жыл бұрын
veerry fuckin coool!! master!!, could you please make a video with querys that search by separated comma words and other cell DISCARDING comma sepparated words from other column? Thank so much you by the way!. I already learned html, css, javascript and jquery. I have encouraged myself to search and learn all that knowledge on my own being motivated for all your videos dude! Is really awesome that can you share this videoss!! Thankyou again we'll see you in other videos.
@omantel147
@omantel147 3 жыл бұрын
Hi, does anyone know how to replace AAPL with a cell reference in google sheets? www.stockcharts.com/h-sc/ui?s=AAPL
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
kzbin.info/www/bejne/oYPRn6ekrrmafLc ="www.stockcharts.com/h-sc/ui?s="&A1
@omantel147
@omantel147 3 жыл бұрын
@@ExcelGoogleSheets Thanks a million!
@giancarloschafloqueguzman9918
@giancarloschafloqueguzman9918 3 жыл бұрын
Awesome :D
QUERY Function - Select Columns with Checkboxes - Google Sheets
15:41
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 39 М.
QUERY Complete guide: Google Sheets' most complex function
18:06
David Benaim
Рет қаралды 46 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 29 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,3 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,6 МЛН
QUERY Function in Google Sheets - 2024 Tutorial ✏️
14:33
Coupler․io Academy
Рет қаралды 34 М.
Google Sheets Import Range | Multiple Sheets | Import Data | With Query Function
10:36
QUERY - Drop Down List to Filter Data - Google Sheets
15:25
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 358 М.
Combine Multiple Spreadsheets Into One in Google Sheets
18:08
QUERY Function - Variables - Google Sheets
23:06
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 61 М.
Google Sheets - Join Tables using VLOOKUP & QUERY Functions
16:53
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 48 М.
3 dependent dropdowns in Google Sheets with no code - 2023
17:44
Practical Sheets
Рет қаралды 52 М.
Google Sheets Query Function Explained
12:35
Leila Gharani
Рет қаралды 321 М.