How to repeat cells in Google Sheets

I have a column containing 3 rows and I want to be able to repeat those rows 5 times each.

Example

| Name |
|------|
| Dog  |
| Cat  |
| Ball |
|------|

Desired Output

| Output |
|--------|
| Dog    |
| Dog    |
| Dog    |
| Dog    |
| Dog    |
| Cat    |
| Cat    |
| Cat    |
| Cat    |
| Cat    |
| Ball   |
| Ball   |
| Ball   |
| Ball   |
| Ball   |
|--------|

Here's what I have tried:

=TRANSPOSE(split(rept(join(";",A:A)&";",5),";"))

My attempt produces:

| Output |
|--------|
| Dog    |
| Cat    |
| Ball   |
| Dog    |
| Cat    |
| Ball   |
| Dog    |
| Cat    |
| Ball   |
| Dog    |
| Cat    |
| Ball   |
| Dog    |
| Cat    |
| Ball   |
|--------|

It automatically propagates to subsequent rows if a value is entered in column A, removing the need to copy it to each row. In fact, if you copied it to C2, it would be automatically overwritten by the continuation of the formula in C1.

The important part is the :A and :B, which specify you'd like to include these entire columns in your formula. This means you could apply the single cell formula =A5*(1.6*B5) to entire columns with:

=ARRAYFORMULA(A5:A*(1.6*B5:B)) 

Note that this yields bad results where A and

=ARRAYFORMULA(A5:A*(1.6*B5:B)) 
0 are missing values, so we wrap it in an
=ARRAYFORMULA(A5:A*(1.6*B5:B)) 
1 statement (see above) to show nothing when there are no values. You could also use
=ARRAYFORMULA(A5:A*(1.6*B5:B)) 
2 to handle bad results.

Have you ever viewed a printed spreadsheet and had to keep checking to see which column a cell belonged to? Use these steps to repeat the top row on every page in Google Sheets.

  1. Open your Google Sheets file.
  2. Select the View tab at the top of the window.
  3. Click the Freeze option.
  4. Choose the 1 row option.
  5. Select File, then Print.
  6. Choose Headers & footers.
  7. Check the Repeat frozen rows option.

Our article continues below with additional information and pictures for each of these steps.

Spreadsheets that span multiple printed pages are very common when you are dealing with large amounts of data. And while that data is often very important, the size of the spreadsheet can become a problem as readers will struggle to understand which columns contain which data.

Fortunately there is a way to resolve this by printing your header row at the top of every page in Google Sheets. Common spreadsheet structure involves placing identifying information about that column’s contents in that first row, so repeating it on every page will ensure that information on secondary pages and beyond is a little easier to identify.

See also

  • How to merge cells in Google Sheets
  • How to wrap text in Google Sheets
  • How to alphabetize in Google Sheets
  • How to subtract in Google Sheets
  • How to change row height in Google Sheets

How to Print the Top Row on Every Page in Google Sheets

The steps in this article were performed in Google Chrome, in the browser-based version of the application. The result of completing this guide will be a spreadsheet where the top row is repeated on every new page that you print.

Step 1: Navigate to Google Drive at https://drive.google.com/drive/my-drive and open the spreadsheet for which you want to print the top row on every page.

Step 2: Click the View tab at the top of the window.

How to repeat cells in Google Sheets
How to repeat cells in Google Sheets

Step 3: Click the Freeze option, then click the 1 row option. Note that this is also going to modify the display of your spreadsheet on your computer screen by keeping that top row at the top of the sheet, even when you scroll down.

How to repeat cells in Google Sheets
How to repeat cells in Google Sheets

Step 4: Click the File tab at the top of the window, then click the Print option.

How to repeat cells in Google Sheets
How to repeat cells in Google Sheets

This is going to open the Print Preview window, where you can see how your printed spreadsheet will look.

You can then select the Headers & footers option in the right column, then scroll down and select the Repeat frozen rows option if it’s not selected already.

If you scroll down to the second page of your sheet you should see that the top row of the spreadsheet is repeating at the top of that page.

If you are interested in repeating more than one row at the top of each page, simply select the appropriate option from the Freeze menu that we used in step 3 above.

For additional utility, consider adding page numbers. These are located in the Header & footer section at the bottom-right column when you are in the Print Preview window. Simply check the box to the left of Page numbers and they will be included at the bottom of each page. You can click the Edit Custom Fields button if you want to put the page numbers in a different location.

Behavior and formatting like this highlights the importance of using header rows when working with a large amount of data. Many spreadsheet applications assume that you will include header data in your spreadsheet, and many other viewers and editors will as well. While there are situations where a header row is impractical or unnecessary, it can often resolve confusion and eliminate mistakes caused by the misidentification of data.

You can also achieve the same result in Microsoft Excel, if you use that program, too. Learn how to repeat the top row on every page in Excel and make it a little easier for your audience to understand the information in a multi-page spreadsheet.

Matthew Burleigh

Matthew Burleigh has been writing tech tutorials since 2008. His writing has appeared on dozens of different websites and been read over 50 million times.

After receiving his Bachelor’s and Master’s degrees in Computer Science he spent several years working in IT management for small businesses. However, he now works full time writing content online and creating websites.

His main writing topics include iPhones, Microsoft Office, Google Apps, Android, and Photoshop, but he has also written about many other tech topics as well.

How do you make a cell repeat in Google Sheets?

Use autofill to complete a series.
On your computer, open a spreadsheet in Google Sheets..
In a column or row, enter text, numbers, or dates in at least two cells next to each other..
Highlight the cells. You'll see a small blue box in the lower right corner..
Drag the blue box any number of cells down or across..

What is the repeat command in Google Sheets?

F4 - Repeat Last Action: You can now repeat the last action you made on your spreadsheet by using the keyboard shortcut, F4.

Can you repeat a row in Google Sheets?

We can repeat header rows when scrolling in Google Sheets using the Freeze option. To lock the first row from the previous example: We need to select cells A1 to A3. Next, we need to click View.

How do you repeat a range of multiple times in Google Sheets?

To repeat multiple columns N times, we can use Google Sheets REPT function. REPT is a Text function in Google Doc Spreadsheets which you can use in many ways. Here is one such example. With a custom formula using REPT, JOIN and SPLIT, we can repeat multiple columns or rows N times.