Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9786

Using Query to select colum based on headers

$
0
0

I have a sheet with a large table of data with a header for each column. I want to import a specific column to another sheet using the header name. I am using the below formula to do so (which has worked in the past).

=QUERY(Schedule!D:BW, "SELECT" & SUBSTITUTE(ADDRESS(1,MATCH(H1,Schedule!D1:BW1,0),4),1,""))

However I keep getting the below error and can't figure out how to solve this.

Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered " "SELECTD "" at line 1, column 1. Was expecting one of: "select" ... "where" ... "group" ... "pivot" ... "order" ... "skipping" ... "limit" ... "offset" ... "label" ... "format" ... "options" ...


Viewing all articles
Browse latest Browse all 9786

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>