title: Google Spreadsheets QUERY() to combine multiple sheets, same workbook
body: <p><strong>Goal:</strong> I'm using QUERY() in gSheets to combine data from multiple sheets in the same workbook. The data is an extract from GA broken down into small segments to prevent sampling. This means it has all the same fields, I'm just piecing it back together for analysis.</p>
  
  <p>I would like to use QUERY() to do this because the data is hooked up to auto-update using the Google Analytics Sheets addon. The idea is that when it updates in the future it will piece itself together again and the analysis will run without any additional effort (or risk of human error) on our part.</p>
  
  <p>I followed the Google Support <a href="https://support.google.com/docs/answer/3093343?hl=en" rel="noreferrer">syntax</a>, with one accomodation to fit the multiple sheets. This was mentioned on other posts and seems to work for other people--when combined with IMPORTRANGE referencing outside workbooks, though. There has to be a similar way to do it within the same workbook.</p>
  
  <p><strong>What I've tried:</strong></p>
  
  <pre><code>=QUERY({'LandingPages-Oct1'!A16:F,'LandingPages-Oct2'!A16:F},"select *",0)
  </code></pre>
  
  <p>^ All comma separation causes the sheets to import side by side</p>
  
  <pre><code>=QUERY({'LandingPages-Oct1'!A16:F;'LandingPages-Oct2'!A16:F},"select *",0)
  </code></pre>
  
  <p>^ Semicolon separating sheets causes the first sheet of data to appear, but not the second</p>
  
  <pre><code>=QUERY({'LandingPages-Oct1'!A16:F;'LandingPages-Oct2'!A16:F};"select *",0)
  </code></pre>
  
  <p>^ Semicolon separating query parameters returns no results</p>
  
  <p>What am I missing?</p>
  
  <p><strong>Sample data:</strong> <a href="https://docs.google.com/spreadsheets/d/1STuBdXPCY-mtJdmKZVblR8WlvLaRPa3tl4Kme10sQBQ/edit?usp=sharing" rel="noreferrer">https://docs.google.com/spreadsheets/d/1STuBdXPCY-mtJdmKZVblR8WlvLaRPa3tl4Kme10sQBQ/edit?usp=sharing</a></p>