Create a Dynamic Named Range with Excel Name Manager
Question details
Create a named range in Excel whose height is controlled by a cell on another worksheet.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A one-column range starts at Data!D5, and Engine!C3 specifies how many rows it contains.
- Observed behavior
- The named range should expand or contract when the value in Engine!C3 changes.
Check that the workbook has sheets named Data and Engine, and enter a positive whole number in Engine!C3. Make sure the requested range does not extend beyond the bottom of the Data sheet.
Define the range with OFFSET in Excel Name Manager
Use this formula to create a one-column range starting at Data!D5, with its height set by Engine!C3.
In Excel, select Formulas > Name Manager, then click New.
In the Name field, enter a valid name such as DynamicData. Set the scope to Workbook if you want to use the name throughout the workbook.
In Refers to, enter =OFFSET(Data!$D$5,0,0,Engine!$C$3,1), then click OK. The formula starts at Data!D5 and returns one column with the number of rows specified in Engine!C3.
Close Name Manager, change the value in Engine!C3, and select DynamicData from the Name Box to check the resulting selection.

Create the same dynamic named range in WPS Spreadsheets
Use WPS Spreadsheets to define an OFFSET-based name that changes size according to a cell on another worksheet.
- 1. Open the workbook: Open your workbook in WPS Spreadsheets and confirm that Data!D5 and Engine!C3 are available.
- 2. Set the row count: Enter a positive whole number in Engine!C3 to specify the height of the range.
- 3. Define the name: Select Formulas > Name Manager, choose New, and enter a name such as DynamicData.
- 4. Enter and test the formula: In Refers to, enter =OFFSET(Data!$D$5,0,0,Engine!$C$3,1) and save the name. Change Engine!C3 and use the Name Box to select DynamicData and check its size.

Frequently Asked Questions
What does each part of the OFFSET formula do?
In =OFFSET(Data!$D$5,0,0,Engine!$C$3,1), Data!$D$5 is the starting cell, the two zeros keep the range at that position, Engine!$C$3 sets the height, and 1 sets the width to one column.
Why does Excel reject the formula with commas?
Your regional settings may require semicolons. In Name Manager, try =OFFSET(Data!$D$5;0;0;Engine!$C$3;1).
What happens if Engine!C3 is zero?
A zero-height reference is invalid, so OFFSET returns a #REF! error. Enter a positive whole number in Engine!C3.
How can I check which cells the name refers to?
Select the named range from the Name Box to the left of the formula bar. Excel selects the cells currently included in the range.




