title: Attempting to Query only data from cells that are not blank
body: <p>I have a google spreadsheet with 2 sheets.  The first sheet contains data that has been input by a form.  Each form response will input data for the following "Timestamp", "Zone", "NPC", "Faction", "Amount", "Faction2", "Amount2", "Faction3", "Amount3", "Faction4", "Amount4", "Faction5", "Amount5".</p>
  
  <p>Row 1 contains the above category names for each response input.  The way the form works unfortunately is that each response is put into it's own column based on what Zone is chosen at the beginning as each Zone has different possible responses for the category.  So the data is spread out from Columns C to Columns HC.  Each row will only have one response per category name, but the category names are repeated and spread out.</p>
  
  <p>I have been using the following query in Sheet2 to pull the information from whichever "Zone" that is selected from the E1 dropdown in the sheet.</p>
  
  <pre><code> =if(len(E1)=0,"Please Select a Zone in E1",query('Form Responses'!A2:IS,"Select * Where B = """&amp;E1&amp;""" "))
  </code></pre>
  
  <p>The problem is that it returns the entire Row for the Selected zone so the following information doesn't line up.  Is there any way for me to return only the information from the Rows that have data in the cell.  This would then line up the data into the correct Column for Sheet2</p>
  
  <p>Below is a link to the Form with some sample data in it, the Cobalt Scar selection lines up as the responses are in the corresponding columns in the data sheet, but Crystal Caverns and Western Wastes do not.  You can change selected zone to view the results in Sheet2 E1.
  Also the sheet is a copy and can be edited by the public.</p>
  
  <p><a href="https://docs.google.com/spreadsheet/ccc?key=0AqEFpZnTydP-dFNNOV9sRzNRSldDUXRJX1pqSFZRYkE&amp;usp=sharing" rel="nofollow">https://docs.google.com/spreadsheet/ccc?key=0AqEFpZnTydP-dFNNOV9sRzNRSldDUXRJX1pqSFZRYkE&amp;usp=sharing</a></p>