title: Copy cell to another sheet if condition is met
body: <p>I have a sheet with a large data array, which I would like to split into several sheets based on values in a column.</p>
  <p>In the main sheet, column &quot;A&quot;, I have various labels. On the new sheet, e.g. &quot;LabelX&quot; i need to extract all rows from main sheet, corresponding to &quot;LabelX&quot; value in column &quot;A&quot;. There are multiple rows with same label.</p>
  <p>Hope it makes sense,</p>
  <p>Basic example</p>
  <p><a href="https://i.stack.imgur.com/UDi2l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UDi2l.png" alt="enter image description here" /></a></p>