Тёмный

Google Sheets QUERY - Filter by Date Range using WHERE Statement Tutorial - Part 3 

Learn Google Sheets & Excel Spreadsheets
Подписаться 273 тыс.
Просмотров 201 тыс.
50% 1

Video tutorial series about QUERY function in Google Sheets.
Important! Continue on dates in the Next Part • Google Sheets QUERY Da...
In this tutorial we'll cover how to use QUERY function in Google Sheets to pull filtered results within a specific date range.
Google Sheets
www.google.com/sheets/about/
Website:
www.chicagocomputerclasses.com/

Опубликовано:

 

30 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 152   
@TraucoATL
@TraucoATL 3 года назад
Your channel has been a career-saving resource ever since I first stumbled upon it four years ago... I have spent the last three days stuck on fixing an issue with the dynamism of a workbook I am building in G Sheets; I searched your channel before starting this project but couldn't fine a resource to do what I was trying to do... This video gave me an eloquent solution to the problem, thank you!
@justfly2525
@justfly2525 4 года назад
I can't possibly explain how helpful these videos are. The way you teach is perfect! Don't change a thing.
@acarde
@acarde 4 года назад
Well. Maybe share the spreadsheets you're using to reference stuff, but other than that... Don't change a thing. lol.
@yboulais
@yboulais 5 лет назад
You guys are so good, thank you so much for sharing these videos.
@hugomac7068
@hugomac7068 6 лет назад
Wow I have been looking every where for this video thank you thank you
@hammockmonk
@hammockmonk 5 лет назад
These videos are very useful to me, thanks. Subbed!
@user-qg9dk4oj5y
@user-qg9dk4oj5y 4 года назад
Hey, guys! Working method in the next video! It`s something like ="SELECT A, C, D, E, F, I WHERE A >= date '2019-07-07' AND A
@officeoffamilyandcommunity2918
Thank You +Learn Google Spreadsheets for this series!
@jackson35bmx
@jackson35bmx 4 года назад
Aula perfeita!!! thx man!!! Me economizou células e pude acrescentar mais dados na planilha que eu tinha feito. Pena que só pode ser usado 5 milhões de celular por spreadsheet. Eu precisava de 3 vezes desse valor. Mas uso outras spreadsheet para juntar as base de dados.
@alansavage3549
@alansavage3549 7 лет назад
really useful everyday solutions. thank you.
@dougjohnson5947
@dougjohnson5947 2 года назад
Thank you. Your tutorials are awesome. So clear and easy to follow.
@ExcelGoogleSheets
@ExcelGoogleSheets 2 года назад
Thank You!
@adaezeopara9038
@adaezeopara9038 2 года назад
Really helpful. thanks. This tutorial helped me solve a problem which plagued me for days.
@eugenesoft856
@eugenesoft856 6 лет назад
fantastic lesson
@mdatiqurrmolla9127
@mdatiqurrmolla9127 5 лет назад
Well I have just tried to use the filter in the date column selecting condition "is between" and then entered 2 dates in the same format as in the cells and it just works like a charm, so I guess google has updated the support for it.
@thoa413
@thoa413 2 года назад
Super easy undertanding, thanks for the clip
@reenawilson7226
@reenawilson7226 4 года назад
Awesome & thank you!
@aroimai3
@aroimai3 6 лет назад
Hello, I have a basic questionnaire about Select and Filter. I would like to know the differences between both. And both provide view of data, and I would like to maintain data of Cell, but it is prohibited. My idea is to hide rows not related, show the rows relevant. Can you give me ideas please? Best Wishes
@radkostka
@radkostka 6 лет назад
Thank you for a great lesson! Just wondering how to do the dynamic Query for text? Say, instead of a date query, I want to query the State.
@josephmelcher8854
@josephmelcher8854 4 года назад
All relevant colums I.E. A:D then where (which collum ) and finally key word =query('Form Responses 1'!A:E,"Select * Where A='Ohio")
@ramo4uuuu
@ramo4uuuu 3 года назад
Gosh I love youtube and I definitely love you 😍
@rosanacumberland5911
@rosanacumberland5911 3 года назад
Brilliant!
@RobertMalitek
@RobertMalitek 4 года назад
It's all great and I do like your tutorial, but I do have a problem. I have to use something like this to compare the dates. ="select A, B, C WHERE A >= date '"&text(C1,"yyyy-mm-dd") & "' AND A
@webz2k
@webz2k 5 лет назад
How do you have the query in the green text at the top which is changing results a few rows further down? I only know how to do it so the results show up starting a the cell u are typing the query in
@kdzmuzo
@kdzmuzo 3 года назад
Is there a quicker way of querying multiple columns when using the 'where' function other than using OR
@juanpauloalmazan2997
@juanpauloalmazan2997 3 года назад
what about for Time? Do i need to use the text formula or just normal operation?
@utkarshdighe8005
@utkarshdighe8005 2 года назад
Hi, How would one use WHERE and GROUP BY together? So, for eg., I want to get sum of sales of per each brand between the start and end date of my choice. Thank you.
@ruthhackney9403
@ruthhackney9403 4 года назад
You are a GOD!
@Hermiel
@Hermiel 5 лет назад
There's no need to convert the date to a number. You can prefix your date with 'date' in the query string itself.
@faizaziz6024
@faizaziz6024 4 года назад
Without changing its not working
@Hermiel
@Hermiel 4 года назад
@@faizaziz6024 The date has to be entered in the format yyyy-mm-dd
@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
@b199uybas3
@b199uybas3 4 года назад
THank you very much
@Ryanrenata01
@Ryanrenata01 3 года назад
I Never skip your ads, never at all
@nikeshsangale1765
@nikeshsangale1765 4 года назад
Thank you for a great lesson! one issue is that how to retrieve date wise data in android studio
@shaokatahmedkhan1315
@shaokatahmedkhan1315 2 года назад
what if the dates are headers.. like A4 to F4 and I want the info from date range.. like 2/24/2016 to 5/5/2016 ? I mean can we use Query function Select option for a specific Row rather column.. can anyone help on this plz
@mitchelb380
@mitchelb380 3 года назад
What would you have to do if you want to simplify the query even further? For example, if you wanted to find the total sales per brand for a given date range
@ExcelGoogleSheets
@ExcelGoogleSheets 3 года назад
All of this is covered in following parts.
@justfly2525
@justfly2525 4 года назад
If you're having problems then go to lesson 4. I think that converting dates to numbers like in this lesson doesn't work anymore. The method in Lesson 4 worked for me though.
@RobertScriban
@RobertScriban 4 года назад
Your tutorials are amazing! Here I'm running into a challenge I can't find a solution for. I'm trying to run a very simple QUERY with one trigger. It's a dropdown validation of a string 'lastname, firstname', and it never seems to return results. My QUERY refers to the validation cell (select B, C, D, E, F WHERE C = 'A1'). Not sure if it's even possible at this point. HELP Learn Google Spreadsheets!
@RobertScriban
@RobertScriban 4 года назад
Got It!
@ExcelGoogleSheets
@ExcelGoogleSheets 4 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-nLW8SerwnJo.html
@joensleygarcia6449
@joensleygarcia6449 6 лет назад
I have been trying to do this function multiple times and it doesn't work at all. I wonder why.....
@doctorkennydelicious
@doctorkennydelicious 5 лет назад
google must have changed something. It doesnt seem to work any more. double checked, triple checked, quadruple, quintuple check. Everything is exactly the way it is in the video. Still doesnt work. Change the format of the original date column to automatic and it works, but then you are ruining your original data. You cant see the dates anymore.
@mohamedelsiesy4555
@mohamedelsiesy4555 5 лет назад
@@doctorkennydelicious THIS HAPPENED TO ME
@anthonybatts7964
@anthonybatts7964 4 года назад
Tried doing the formula exactly the same way, doesn't work. You are missing the = " and ' from the formula.
@Mr123chuy
@Mr123chuy 5 лет назад
I don’t get an error on mine but It doesn’t retrieve the data except for the header
@ExcelGoogleSheets
@ExcelGoogleSheets 3 года назад
Watch the next part and it should work fine.
@purplegallery3097
@purplegallery3097 3 года назад
mine as well sir unless i change the format of the date column in the source table to automatic. are there any way around this sir?
@gemmawalsh3326
@gemmawalsh3326 4 года назад
Hi. I have a google sheet where i want to pull the data from another sheet where the date is "today" and only display that data from that day. The &text(today() formula isnt working. Please help!
@alidzoutillage
@alidzoutillage 11 месяцев назад
Hi, have you found the solution for this one?
@jacklinjack3826
@jacklinjack3826 2 дня назад
Thanks 🙏
@WenSaiPanther
@WenSaiPanther 3 года назад
I can’t seem to get the query from a certain field for the Query. where am I going wrong here? or even to pull columns. I’m doing exactly what you’re doing.
@ExcelGoogleSheets
@ExcelGoogleSheets 3 года назад
Watch the next part.
@talebbagazi1435
@talebbagazi1435 2 года назад
Hello, i want to ask what the best way to reconcile data, for example i have data from form response then some of them buy a product so i made a sheet for the sales contain name, email, and number i want to reconcile the two sheets to get more like number, address, age... etc. i used filter helpful but with big numbers of data takes time because my admins some data in the sales sheet not written right. any advise to be able solve it asap. thanks
@ExcelGoogleSheets
@ExcelGoogleSheets 2 года назад
Sounds like VLOOKUP sort of problem ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-B8118U0z0_k.html
@customerdelight2722
@customerdelight2722 3 года назад
What is the limitation of using columns? I have a sheet with columns of 152. If I select the column above CF, it gives Error "Unable to parse query string for Function QUERY parameter 2: NO_COLUMN: CG" any idea?
@ExcelGoogleSheets
@ExcelGoogleSheets 3 года назад
I'm not aware of column limit. Make sure you select that column in your original range as well, not just in SELECT statement.
@hunterholeman3004
@hunterholeman3004 2 месяца назад
I could be wrong, but this information may no longer be correct (as of 5/24/2024). When following the instructions outlined in this video, it didn't work. This is an example query that did work: select B, F where F = date '2015-01-08'. Instead of using date as a number, you need to include "date" and enter the date with 'YYYY-MM-DD" format.
@tanyaostapenko9909
@tanyaostapenko9909 3 года назад
This doesn’t seem to work in excel 2013. I have Power Query installed. When I enter the query formula I get an error #NAME? Does this only work in google sheets?
@ExcelGoogleSheets
@ExcelGoogleSheets 3 года назад
The formula only works in Google Sheets. You can get similar results using Power Query, but it's completely different.
@cuneiformscript2665
@cuneiformscript2665 4 года назад
🙏🏻
@marklepine6251
@marklepine6251 2 года назад
hi thanks for the video -- I'm trying to COUNTIF for a specific variable within another Column inside the same tab: =COUNTIF(COMPLETED JOBS!$G$2:$G$1564,select "I WHERE I >= 44562",1 ("OM")) --- OM is the project manager's initials I want to count # of his jobs where the Project Completed Date (column I) is greater than 44562 (cool trick) ... what am I missing here? thanks again
@ExcelGoogleSheets
@ExcelGoogleSheets 2 года назад
Watch part 4 please, you'll find your answer.
@mochannel2482
@mochannel2482 7 месяцев назад
Thanks
@3dfh661
@3dfh661 6 лет назад
hello, great lesson but i have the same problem as tymothy... Can you help me?
@ExcelGoogleSheets
@ExcelGoogleSheets 6 лет назад
Watch Part 4, it will fix your problem.
@KhalilYasser
@KhalilYasser 5 лет назад
Can you provide a l;ink for that part 4?
@JavierRamirezdeGrecia
@JavierRamirezdeGrecia 3 года назад
Hmmm, I do exactly the same but the query has an empty result. I compared my date column with the date target number and get a TRUE then why is not working on the query?
@ExcelGoogleSheets
@ExcelGoogleSheets 3 года назад
Watch the next part. Part 4 should fix your problem.
@Michel7B
@Michel7B 4 года назад
'Where statement' on A date Col , must be coded with 'date' keyword followed by a string literal in the format yyyy-MM-dd . E.G. : where A> date "2018-12-31" and A= date """ & E1 & """ and A = date """ ; E1 ; """ and A
@tunminlatt1698
@tunminlatt1698 3 года назад
Please give me example google sheet date formula. I will be try this.
@mayurrajude
@mayurrajude Год назад
Please Provide a Data Set Whenever Make a Tutorial For Practice it helps to Understand
@roupasbebeonline3753
@roupasbebeonline3753 5 лет назад
because the query function works perfectly fine when it is in the same file: = QUERY ('1'! A1: E62; "SELECT B, C, D, AND WHERE E = 'SP ORTO'OR E =' DR.MARCELO '" ), but when I want to use this same function pulling from another file, through importrange unfortunately I've been working for weeks trying but can not help myself? What is wrong? note:=QUERY(IMPORTRANGE("docs.google.com/spreadsheets/d/1KBHyrGduXY_W-4-Ri2aDX5xzBu6xpcEy0uEQNpQlR5k/edit#gid=1429825569";"1!B1:E62");"SELECT B,C,D,E WHERE E='SP ORTO'OR E='DR.MARCELO'"). Falo de São Paulo- Brazil, e ficaria muito agradecido se conseguisse, por favor digite corretamente as palavras sem erros ou abreviações para que eu consiga traduzir no google drive. Muito obrigado! ='"e'Informação do Aluno'!C3&"'",0) ARCHIVE 1: docs.google.com/spreadsheets/d/1TF93YiUmPzgCgQLP3-0QcIrutcBZKga79agmAZiUm0s/edit?usp=sharing ARCHIVE 2: docs.google.com/spreadsheets/d/1KYJa7Sprt5dKqzWHU0bc8m-caNPzDY6wE8QHrB6FTfk/edit?usp=sharing
@maiaraborsatti6901
@maiaraborsatti6901 5 лет назад
Não sei se é bem esse o seu problema, mas quando você usa a função QUERY com IMPORTRANGE, é preciso montar nessa estrutura, nomeando as colunas como Col1, Col2... e não como A, B... =QUERY(IMPORTRANGE(url_da_planilha; string_do_intervalo);"SELECT Col1, Col2... ") Caso importe os dados de mais de uma planilha, separar essa função entre chaves =QUERY({IMPORTRANGE(url_da_planilha; string_do_intervalo);IMPORTRANGE(url_da_planilha; string_do_intervalo);...};"SELECT Col1, Col2... ")
@ihgaming8885
@ihgaming8885 2 года назад
thanks for the video. can you help me please? i followed ur video step by step, however i am getting an error "Query completed with an empty output"
@ExcelGoogleSheets
@ExcelGoogleSheets 2 года назад
Watch part 4 and it will fix your issue.
@fantouch
@fantouch 4 года назад
Great, I am doing a dynamic query, but sometimes I do not have a parameter to search for, example, I have a Start date but at the moment I do not have the end date I want to search for all, or sometimes I want to search for a value between numbers and another time I just wanna look for a value greater than XX..... I try to use regular expressions like .* or %.* but it seems to be an Error (#Value!),,,,,,,,, it can be done? I am doing something like this ="Select A, D, T WHERE D >="&C1&" AND T>="&D1 and just change C1 and D1
@ExcelGoogleSheets
@ExcelGoogleSheets 4 года назад
Watch my dashboard videos to see how it's done. I think it's in the last video from the series.
@fantouch
@fantouch 4 года назад
@@ExcelGoogleSheets ohhh that's very clever, great material , Thanks
@backspace1102
@backspace1102 5 лет назад
A date looks like 03.04.2019 11:53:26 and Query returns #N/A, when I add WHERE. How I can solve it?
@gagubernatorov
@gagubernatorov 5 лет назад
Привет, у тебя получилось? Работает? Нашел решение? Если да, может подскажешь как)
@backspace1102
@backspace1102 5 лет назад
@@gagubernatorov , да, я применил другой способ из следующего видео:) Google Sheets QUERY Date Range using SQL Format Dates Tutorial - Part 4
@gagubernatorov
@gagubernatorov 5 лет назад
@@backspace1102 Спасибо)
@YasirAli-vh4zm
@YasirAli-vh4zm 4 года назад
split the date and time into two columns first
@sachindicholkar4684
@sachindicholkar4684 4 года назад
how can I fetch data for a specific day eg if I want data for Saturday?
@ExcelGoogleSheets
@ExcelGoogleSheets 4 года назад
Add a column to your original data =TEXT(A1,"DDDD")
@H-do8tr
@H-do8tr Год назад
When I type the date range in the query formula nothing appears in the result :(
@kathira5691
@kathira5691 3 года назад
I have data with dates in different spreadsheet. When I try to fetch data I am not getting it. Formula=query(importrange(url, select * where Col3 >= 44287 "). Date is in 3rd column. Can u help me for this
@ExcelGoogleSheets
@ExcelGoogleSheets 3 года назад
Watch the next part, it will work.
@marcokosten2850
@marcokosten2850 5 лет назад
Can I get a copy of this sheet? I can't get the "select from-to date" function running Thanx a lot!
@doctorkennydelicious
@doctorkennydelicious 5 лет назад
google must have changed something. It doesnt seem to work any more. double checked, triple checked, quadruple, quintuple check. Everything is exactly the way it is in the video. Still doesnt work. Change the format of the original date column to automatic and it works, but then you are ruining your original data. You cant see the dates anymore.
@Michel7B
@Michel7B 4 года назад
@@doctorkennydelicious developers.google.com/chart/interactive/docs/querylanguage#Literals
@sudhirpatil3434
@sudhirpatil3434 4 года назад
@@doctorkennydelicious i got same results as yours- it does not work
@kelvinyusuf9030
@kelvinyusuf9030 3 года назад
hallo, have been followed step by step this formula but didn't work, i have to convert my dates to number in my data first to make it work
@ExcelGoogleSheets
@ExcelGoogleSheets 3 года назад
Watch the next part.
@nguyenhoanghuy5194
@nguyenhoanghuy5194 2 года назад
Hi Learn Google, How can I combine with Formula "CONTAINS"
@abrotherinchrist
@abrotherinchrist 5 лет назад
This doesn't work for me. I tried =query(A2:J,"SELECT * WHERE H >= "&Q1&" AND H
@ExcelGoogleSheets
@ExcelGoogleSheets 5 лет назад
Did you watch the next part? It probably has the answer for you.
@abrotherinchrist
@abrotherinchrist 5 лет назад
@@ExcelGoogleSheets I actually found the answer: =QUERY(A:J,"select * where H > date '"&TEXT(O1,"yyyy-mm-dd")&"' and H
@ExcelGoogleSheets
@ExcelGoogleSheets 5 лет назад
Yes, that was in the next part.
@purplegallery3097
@purplegallery3097 3 года назад
any1 please help, my query returns blank table when i do this method if i don't change the date format of the date column in the source table to automatic unlike in this video. am i doing something wrong?
@ExcelGoogleSheets
@ExcelGoogleSheets 3 года назад
Watch Part 4 and it will work.
@purplegallery3097
@purplegallery3097 3 года назад
@@ExcelGoogleSheets It does! your channel is the best thing i found in 2021 sir, thanks a ton!
@Mechquest01
@Mechquest01 3 года назад
I try this method and it shown only header. So, is this normal? or I did something wrong? ps. I use another method of your and it works, thanks.
@ExcelGoogleSheets
@ExcelGoogleSheets 3 года назад
Check part 4. Part 3 only works with imported Excel documents.
@TimothyMurphyNYC
@TimothyMurphyNYC 7 лет назад
This only works for me when I convert dates in the source sheet to a number format. How can I get it to work using date format?
@ExcelGoogleSheets
@ExcelGoogleSheets 7 лет назад
Your source formatting shouldn't make a difference. Can you share an example worksheet where it doesn't work?
@TimothyMurphyNYC
@TimothyMurphyNYC 7 лет назад
docs.google.com/spreadsheets/d/15d-AW6nG285mfmJGuL5F2DjDbeVgeO-V_VENXWzS8zw/edit#gid=1044415552
@ExcelGoogleSheets
@ExcelGoogleSheets 7 лет назад
Looks like there were some changes to the way they deal with dates. I was able to fix your problem using SQL date type which apparently now works with regular dates.
@TimothyMurphyNYC
@TimothyMurphyNYC 7 лет назад
Great. Many thanks for all your help.
@TimothyMurphyNYC
@TimothyMurphyNYC 7 лет назад
docs.google.com/spreadsheets/d/15d-AW6nG285mfmJGuL5F2DjDbeVgeO-V_VENXWzS8zw/edit?userstoinvite=hoquanghuong@gmail.com&ts=596af931&actionButton=1#gid=1044415552
@nocturno7887
@nocturno7887 3 года назад
I do have this problem here (stackoverflow.com/questions/65728030/google-sheets-query-date-only-brings-one-row-result) and can't figure out why is only bringing one row rather than the 25 that have the same date
@ExcelGoogleSheets
@ExcelGoogleSheets 3 года назад
Watch the next part
@jafarhussain6606
@jafarhussain6606 3 года назад
What is the formula in Microsoft excel same like query function in Google sheets?
@ExcelGoogleSheets
@ExcelGoogleSheets 3 года назад
There isn't one. You can use Power Query as an alternative, even though it's not a function, it can get similar results.
@peterjimytac2201
@peterjimytac2201 2 года назад
Why mine doesn't work. It only display the top row. Can you help me?
@ExcelGoogleSheets
@ExcelGoogleSheets 2 года назад
Watch the next part and it will work.
@abdulcdnwpkl3333
@abdulcdnwpkl3333 2 года назад
how to add another function such as "Group by"?
@ExcelGoogleSheets
@ExcelGoogleSheets 2 года назад
This playlist covers everything ru-vid.com/group/PLv9Pf9aNgemvAMlqvHP9RhXPW98g_eo7d
@aayushgautam5778
@aayushgautam5778 4 года назад
tOTLY CONFUSED i "m not getting my result AFTER E,F,D,C,
@ExcelGoogleSheets
@ExcelGoogleSheets 4 года назад
Watch Part 4
@Vivek-np9vm
@Vivek-np9vm 4 года назад
I do not see the dates. just the row.
@ExcelGoogleSheets
@ExcelGoogleSheets 4 года назад
Please watch part 4
@asyikbrowsing200
@asyikbrowsing200 6 лет назад
i always get error
@asyikbrowsing200
@asyikbrowsing200 6 лет назад
=QUERY(Input!A2:AH,"select E where X = date '"&TEXT(D1,"mm-dd-yyyy")&"'",0) i get error "query completed with an empty output"
@ExcelGoogleSheets
@ExcelGoogleSheets 6 лет назад
try yyyy-mm-dd instead
@asyikbrowsing200
@asyikbrowsing200 6 лет назад
ibb.co/kK17Vp
@ExcelGoogleSheets
@ExcelGoogleSheets 6 лет назад
You selected data from A-F but then in your WHERE statement you did WHERE X = . There is no column X in your range.
@dalesamuels6259
@dalesamuels6259 Год назад
Doesn't work for me!
@ExcelGoogleSheets
@ExcelGoogleSheets Год назад
Watch part 4 and it will.
@CyrilJean
@CyrilJean 4 года назад
Why not using the Date litteral ? it's way easier
@ExcelGoogleSheets
@ExcelGoogleSheets 4 года назад
It's in Part 4
@CyrilJean
@CyrilJean 4 года назад
@@ExcelGoogleSheets i c
@e5establishment553
@e5establishment553 Год назад
Head Name Count A peter yes A will no B peter no B will yes A mark yes B mark yes A peter no B mark no This above said details are my Data. But i want following type of results. Head Name How many yes How many No A peter 1 1 will 0 1 mark 1 0 B peter 0 1 will 1 0 mark 1 1 Total 4 4 What is the formula for this result.
Далее
▼КОРОЛЬ СОЖРАЛ ВСЕХ 👑🍗
29:48
Просмотров 393 тыс.
IQ Level: 10000
00:10
Просмотров 3,5 млн
QUERY Function - Variables - Google Sheets
23:06
Просмотров 59 тыс.
Google Sheets Query by Date Range
7:12
Просмотров 33 тыс.
Timestamp - Excel & Google Sheets
14:11
Просмотров 69 тыс.