简体   繁体   中英

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

在此处输入图像描述

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!

try:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM