logo
search
Function Problems

How to Automatically Increment Excel Sheet References with a Formula

Aamir Naveed AkramAamir Naveed Akram Sep 28, 2026 869 views

Question details

The user needs a way to dynamically increment worksheet references (e.g., from Sheet 1 to Sheet 2) in a formula when dragging it across rows or columns.

How to Automatically Increment Excel Sheet References with a Formula
Product
Excel / WPS Spreadsheet
Device & OS
not provided
Scenario
Pulling data from multiple sequentially numbered worksheets into a main summary sheet.
Observed behavior
Standard cell references do not automatically update or increment the worksheet name when a formula is filled down or across.
Before you start

Ensure your worksheets are sequentially named (e.g., 1, 2, 3) and that you know the exact target cell you want to extract data from on each sheet.

Solution 1Recommended

Use INDIRECT and ROW for Vertical Auto-Incrementing

Combine the INDIRECT function with the ROW function to dynamically generate sequential sheet names as you drag the formula down a column.

The INDIRECT function converts a text string into a valid cell reference. By using the ROW function, you can create a counter that increases by 1 for each row. This allows the formula to reference the next sequential worksheet automatically.

1
Select the target cell

Click on the cell in your master sheet where you want the first piece of data to appear, for example, cell D2.

2
Enter the vertical formula

Type =INDIRECT("'"&ROW(D2)-ROW($D$2)+1&"'!B2"). This formula assumes your sheets are named exactly '1', '2', '3', etc.

3
Fill down

Click and hold the fill handle at the bottom-right corner of the cell, then drag it down to automatically increment the reference to subsequent sheets.

Use INDIRECT and ROW for Vertical Auto-Incrementing
Adjusting sheet names and cell references: The reference '!B2' targets cell B2 on each sheet. Change this to match your target data. If your sheets have a prefix, like 'Sheet 1', modify the formula to include the text: =INDIRECT("'Sheet "&ROW(D2)-ROW($D$2)+1&"'!B2").
WPS Spreadsheet Solution

Effortlessly Manage Complex Formulas with WPS Spreadsheet

WPS Spreadsheet provides robust support for advanced functions like INDIRECT, ROW, and COLUMN, allowing you to easily pull and summarize data across multiple worksheets.

  1. 1. Open your workbook: Launch WPS Office and open your spreadsheet file containing the sequential sheets.
  2. 2. Enter the INDIRECT formula: Select your master sheet cell and input the INDIRECT and ROW combination formula to target your sequence.
  3. 3. Drag to fill: Use the intuitive fill handle to drag down or across, instantly pulling data from multiple sheets.
Fully compatible with Microsoft Excel formulas, functions, and formats (.xlsx).Advanced formula auditing tools to help you trace and fix errors quickly.Smooth handling of large workbooks with hundreds of sequential sheets.Free, lightweight, and features an intuitive tabbed interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why am I getting a #REF! error when using the INDIRECT formula?

A #REF! error usually occurs if the worksheet name generated by the formula doesn't match the actual sheet name exactly, or if the referenced sheet name contains spaces but isn't enclosed in single quotes within the formula string.

Can I use this method if my sheet names are text instead of numbers (e.g., Jan, Feb, Mar)?

Yes, but you will need to list the sheet names sequentially in a separate column or row on your master sheet. You can then reference those specific text cells within your INDIRECT formula instead of using the ROW or COLUMN math.

Does the INDIRECT function update when a referenced sheet is renamed?

No. Because the INDIRECT function evaluates a text string, it will not automatically update if you change the actual sheet's name. You must manually update the text string in the formula to match the new name.

Is the INDIRECT function considered volatile?

Yes, INDIRECT is a volatile function. This means it recalculates every time any change is made anywhere in the workbook, which can slow down performance if used extensively in very large files.