Extract Column of data from Sheets and insert them as a row of data accross columns in another sheet

Thank you to those that help me - I am new to make and I have taken the first 3 classes in the academy. I have 20+ years of experience with PHP, but I have only minimal exposure to JavaScript so I need some help :slight_smile:

I am attempting to extract a column of 10 rows of data from a G Sheet, then take that data and insert in to a new row across 10 columns in a different G sheet.

It is important to know that the the columns in the data source will never change.

I have used an Array Aggregator to turn the data into an array, then my gut was to use tools to get multiple values and map all 10 element positions of the array into variables.

Then use a Google Sheets module to add a row and place the variable names into each column.

The issue is that I do not know the syntax to in order to retrieve each value from each position in the get values module.

Thank you for your help!



Welcome to the Make community!

You can delete your get multiple variables module.

Simply use the built-in map-get functions to access variables from your aggregator’s array, directly in the Google Sheets module:

{{ get(map(8.array; "0"); 1) }}
{{ get(map(8.array; "0"); 2) }}
{{ get(map(8.array; "0"); 3) }}
{{ get(map(8.array; "0"); 4) }}
{{ get(map(8.array; "0"); 5) }}
{{ get(map(8.array; "0"); 6) }}
etc.

For more information, see the function documentation in the Help Center, and complete the Make Academy as it is explained in further detail there.

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

Getting Started

Help Centre Basics

Articles & Videos

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

2 Likes

thank you Samliew - that worked perfectly ! you are awesome!

1 Like