QUERY Function - Variables - Google Sheets

  Рет қаралды 59,811

Learn Google Sheets & Excel Spreadsheets

Learn Google Sheets & Excel Spreadsheets

3 жыл бұрын

Learn how to use variables in Google Sheets QUERY function.
QUERY Function Series playlist • Google Sheets Query fu...
Practice sheet (File - Make a Copy) docs.google.com/spreadsheets/...
#query #google #sheets

Пікірлер: 67
@atropolifilm4500
@atropolifilm4500 2 жыл бұрын
THANK GOOODD you saved my nerves. I struggled for three hours to find a solution how to add a variable into a Query function. Fabulous video! You are my go-to KZfaq channel for any questions concerning Google Sheets.
@CatZillaVid
@CatZillaVid 3 жыл бұрын
You explained what everyone else was skipping. I was searching for dynamic where clause, those shitty top videos with millions of views didn't show it. Thank you 🙏
@AliJardz
@AliJardz 3 жыл бұрын
I'd never thought of using substitute in this - super smart.
@urntindanger
@urntindanger 3 жыл бұрын
Great channel guys! I learned a lot from you - especially js and google colab. Also finding googlesheets videos useful as some ways of doing things are completly new for me. 👌🏼👌🏼👌🏼👌🏼 every day is a school day! 😏
@SRDFTM
@SRDFTM 3 жыл бұрын
Oh my god! This is the answer, a've been looking for I'm using FILTER and several IMPORTRANGE functions, i think this will help me soooo much Thank you!!
@sethhill7573
@sethhill7573 3 жыл бұрын
This was super helpful! Saved me from having to hire someone. Thank you.
@JCCarstensen1
@JCCarstensen1 3 жыл бұрын
Thanks for the breakdown!
@JBblondin
@JBblondin 3 жыл бұрын
Amazing work, thanks!
@thebestofbests7746
@thebestofbests7746 3 жыл бұрын
Keep going ❤️
@temyraverdana6421
@temyraverdana6421 3 жыл бұрын
Thanks, very interesting and helpful
@yaroslavhirnyak
@yaroslavhirnyak Жыл бұрын
very helpful, thanks. Have been using =query for long, yet did not really understand that '&' mechanics
@davidfernandezbajo
@davidfernandezbajo 3 жыл бұрын
Thank You!
@walterpaiva719
@walterpaiva719 3 жыл бұрын
Thanks for the video
@shanilka_wariyapperuma
@shanilka_wariyapperuma 2 жыл бұрын
I was looking for this for weeks. Great work 😍❤️
@ExcelGoogleSheets
@ExcelGoogleSheets 2 жыл бұрын
Great!
@nisargagza
@nisargagza 3 жыл бұрын
Very useful in real world to make dashboard
@pichit.raetai
@pichit.raetai 3 жыл бұрын
Thank you
@Ramkumar-kf3sb
@Ramkumar-kf3sb 3 жыл бұрын
Nice video
@thethieu2039
@thethieu2039 3 жыл бұрын
You're superman!!!
@user-iv1fc3es1x
@user-iv1fc3es1x 3 жыл бұрын
Thank you very mach
@amolparbat6428
@amolparbat6428 3 жыл бұрын
Had a quick question on Query ....I have data in which one column has number format as " AB12234" when I use query function it's gives put as " " can you please provide resolution for this .... thank you
@dominicbaiamonte9991
@dominicbaiamonte9991 Жыл бұрын
Can you keep the text in column E and just reference both cell E4&B3? Actively edit the query outside the formila completely
@user-tb8bw2rf6q
@user-tb8bw2rf6q 3 жыл бұрын
good smart
@sadashivb5100
@sadashivb5100 3 жыл бұрын
Pls make video how to separate data by name in different column base..
@leonardomoleiro4144
@leonardomoleiro4144 3 жыл бұрын
How could you filter for 'South' and 'MidWest`?
@chrilleswybrandt7262
@chrilleswybrandt7262 3 жыл бұрын
Can I also use regex in the query function to select both west and south? Eg. west|south as the value in the region field. Ps. Your videos are of great value to me. THANKS!
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
Yes. If you check the playlist it's in there someplace.
@getdavemoore
@getdavemoore 3 жыл бұрын
I was just about to request a lesson on regex! I've tried to learn from so many sources but it's still an enigma to my brain!
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
I have videos on REGEX functions in Google Sheets on the channel. To be completely honest with you, it takes a long time to be good at writing regular expressions. After years of using it I'm still finding it confusing sometimes.
@chrilleswybrandt7262
@chrilleswybrandt7262 3 жыл бұрын
@@ExcelGoogleSheets But they are very effective and in web analytics, you only need a subset. I benefit A LOT from regex.
@hockeylawrence9
@hockeylawrence9 3 жыл бұрын
How would i go about doing exactly this with the multiple search criteria's but also if i wanted, being able to leave one of the boxes blank and still show a result?
@himanshusharma5181
@himanshusharma5181 3 жыл бұрын
Use subquery
@zenlababit2472
@zenlababit2472 3 жыл бұрын
How about looking for an equal number of variable not just numeric value?
@cheewurz
@cheewurz 2 жыл бұрын
Wow
@PhogBalaan
@PhogBalaan 2 жыл бұрын
What if the content of the cell after "where" is a word?
@akashmv6553
@akashmv6553 2 жыл бұрын
Hi sir, I have one question regarding selecting multiple row values in a single column. in this data example if I want to select multiple regions then which query do I have to write please let me know. I have tried Contains, and Matches. but didn't get the correct output. Please help me with a solution. Thanks in advance.
@ExcelGoogleSheets
@ExcelGoogleSheets 2 жыл бұрын
OR, watch Part 1 in QUERY series.
@user-zo1sc8jf3n
@user-zo1sc8jf3n 8 ай бұрын
Hi. can you please make an example with tabs as variable?
@emilianoreyes
@emilianoreyes 3 жыл бұрын
Thank you! Please, can you help me with batch paste data function.
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
What does "batch paste data function" mean?
@user-zo1sc8jf3n
@user-zo1sc8jf3n 8 ай бұрын
I'm trying to do it with the variable JUN! which i have many tabs with other months like JUL, AUG, SEP. Please someone help me. below formula does not execute it just show as it is minus the equal sign. Thanks =QUERY(JUN!E:AN,"SELECT E,F,H,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,AA,AB,AC,AD,AE,AF,AG,AH,AJ,AK,AL,AM,AN WHERE H='CXSDA'OR H='CXSDA ENT'ORDER BY E, FALSE",2)JUN
@vanshshah5921
@vanshshah5921 2 жыл бұрын
when i remove the number from b3 it gives me an value error whereas I want it to show me the whole data
@ExcelGoogleSheets
@ExcelGoogleSheets 2 жыл бұрын
kzfaq.info/get/bejne/pLKHa7aW193SeqM.html
@christopherjones2958
@christopherjones2958 2 жыл бұрын
I'm a little lost - here's my query: =QUERY(Game_Data, "Select B where F= "&'Game Data'!F4,0) For some reason it's returning the error "Unable to parse query string for Function QUERY parameter 2: NO_COLUMN: Loss" (loss is 'Game Data'!F4). Can anyone tell me where I'm going wrong? It looks like it's trying to reference the variable as if it's part of the table and it's not. Thanks!
@ExcelGoogleSheets
@ExcelGoogleSheets 2 жыл бұрын
=QUERY(Game_Data, "Select B where F= '"&'Game Data'!F4&"'",0)
@christopherjones2958
@christopherjones2958 2 жыл бұрын
@@ExcelGoogleSheets Perfect tyvm
@cdamaingoogleaccountcortex2919
@cdamaingoogleaccountcortex2919 3 жыл бұрын
You could have just use named ranges, and then you can use the variable names instantly without having to substitute them.
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
I'm not sure what you mean. These are not ranges.
@navigatormoore
@navigatormoore 3 жыл бұрын
I understand: "Named Ranges" in Google Sheets is where one defines a name to refer to a cell or range of cells as in this example B3 could be named "amount" and B4 could be named "region" ...if those named cells are moved or split apart by adding new rows or columns they would always be referenced, even if moved to another tab in the workbook the variable (named range) has a global scope and can be used quickly in any cell or formula without needing to refer to the Worksheet tab name and cell (I.e. Data!B3) The Tutor is one the best in regard to Learning Google Spreadsheets, and taking the general route (I.e. for beginners) is usually the best route to teach the concept of referring to a cell that has a "value" versus a "header/label" and understanding the value types (I.e. string/text, int/number, array/bracketed csv) Not understanding the concept FIRST, could cause a person to use named ranges with mistakes like naming the label instead of the value. Ie. SUM(total_items * item_price) returns errors because it is trying to sum the label ('item' * 'price') as text instead of the value (3 * 2.99) ...all due to the user not clearly understanding the concept of referencing cells and moving to the advanced parts to quickly. But again, I understand what you mean; for I only use Googe Sheets because it does allow referencing cells (defining variables) by name otherwise I would just stick with Excel because there is no other way to fly as a programmer--especially when referring to a cell or cells that dynamically affect/update other cells. #namedranges #googlesheets
@cdamaingoogleaccountcortex2919
@cdamaingoogleaccountcortex2919 3 жыл бұрын
@@ExcelGoogleSheets heres an example: =QUERY(F:F,"select F where F < "&named_rangle_variable) named_rangle_variable is a named range of a single cell, eg A2
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
@@navigatormoore Named ranges in Excel work the same way as they do in Google Sheets in my experience.
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
@@cdamaingoogleaccountcortex2919 You could certainly do that, but that's not directly in the string. The point of substitution is to leave the query string intact. Having pretty variable names or reference names is a whole different issue.
@bvbarry
@bvbarry 3 жыл бұрын
Is it possible to make the data "Data!A1:G1650" as variables? I want the same query work in different tabs Like DataA!A1:G1650, DataB!A1:G1650, DataC!A1:G1650... etc. Thanks
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
INDIRECT function
@bvbarry
@bvbarry 3 жыл бұрын
@@ExcelGoogleSheets Thank you very much
@masaudamin6699
@masaudamin6699 Жыл бұрын
Im facing with an error "Unable to parse query string for Function QUERY parameter 2: AVG_SUM_ONLY_NUMERIC" The query is: =Query(pivot table J:T, "Select J, R where J is not null group by J, R order by R ASC Label 'Month'") Please help me with that !!!!
@ExcelGoogleSheets
@ExcelGoogleSheets Жыл бұрын
One thing that is obviously inaccurate is the use of group by without any aggregate function.
@romandeity4754
@romandeity4754 3 жыл бұрын
Why do we add a star after SELECT?
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
* means all columns. Watch QUERY series for more info.
@usmaniqbal1836
@usmaniqbal1836 3 жыл бұрын
Sr, plz share this file
@ExcelGoogleSheets
@ExcelGoogleSheets 3 жыл бұрын
docs.google.com/spreadsheets/d/10QXfX2OqIbHJNnylAuTL6-MJ0EfNADG7e75ZKq-j_F4/edit?usp=sharing
@usmaniqbal1836
@usmaniqbal1836 3 жыл бұрын
@@ExcelGoogleSheets Sr, grant me to edit this file for practice
@ryanculverwell
@ryanculverwell 3 жыл бұрын
@@usmaniqbal1836 click on file - make a copy
QUERY - Drop Down List to Filter Data - Google Sheets
15:25
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 341 М.
QUERY Function - Select Columns with Checkboxes - Google Sheets
15:41
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 37 М.
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 29 МЛН
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 15 МЛН
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 25 МЛН
Google Sheets - Join Tables using VLOOKUP & QUERY Functions
16:53
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 45 М.
7 Google Sheets Tips that will Save You So Much Time!
11:49
Simpletivity
Рет қаралды 22 М.
Google Sheets ARRAYFORMULA, Introductions to Arrays, ARRAY_CONSTRAIN, SORT Functions Tutorial
23:17
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 265 М.
DGET - Powerful VLOOKUP, INDEX-MATCH Replacement - Google Sheets Tutorial
15:54
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 118 М.
QUERY Function in Google Sheets - 2024 Tutorial ✏️
14:33
Coupler․io Academy
Рет қаралды 19 М.
Automatically Sort New Rows in Google Sheets
8:08
Prolific Oaktree
Рет қаралды 12 М.
QUERY Complete guide: Google Sheets' most complex function
18:06
David Benaim
Рет қаралды 44 М.
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 29 МЛН