How To Use Column Names in the QUERY Function (Google Sheets Tutorial)

Поділитися
Вставка
  • Опубліковано 15 лип 2024
  • Learn how to reference columns by their column names in the QUERY function, instead of by A, B, C etc. This creates a more robust formula that doesn't break when the order of the columns changes, new columns are added, or columns are deleted.
    📚 QUERY Function Resources:
    www.benlcollins.com/spreadshe...
    🎓 QUERY Function Course - the ultimate QUERY resource:
    courses.benlcollins.com/p/the...
    ✉️ Google Sheets Tips Newsletter, my free weekly newsletter:
    www.benlcollins.com/google-sh...
    #googlesheets #googlesheetstutorial #spreadsheet
  • Наука та технологія

КОМЕНТАРІ • 16

  • @Aaron-3das
    @Aaron-3das 29 днів тому

    EXACTLY what I needed! Thank you!

  • @johnagusta6149
    @johnagusta6149 6 місяців тому +2

    Thanks Ben, a pretty simple solution. As you are aware, I developed a solution as well and used Named Functions to simplify the implementation.

    • @benlcollins
      @benlcollins  6 місяців тому

      Yes, I remember. Using named functions is a smart idea anytime you reuse complex functions over and over. Happy New Year!

    • @KevnReid
      @KevnReid 6 місяців тому +1

      I would love to have access to this Named Function! Do you mind sharing the code or point me to where you have it?

    • @AndrewMalcolmson
      @AndrewMalcolmson 6 місяців тому

      @@KevnReid Try "=concat("Col",xmatch(header_name,headers))" where header_name is the function's header name argument (e.g. "Total Sales").

  • @mircopolo
    @mircopolo 2 місяці тому

    Wow you fixed what Google Sheets were missing on QUERY :D

  • @ganeshshelkar4333
    @ganeshshelkar4333 6 місяців тому +2

    Woww best video sir🎉🎉

  • @brianandrewsmusic
    @brianandrewsmusic 6 місяців тому

    Thanks Ben! Something tells me this will become my favorite UA-cam channel...

    • @benlcollins
      @benlcollins  6 місяців тому

      Thanks! Appreciate your support 🙏

  • @monologuesofaconsultant
    @monologuesofaconsultant 6 місяців тому

    Very interesting application. Thank you.

  • @TheDervMan
    @TheDervMan 6 місяців тому +1

    Nice 👍🏻

  • @asadiqbal1058
    @asadiqbal1058 5 місяців тому

    header keyword is not working

  • @ibrahimosama9300
    @ibrahimosama9300 6 місяців тому

    i just protect the headers 😅