# Extract Ranges and add to new sheet

**URL:** https://community.make.com/t/extract-ranges-and-add-to-new-sheet/30418
**Category:** Questions
**Tags:** arrays, google-sheets
**Created:** [March 13, 2024, 3:08pm UTC](https://community.make.com/t/extract-ranges-and-add-to-new-sheet/30418 "2024-03-13T15:08:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![SerenityAdmin](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@SerenityAdmin](https://community.make.com/u/SerenityAdmin)
#### Post date: [March 13, 2024, 3:08pm UTC](https://community.make.com/t/extract-ranges-and-add-to-new-sheet/30418/1 "2024-03-13T15:08:40Z")

</div>

I would like to extract 3 columns from an google sheet and add them into a new sheet in a new workbook.

The two issues I’m having are:

1. The ranges successfully extract each cell on the third column but not on the other two, it only takes the first column and iterates through that
2. The iteration keeps going even after the total number of bundles. it for some reason duplicates the extraction of the third column (I also cant seem to limit it with a filter)

Ive tries, creating JSON, Parsing Json, iterating and aggregating.

I’ve also tried using one aggregator but it wont allow me to select multiple modules as inputs. and when I chain them together it cost me 20,000 operations…

Not sure which method is the best but none seem to work. The current methods I’ve tried requite 2-4 modules to iterate the same amount of times which seems quite costly for such a simple automation.

The extraction from the sheet seems to be good, even the iteration of the numbers(except for the issue of duplicate execution), but it wont do it for the name or amount column.

[blueprint (3).json](https://community.make.com/uploads/short-url/g4xMh1hxbPXH1V5G9nQiVC9JZr1.json) (64.1 KB)

Column 1:

 ![Rapprochment (MakeCommunity) MakeGoogle Chrome -Screenshot on2024-03-13 (000615)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/8/3897ab907102bb95c6f0ff37a9eefc067ce26d4a.png)

Column 2:

 ![Rapprochment (MakeCommunity) MakeGoogle Chrome -Screenshot on2024-03-13 (000617)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/a/d/adbdf7a2b148f4d65225506e9b3c11edcb88a233.png)

Column 3:

 ![Rapprochment (MakeCommunity) MakeGoogle Chrome -Screenshot on2024-03-13 (000619)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/a/b/abd2f721ed64f37af3a1f12eb2651797989dd8ef.png)

The over execution issue:

 ![Rapprochment (MakeCommunity) MakeGoogle Chrome -Screenshot on2024-03-13 (000623)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/f/2/f29924d2924bb579f9984553ab04cebe9e092068.png)

First oppression is correct, but second doesn’t properly iterate. Only the Number (Numero) column iterates thought the array not the Name(Destinaire) and Amount (Montant):

 ![Rapprochment (MakeCommunity) MakeGoogle Chrome -Screenshot on2024-03-13 (000621)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/6/1/616e21708b4682920fbc2d1ba9661fd1ac351335.png)

The first iterator after the “create JSON”

 ![Rapprochment (MakeCommunity) MakeGoogle Chrome -Screenshot on2024-03-13 (000629)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/4/c4a5d7e2edc8922ce466df029d214ae5ef3467e9.png)

The Parse JSON into “ROW”:

 ![Rapprochment (MakeCommunity) MakeGoogle Chrome -Screenshot on2024-03-13 (000631)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/9/2/922a6906426cd4cd2d2a5aaab162e195fd9f560c.png)

The last aggregator on the “ROW”:

 ![Rapprochment (MakeCommunity) MakeGoogle Chrome -Screenshot on2024-03-13 (000627)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/e/4e681ef32a0116e10d23d7b5d6c374a8019b9c2d.png)

Sheet output:  
 ![Conversion - Google SheetsGoogle Chrome -Screenshot on2024-03-13 (000625)](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/a/4a00936025404c0ad9f5d6d29a610a3ef3c228d4.png)

Ideally id like  
NUMBER ID | NAME | AMOUNT|

Ive been stuck on this for a while, thank you.

---

<div class="post-metadata">

### Author: ![IOA\_Brett](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/ioa_brett/32/16853_2.png) [@IOA\_Brett](https://community.make.com/u/IOA_Brett)
#### Post date: [March 13, 2024, 5:38pm UTC](https://community.make.com/t/extract-ranges-and-add-to-new-sheet/30418/2 "2024-03-13T17:38:15Z")

</div>

Hello,

I would highly recommend using the Google Sheets “Get Range Values” and “Make an API Call” Modules for this process.

Step 1: Get the data from your source sheet using the “get Range Values” module. This will return n bundles for each record returned.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/1/e1072ec7a6288141c9e0aeaaa5b52030ed54770e.png)

Step 2: use a “text aggregator” to parse each bundle into your desired data. This will use 1 operation. Separate by a comma, and format the data in a array of strings. E.g [“data1”,“data2”,“data3”]

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/b/7bbff693ac99bf282f9224c5ebeae9c9c773cccd.png)

Step 3: Use the “Make an API Call” Module to append data from step 2 in one operation.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/3/43aa494d32ad12e35cc64d4f88862c54692b2463.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/1/011d45fdbfca21431ba693fa7881a407d9a8e339.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/5/d/5d6dcdb7108659ca0ef7db1950aa4d52677d183a.png)

Here are the results using a test sheet I put together:

Source Sheet:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/a/c/acf9bcf4da34e4ab2876a6c2212821d2082d9088.png)

Result Sheet:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/f/7f1f01a4bc16e99ebdd2884517412e437d7d0d4e.png)

Using this method I can extract thousands of records from the target sheet, and append them to the result sheet in 3 operations.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/e/7ea16deff9ba730aec5ba6d779140dc7a54166f8.png)

This link will send you to the Google Sheets documentation for more details:

> **[Google Sheets API Overview  |  Google for Developers](https://developers.google.com/sheets/api/guides/concepts)**

Hope that helps!

---

<div class="post-metadata">

### Author: ![SerenityAdmin](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@SerenityAdmin](https://community.make.com/u/SerenityAdmin)
#### Post date: [March 14, 2024, 11:37am UTC](https://community.make.com/t/extract-ranges-and-add-to-new-sheet/30418/3 "2024-03-14T11:37:33Z")

</div>

Worked beautifully thank you, Honestly would’ve taken me a while to get there on my own. Very much appreciated for the quick and clear help.

---

<div class="post-metadata">

### Author: ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)
#### Post date: [March 28, 2024, 11:48am UTC](https://community.make.com/t/extract-ranges-and-add-to-new-sheet/30418/4 "2024-03-28T11:48:13Z")

</div>


