# How to Group/Ungroup Trades

There are two ways to group your trades - manually or automatically.&#x20;

#### Automatic Grouping

<figure><img src="https://files.helpdocs.io/56bu62syz9/articles/q5gmyf8t4y/1689265051775/file-q-duh-dyp-wvu.png" alt=""><figcaption></figcaption></figure>

You can click the notch next to **GROUP TRADES** to group them automatically. Your trades will be grouped by commodity.&#x20;

#### Manual Grouping

To group them manually, add the **MG.ID** column onto the **TRADES** screen. Select **PICK COLUMNS** from the drop-down **ACTIONS** menu.&#x20;

<figure><img src="https://files.helpdocs.io/56bu62syz9/articles/q5gmyf8t4y/1689265052099/file-iou-3-d-h-1-xp-u.png" alt=""><figcaption></figcaption></figure>

The following search screen should populate:&#x20;

<figure><img src="https://files.helpdocs.io/56bu62syz9/articles/q5gmyf8t4y/1689265052320/file-7-ijrao-56-o.png" alt=""><figcaption></figcaption></figure>

Type the **MG.ID** into the search bar, then check the **MG.ID** box. Press **SAVE** when you're finished. The column will populate on your **TRADES** screen.

Check out this [article](https://help.molecule.io/article/170-top-5-things-you-can-do-on-the-trades-screen) to learn how to drag columns and customize your trade table in Molecule.

Next, hover your mouse over the commodity icon and check the boxes you want to group.

<div align="center"><figure><img src="https://files.helpdocs.io/56bu62syz9/articles/q5gmyf8t4y/1689265052626/file-md-mp-rf-xxb-7.png" alt=""><figcaption></figcaption></figure></div>

Then, go back to the **ACTIONS** menu and select **GROUP SELECTED TRADES.**

<div align="center"><figure><img src="https://files.helpdocs.io/56bu62syz9/articles/q5gmyf8t4y/1689265052964/file-ih-16-rl-21-y-t.png" alt="" width="375"><figcaption></figcaption></figure></div>

You'll be prompted to write your custom Group ID.&#x20;

<div align="center"><figure><img src="https://files.helpdocs.io/56bu62syz9/articles/q5gmyf8t4y/1689265053295/file-od-2-w-4-oqyyb.png" alt="" width="563"><figcaption></figcaption></figure></div>

After you type your custom ID, you can view your group trades by their Group ID in the **MG.ID** column. &#x20;

<div align="center"><figure><img src="https://files.helpdocs.io/56bu62syz9/articles/q5gmyf8t4y/1689265053541/file-tylz-bf-rff-i.png" alt="" width="563"><figcaption></figcaption></figure></div>

Once your trades are grouped, you can also [amend](https://help.molecule.io/article/162-amending-a-trade), [clone](https://help.molecule.io/core-functionality/core-features/specialized-features/trades/trade-amendments/how-to-clone-a-trade), [transfer](https://help.molecule.io/core-functionality/core-features/specialized-features/trades/trade-amendments/how-to-transfer-a-trade), [split](https://help.molecule.io/core-functionality/core-features/specialized-features/trades/trade-amendments/how-to-split-a-trade), or [void](https://help.molecule.io/core-functionality/core-features/specialized-features/trades/trade-amendments/how-to-void-a-trade) them after pressing the three dots on the left-hand side.&#x20;

<div align="center"><figure><img src="https://files.helpdocs.io/56bu62syz9/articles/q5gmyf8t4y/1689265053762/file-ko-ii-qb-437-h.png" alt="" width="375"><figcaption></figcaption></figure></div>

#### Ungrouping

To ungroup trades, check the boxes that you'd like to ungroup, then go to the **ACTIONS** drop-down menu and select **UNGROUP SELECTED TRADES.**

<div align="center"><figure><img src="https://files.helpdocs.io/56bu62syz9/articles/q5gmyf8t4y/1689265053976/file-ps-6-w-5-v-xn-wu.png" alt="" width="188"><figcaption></figcaption></figure></div>
