How to insert a array of dynamic number of items into a single row on Google Sheets

Problem Statement

A. You have an array of values,
Screenshot_2024-09-03_100935

B. or an array of unknown number of items.
Screenshot_2024-09-03_110953


1. You want to insert them into a single row in Google Sheets, but you only managed to insert each value into separate rows because you used an iterator module.
Screenshot_2024-09-03_100929

2. Or you used an iterator-aggregator module, and have to manually map each column’s value into each of the the Google Sheets “Add a Row” fields. This also doesn’t allow for a dynamic number of array values.

3. Or you are not sure how many columns you will require, and want to dynamically create a brand new spreadsheet with all the items from the array as headers.

Possible Solution

You do not need any iterator or aggregator, text parser, and/or map-get functions. The array to columns conversion can be done in a single operation.

Example Output

Screenshot_2024-09-03_100939

Related Threads


Please contact me if you require me to implement a solution like this.

@samliew

Need help with complex web scraping requirements, building a pattern for your Text Parser, AI prompt engineering, or have some other Make-related question?
—> Book a Consultation

This topic was automatically closed after 30 days. New replies are no longer allowed.