arraysgoogle-sheetsconcatenationarray-formulasgoogle-sheets-query

Any way in Google sheets queries to concat/append results of two columns and add text to result? (I know there is no concat within sheets queries)


I am clear that there is no concat method in google sheets queries but I'm hoping for a workaround. I've seen some suggestions for transpose but can't seem to apply them to my use, hoping for help.

My actual source sheet has more complexity in columns but I've simplified it to demonstrate

enter image description here

Existing Query

=query($L$10:$N$27, "SELECT L, M WHERE N = 'Full' LABEL L 'Name', M ''",1)

If Concat/Append were available it would look more like

=query($L$10:$N$27, "SELECT ("Name is: " & L & " " & M) WHERE N = 'Full' LABEL L 'Name'",1)

Thanks!


Solution

  • try:

    =ARRAYFORMULA(QUERY({"Name is: "&L10:L27&" "&M10:M27, N10:N27}, 
     "select Col1 
      where Col2 = 'Full' 
      label Col1 'Name'", 1))