# Create a Table from the Rows

### Overview

This procedures takes a collection of individual data rows and efficiently organizes them into a brand new, structured table. It's useful when you've already gathered or filtered specific rows from a previous command.

### Syntax

Below is a line-by-line overview of the automation syntax. Expand each line to learn more.

<details>

<summary><code>create a table from the rows</code></summary>

**What does it do?**

Instructs the system to create a table from one or more rows.

**Where does it go?**

This phrase should be written on a **new line**.

**Is it required?**

✅ Yes — This phrase is **required**.

**Does it require data?**

✅ Yes — A reference to **the rows** must be defined.

</details>

### Examples

#### 1. Create a table from a sample's table's rows

{% tabs %}
{% tab title="Automation" %}

```
create a sample table
get the table's rows where
    the row selection formula is "City == San Francisco"
create a table from the rows
```

{% endtab %}

{% tab title="Results" %}
**the table**

| Name          | Number             | Address          | City          |
| ------------- | ------------------ | ---------------- | ------------- |
| john          | + 1 (415) 691 9426 | 123 east street  | San Francisco |
| jack          | + 1 (415) 691 4595 | 213 north street | San Francisco |
| {% endtab %}  |                    |                  |               |
| {% endtabs %} |                    |                  |               |
