---
title: "Google Apps Script: 3 Google Sheets Custom Functions to Allocate Items from a Column and Spread Them Out into a New Column N Times &#8211; Yagisanatode"
author: "Martin Hawksey"
date: 2020-10-09T12:52:00+00:00
modified: 2020-10-07T20:53:40+00:00
canonical_url: https://pulse.appsscript.info/p/2020/10/google-apps-script-3-google-sheets-custom-functions-to-allocate-items-from-a-column-and-spread-them-out-into-a-new-column-n-times-yagisanatode/
markdown_url: https://pulse.appsscript.info/p/2020/10/google-apps-script-3-google-sheets-custom-functions-to-allocate-items-from-a-column-and-spread-them-out-into-a-new-column-n-times-yagisanatode.md
categories:
  - "Intermediate"
  - "Sheets"
  - "Solutions"
  - "V8"
tags:
  - "@LifeOfSpy"
  - "yagisanatode.com"
featured_image: https://pulse.appsscript.info/files/2020/10/SPREAD_BYRANGE-custom-funciton-in-Google-Sheets.gif
description: "Imagine if you have a set of data, say, Cat, Dog, Goat and you want to create a new column where each item is repeated 3 times. Essentially what we are doing here is spreading..."
---

# Google Apps Script: 3 Google Sheets Custom Functions to Allocate Items from a Column and Spread Them Out into a New Column N Times &#8211; Yagisanatode

![Google Apps Script: 3 Google Sheets Custom Functions to Allocate Items from a Column and Spread Them Out into a New Column N Times &#8211; Yagisanatode](https://pulse.appsscript.info/files/2020/10/SPREAD_BYRANGE-custom-funciton-in-Google-Sheets.gif)

> [https://yagisanatode.com/2020/09/20/google-apps-script-3-google-sheets-custom-functions-to-allocate-items-from-a-column-and-spread-them-out-into-a-new-column-n-times/](https://yagisanatode.com/2020/09/20/google-apps-script-3-google-sheets-custom-functions-to-allocate-items-from-a-column-and-spread-them-out-into-a-new-column-n-times/)
> Imagine if you have a set of data, say, Cat, Dog, Goat and you want to create a new column where each item is repeated 3 times. Essentially what we are doing here is spreading out our original … There is no real easy approach to do these things with the standard Google Sheets Formulas (Known as Functions in Google Sheets). Fortunately, we can create custom functions with Google Apps Script to do the job.
> In this post, I will go over the 3 custom functions that I created to solve these three problems. I’ll then provide a quick-use guide if you just want to dive in and get started using them. Finally, I go over some of the interesting parts of the Google Apps Script code for those of you who wish to learn more about creating your own custom functions.

Source: *[Google Apps Script: 3 Google Sheets Custom Functions to Allocate Items from a Column and Spread Them Out into a New Column N Times – Yagisanatode*](https://yagisanatode.com/2020/09/20/google-apps-script-3-google-sheets-custom-functions-to-allocate-items-from-a-column-and-spread-them-out-into-a-new-column-n-times/)

---

*Published by [Martin Hawksey](https://pulse.appsscript.info/p/author/admin/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2020/10/google-apps-script-3-google-sheets-custom-functions-to-allocate-items-from-a-column-and-spread-them-out-into-a-new-column-n-times-yagisanatode/](https://pulse.appsscript.info/p/2020/10/google-apps-script-3-google-sheets-custom-functions-to-allocate-items-from-a-column-and-spread-them-out-into-a-new-column-n-times-yagisanatode/)*
