The query language operates over column IDs. In google spreadsheets these are the column letters A,B,C,...
Sorry
ChartMan
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
(Note that column IDs in spreadsheets are always letters; the column heading text shown in the published spreadsheet are labels, not IDs. You must use the ID, not the label, in your query string.)
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/FMGmbzrhh_4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/3841a54f-0832-412a-8df4-f57d752ea4f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
=QUERY(MyData,"select " &CHAR(64+MATCH("Field1",MyHeaderRow)) & "," &CHAR(64+MATCH("Field2",MyHeaderRow)))