title: Get row number in filtered results
body: <p>Im struggeling to get row-number when i have filtered rows.</p>
  <p>How can i get the row &quot;number&quot;, when its filtered?</p>
  <p>currently not working:</p>
  <p><a href="https://i.stack.imgur.com/r4OFc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r4OFc.png" alt="enter image description here" /></a></p>
  <p>Currently works when row-line is ascending. ( etg: 1-10).</p>
  <p><a href="https://i.stack.imgur.com/ZTspO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZTspO.png" alt="enter image description here" /></a></p>
  <p>Currently doing:</p>
  <pre><code>  var holder = [];
        for(var x = 0; x &lt; object.length; x++) {
          var data = object[x];
          if (data[0] != '') {
           var id = x + 1;
          holder.push(use_id_to_something(data,id));
          }
      }
  </code></pre>
  <p>EDIT: the object that contains entire sheet</p>
  <pre><code>object = SS.getRange(&quot;A1:R&quot;).getValues();
  </code></pre>