Google Sheets Query - build array source dynamically

26 views
Skip to first unread message

Peter222

unread,
Dec 28, 2018, 1:17:53 AM12/28/18
to Google Visualization API

I have many sheets in my spreadsheet (sheet1,sheet2,sheet3...) and I want to add them all to array, maybe based on any call range? Now I add them manually as below:

=query( 
{ 
INDIRECT("sheet1!$A$3:$V"); 
INDIRECT("sheet2!$A$3:$V"); 
INDIRECT("sheet3!$A$3:$V") };
"SELECT Col2, Col3, Col4, ...[etc]")

I want to create any "Settings" sheet and put here all sheets that should be in array, like this:

=query( 
    { 
    get_all_sheets_names_from('settings!A1:A100'); // something like this
 };
    "SELECT Col2, Col3, Col4, ...[etc]")

Is it possible?

yassin azouzi

unread,
Dec 28, 2018, 2:11:20 AM12/28/18
to google-visua...@googlegroups.com
It possible put the query after google code 
And echo variable into { google varible }
Like this 
Query 
{Echo val 1 , echo val 2 , .....}

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, 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/d6d76dee-bbed-44d1-8834-9496224a6235%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter222

unread,
Dec 28, 2018, 4:21:36 AM12/28/18
to Google Visualization API
I am not sure if you have understood my problem. Are you sure that you can use the echo command together with the query command? Could you give a specific example of use?

yassin azouzi

unread,
Dec 28, 2018, 5:38:39 AM12/28/18
to google-visua...@googlegroups.com
oui deja c'est mon 2eme projet sur les charts google ! 
exmple

      [ '<?php  echo $nom ;?>',
   '<?php echo ($name.' '.$last).' | ' ; ?>
   <?php echo $lesoin .' | '; ?> <?php echo $lagent; ?> ',
   new Date(0,0,0,<?php echo $heuredeb; ?>,<?php echo $minutedeb; ?>,0), new Date(0,0,0,<?php echo $heurefin; ?>,<?php echo $minutefin; ?>,0) ],  
 

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, 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.

For more options, visit https://groups.google.com/d/optout.


--
   ***Azouzi Yassin***
Reply all
Reply to author
Forward
0 new messages