Repeating lines in Excel usually means one of two things: printing the same row (like a header) at the top of every printed page, or filling a column with a repeated value down many rows. This guide covers both. For printing, you set up print titles in the Page Setup dialog. For filling cells, you use the Fill Handle or the Fill command. No special add-ins are needed; these steps work in Excel 2016, 2019, 2021, and Microsoft 365 on Windows and Mac, though some menu labels may differ slightly by version.

What You'll Need

  • A spreadsheet with the data you want to repeat.
  • If repeating a header on printouts, the header row must contain the labels you want on every page.
  • If repeating values in cells, a starting value typed in the first cell of the range.

Step-by-Step: Repeat a Row on Every Printed Page

This is the most common "repeat lines" request. It keeps your column headings visible when a worksheet spans multiple pages.

  1. Open the Page Setup dialog. Go to the Page Layout tab on the ribbon. In the Page Setup group, click the small arrow icon in the bottom-right corner of that group. (On Mac, it is under the Page Layout menu, then Page Setup.)
  2. Select the Sheet tab. In the Page Setup window, click the Sheet tab. (In some versions, it is labeled "Sheet" or "Worksheet.")
  3. Find the "Rows to repeat at top" field. It is near the top of the Sheet tab, under the "Print titles" section.
  4. Click the collapse button. Click the small spreadsheet icon at the right end of the "Rows to repeat at top" box. This minimizes the dialog so you can see your worksheet.
  5. Select the header row. Click on the row number (for example, row 1) of the row you want to repeat. You can drag to select multiple rows if your header spans two rows. The dialog will show something like $1:$1.
  6. Click the collapse button again to return to the full dialog, then click OK.
  7. Test it. Go to File > Print (or press Ctrl+P on Windows, Cmd+P on Mac). In the print preview, scroll through the pages. The selected row should appear at the top of every page.

If you also want to repeat a column on the left side of every page, use the "Columns to repeat at left" field in the same dialog. The process is identical but you click column letters instead of row numbers.

Step-by-Step: Repeat a Value Down a Column (Fill Down)

This fills a range of cells with the same value, which is useful for adding a category, a date, or a status label to many rows.

  1. Type the value once. In the first cell of the column where you want the repeated value, type the text or number (for example, "Pending").
  2. Select the cell and the range to fill. Click the cell with the value, then drag the fill handle (the small square at the bottom-right corner of the cell) down over the cells you want to fill. Alternatively, click the cell, hold Shift, and click the last cell in the range to select a block.
  3. Use the Fill command (optional). With the range selected, go to the Home tab, find the Editing group, click Fill, and choose Down. This copies the value from the top cell into all selected cells below it.
  4. Check the result. Each selected cell now contains the same value. If you later change the original cell, the repeated cells will not update automatically—they are static copies, not formulas.

For a quick keyboard shortcut: select the cell with the value, press Ctrl+C (copy), select the target range, then press Ctrl+V (paste). Or use Ctrl+D to fill down from the top cell of a selected range.

Step-by-Step: Repeat a Formula or Pattern

If you need to repeat a formula (like a running total) or a pattern (like every other row shaded), the method differs slightly.

  1. Enter the formula in the first cell. For example, in cell B2, type =A2*2.
  2. Use the Fill Handle. Drag the fill handle down. Excel will adjust the row references automatically (B2 becomes B3, B4, etc.) unless you used absolute references (like $A$2).
  3. For a repeating pattern (e.g., 1,2,3,1,2,3): Type the first few values (1, 2, 3) in three cells. Select those three cells, then drag the fill handle down. Excel recognizes the pattern and repeats it.
  4. For alternating shading: Select two rows, apply a fill color to one, leave the other uncolored, then use the Format Painter or the Fill Handle to copy the formatting down. Alternatively, use a conditional formatting rule with a formula like =MOD(ROW(),2)=0 to shade even rows.

Common Mistakes

  • Selecting cells instead of rows in Print Titles. In the "Rows to repeat at top" field, you must select entire row numbers, not individual cells. If you select cells like A1:A5, Excel may not repeat them correctly.
  • Using the wrong tab. The "Rows to repeat at top" option is on the Sheet tab of Page Setup, not the "Page" or "Margins" tab.
  • Forgetting to check print preview. The on-screen worksheet does not show repeated rows. You must look at print preview to verify.
  • Static copies instead of live values. When you fill down a value, it is a static copy. If you later change the original, the copies do not update. Use a formula (like =A1) if you need live updates.
  • Dragging the fill handle over hidden rows. If rows are hidden, dragging may skip them or fill unexpected cells. Unhide rows first or use the Fill command instead.

Tips

  • Use the Name Box for large ranges. To fill 10,000 rows, type the value in A1, then in the Name Box (left of the formula bar) type A1:A10000 and press Enter. Then press Ctrl+D to fill down instantly.
  • Double-click the fill handle. If you have data in an adjacent column, double-clicking the fill handle auto-fills down to the last row of that adjacent data. This is a huge time-saver.
  • Repeat a header on every page AND keep it visible on screen. Use View > Freeze Panes > Freeze Top Row for on-screen scrolling. Print Titles is only for printing.
  • Save a custom view. If you frequently print the same sheet with different repeat rows, set up the print titles, then go to View > Custom Views > Add to save the settings. You can switch between views later.
  • For repeating a block of rows (e.g., rows 1-3), select all three row numbers in the "Rows to repeat at top" field. They will all appear on each page.

Troubleshooting

If the repeated row does not appear on every printed page:

  1. Check that you selected the correct Sheet tab in Page Setup.
  2. Verify that the row reference in the field looks like $1:$1 (not $A$1). If it shows a cell reference, clear the field and re-select the row number.
  3. Ensure you are not in "Page Break Preview" mode with manual page breaks that override the print titles. Go to View > Normal and try again.
  4. If you are printing a selection (not the whole sheet), print titles may not apply. Go to File > Print > Settings and choose "Print Entire Workbook" or "Print Active Sheets" instead of a custom selection.

If the fill handle does not copy the value:

  1. Check that the fill handle is enabled: File > Options > Advanced, under "Editing options," ensure "Enable fill handle and cell drag-and-drop" is checked.
  2. If dragging changes the value (e.g., turns "1" into "2, 3, 4"), hold Ctrl while dragging to force a copy instead of a series.
  3. If you are filling a formula and it returns errors, check the relative references. Use $ to lock cells that should not change.

If the pattern fill (like 1,2,3) does not repeat:

  1. Select more than one cell before dragging. A single cell will always just copy or increment, not repeat a multi-value pattern.
  2. If Excel guesses the wrong pattern, type the first three or four values, select them, then drag. Excel usually detects the cycle.

Frequently Asked Questions

Can I repeat a row on every page without going into Page Setup?

Yes. In the Page Layout tab, click Print Titles (a button in the Page Setup group). This opens the same dialog directly on the Sheet tab, saving one click.

Does repeating a row affect the actual worksheet data?

No. Print titles are a print setting only. They do not insert duplicate rows into your data, change cell values, or affect formulas. The on-screen sheet remains unchanged.

How do I repeat a column on every printed page?

In the same Page Setup dialog, under the Sheet tab, use the "Columns to repeat at left" field. Click the collapse button, then select the column letter(s) you want repeated on the left side of each page.

Why does my repeated row only show on the first page?

This usually happens if you set the print area to a range that excludes the rows you want repeated, or if you are printing a specific selection. Clear the print area (Page Layout > Print Area > Clear Print Area) or ensure the repeat rows are within the print area.

Can I repeat a row that is not the first row?

Yes. In the "Rows to repeat at top" field, select any row number, even if it is in the middle of the sheet. Excel will print that row at the top of every page, and the rows above it will only appear on the first page.

Is there a way to repeat a line of text inside a cell, like a separator?

Yes. To repeat a character (like a dash) inside a single cell, use a formula: =REPT("-", 20) creates 20 dashes. To repeat a line break within a cell, use =REPT("text" & CHAR(10), 5) and enable "Wrap Text" on the cell.

If you are trying to repeat a row of dashes across multiple columns, you can type a dash in one cell and use the fill handle to copy it across, or use a custom number format like @ with a repeated character, though the formula approach is more flexible.