# Add CopyRows() capability

**URL:** <https://connect.superhuman.com/t/add-copyrows-capability/12111>\
**Category:** Product Feedback\
**Created:** [November 15, 2019, 12:25pm UTC](https://connect.superhuman.com/t/add-copyrows-capability/12111 "2019-11-15T12:25:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Danyliuk](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/paul_danyliuk/32/27228_2.png) [@Paul\_Danyliuk](https://connect.superhuman.com/u/Paul_Danyliuk)\
**Post date:** [November 15, 2019, 12:25pm UTC](https://connect.superhuman.com/t/add-copyrows-capability/12111/1 "2019-11-15T12:25:02Z")

</div>

Sometimes there’s a need to copy a row or multiple rows, e.g. to make a snapshot of some data. Think of a pricing calculator table with lots inputs for different percentages etc — and the salesperson wants to make multiple variants with small changes to be able to quickly switch between.

Copying a row with `AddRow()` and enumerating all the columns is not a problem… unless there’s a few dozen of those.

`CopyRows()` could be a handy formula. It would accept a row or a filtered table, and for variadic arguments it could also accept column-value pairs of the data that needs to be overwritten in copied columns, e.g., `Tasks.Filter(Client = "Paul").CopyRows(Client, "Ben")`. It would copy rows into the same table.

---

<div class="post-metadata">

**Author:** ![Paul\_Danyliuk](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/paul_danyliuk/32/27228_2.png) [@Paul\_Danyliuk](https://connect.superhuman.com/u/Paul_Danyliuk)\
**Post date:** [December 9, 2019, 6:13pm UTC](https://connect.superhuman.com/t/add-copyrows-capability/12111/2 "2019-12-09T18:13:43Z")

</div>

Meanwhile here’s a trick to make writing an `AddRow()` formula easier when tables are very wide:

> [@Instantly make a button to copy a row with lots of columns](https://connect.superhuman.com/t/instantly-make-a-button-to-copy-a-row-with-lots-of-columns/12698):
>
> Not a hack per se, just a smart way to speed up formula creation to copy a row (e.g. from the main table to a log table), using some regex. Here’s a video how you can make such log table in 2 minutes: Copy the table to a text editor or right into an offline / online editor that supports regular expressions (I prefer [regex101.com](http://regex101.com), not affiliated). Remove everything but the headers Set up replacement with regular expressions: Search: ([^\t]+)\t? (means capture each element between tabs) …
