Google Sheets QUERY Function Tutorial - Advanced Contains with Matches & Regular Expression - Part 2

Поделиться
HTML-код
  • Опубликовано: 13 июл 2017
  • Video tutorial series about QUERY function in Google Sheets.
    In this tutorial we'll cover how to use QUERY function in Google Sheets to pull filtered results out of your main dataset using regular expression.
    Google Sheets
    www.google.com/sheets/about/
    Website:
    www.chicagocomputerclasses.com/

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

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

    ahhh thank you, you saved me so much work. Blessings on you and your extended family!

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

    You are a great teacher.

  • @officeoffamilyandcommunity2918
    @officeoffamilyandcommunity2918 7 лет назад +1

    Thank You +Learn Google Spreadsheets for this series!

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

    Very Nice Thank you sir.

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

    Fuck me! That was exactly what i was looking for. I wrote part of this function in GAS.. damn... well i actually learned some JS along the way...
    Great videos, good quality, keep it up!

  • @silvestrecamposano6317
    @silvestrecamposano6317 8 месяцев назад +1

    Thank you....❤

  • @zr2ee1
    @zr2ee1 7 лет назад +1

    great videos, been interested in learning more about query functions for my sheets, specifically referencing a cell from a second sheet as part of the filter inside the query like this: =query(INPUT!A2:C, "select * where C contains" Timesheet!B7, 0) curious if you had any advice, tried a couple of things, do i need to wrap it in another query?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  7 лет назад +2

      try "select * where C contains '" & Timesheet!B7 & "'"

    • @zr2ee1
      @zr2ee1 7 лет назад

      Learn Google Spreadsheets it's always the simple things, works great! Thank you

  • @samandarqahhorov1573
    @samandarqahhorov1573 4 месяца назад +1

    good

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

    This is a great video and I've been playing around with this to great effect. However I have set myself a problem that I can't work out and wonder if you know the solution or might make a tutorial of it?
    PROBLEM:
    Imagine you have a very messy web-scraped list of data in 100 rows of Column A where say the first 10 rows are junk data and the 11th line starts with the data you want "GoodDataStartsHere". How do you get the regex inside a query to identify the start of the good data and ignore any data before it? Similarly if there is junk data at the end of a list how to identify the last good bit of data "GoodDataEndsHere" and ignore anything after it? Appreciate any responses to this.

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

      Depends on your data. What's in junk data that's not in good data?

  • @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

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

    How do I "select" only columns that contain text and not empty containers?

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

    Great videos! Learning a lot! How can I run a query such as =QUERY(E22:I42,"select E,F,G where E < $K$15",0)? Can you reference the value of another cell in the query? If so, can you direct me to the video that explains this? Thanks! ~Ben

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

    🙏🏻

  • @joanaamorfajardo3056
    @joanaamorfajardo3056 3 месяца назад

    how do you transfer a row of data to another tab based on a dropdown selection?

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

    Hi Sir! Your tutorials are perfect for my need. By the way Sir, I have a problem, and I hope for your kind reply.
    My selection is below.
    select A, B, C, D, E, F, G WHERE G matches '.*[sS]ample [oO]only'
    Please teach me how can I add ALL CAPSLOCK words? Because I could only see Big and Small letters..
    I really need your kind help Sir.
    Thank you so much for helping many people like me.

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

      Please provide a sample data with results needed out of the sample, otherwise it's difficult to understand what you need,

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

      Wow! Thank you so much for quick reply Sir. Please see the Gsheet URL below. I hope to include also ALL CAPS-LOCK words in Column G.
      docs.google.com/spreadsheets/d/1MW-wH8FQ9e4fwc5vhJSrExZveveSslXEXgXM6mF9S30/edit?usp=sharing
      Please HELP me Sir, what formula is perfect for my need.
      Thank you so much for your great help in advance!

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

      select A, B, C, D, E, F, G WHERE LOWER(G) = 'sample only'

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

      WOW!!! PERFECT!!! Sir, Thank you very, very much from the bottom of my heart! Everything is perfect now ❤ ❤ ❤ GOD bless you with good health and great protection always!

  • @yogeshkumar7749
    @yogeshkumar7749 3 месяца назад

    can you provide the data in which you are teaching. it will be a great help for pracitce.

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

    How to write if there are more than 2 output of "LIKE" is needed.i.e you had written select e,f,d,h,c where c like %western%...What if I want LIKE %western% and %eastern%

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

      select e,f,d,h,c where c like %western% or c like %eastern%

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

    How can i use NOT LIKE? Have a solution for that? Because doesn't work not like in query... have any solution for that?

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

    What if I like the query to match a specifc data sets from a different sheet?

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

      I have a video in thee series that covers how to do SQL IN type of statements. I believe that should help.

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

    I am trying to match 'Ma'an' but it is not working :( Any tips on how to fix this?

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

      Laza Lazarevic try to use double quotes. It prolly doesnt work cause it reads it as 'Man' and the rest is just error.
      Javascript has a way to allow you to use quotes in strings by writing a / in front of it. Search or try smtg similar.

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

    Can we do exclude for text in query functions? Say for example i want to query all states Except CA

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

      WHERE D != 'CA'

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

      @@ExcelGoogleSheets Thank you so much! Btw how do I remove GRAND TOTAL from the pivot table?

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

      Its ok I found out i just need to uncheck the text box that 'shows total'

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

    I have been having problems with the query, Because I get the data from a Software and then I pass the data to Google sheets in the same column I have Text and Numbers, the query just pass the Number values and the Text values left them blank. why is that? how can I Fixt that without having to do format?

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

      QUERY doesn't support mixed data types in a column. IF you want to keep mixed types use FILTER.

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

      @@ExcelGoogleSheets Is there a way to clean up the data, like if I want that Col 2 is all text..... the values in Col2 should be Text but GoogleSheets take some as numbers and that break all my plan

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

      You should be able to do some sort of array {A1:A,TEXT(B1:B,"@"),C1:C}

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

    hi guys , who can share with me in Transactions data file?