title: Google apps script, get values from row(s) based on a specific cell value
body: <p>I would like to display data from the whole row where Username matches 123@gmail.com. My google sheet looks like below.</p>
  
  <pre><code>Timestamp           Username        from        to
  24/03/2015 22:21:20 123@gmail.com   17/03/2015  24/03/2015
  24/03/2015 22:21:20 abc@gmail.com   18/03/2015  26/03/2015
  24/03/2015 22:21:20 123@gmail.com   16/03/2015  26/03/2015
  24/03/2015 22:21:20 123@gmail.com   03/03/2015  04/04/2015
  24/03/2015 22:21:20 abc@gmail.com   04/03/2015  18/03/2015
  </code></pre>
  
  <p>I want to display the data like the below using apps script.</p>
  
  <pre><code>Timestamp           Username        from         to
  24/03/2015 22:21:20 123@gmail.com   17/03/2015  24/03/2015
  24/03/2015 22:21:20 123@gmail.com   16/03/2015  26/03/2015
  24/03/2015 22:21:20 123@gmail.com   03/03/2015  04/04/2015
  </code></pre>
  
  <p>To display the result can I use this?</p>
  
  <pre><code>  var app = UiApp.createApplication();
    app.add(app.createHTML('data from table'))
    return app
  </code></pre>
  
  <p>Please help. Thank you.</p>