Function Problems

Create a Dynamic Named Range with Excel Name Manager

Elise WilliamsElise Williams Dec 2, 2026 868 views

Question details

Create a named range in Excel whose height is controlled by a cell on another worksheet.

Create a Dynamic Named Range with Excel Name Manager
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.
Before you start

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.

Solution 1Recommended

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.

1
Open Name Manager

In Excel, select Formulas > Name Manager, then click New.

2
Enter a name

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.

3
Add the OFFSET formula

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.

4
Test the range

Close Name Manager, change the value in Engine!C3, and select DynamicData from the Name Box to check the resulting selection.

Define the range with OFFSET in Excel Name Manager
Regional separators: If your Excel settings use semicolons as argument separators, enter =OFFSET(Data!$D$5;0;0;Engine!$C$3;1) instead.
Dynamic ranges in WPS Spreadsheets

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. 1. Open the workbook: Open your workbook in WPS Spreadsheets and confirm that Data!D5 and Engine!C3 are available.
  2. 2. Set the row count: Enter a positive whole number in Engine!C3 to specify the height of the range.
  3. 3. Define the name: Select Formulas > Name Manager, choose New, and enter a name such as DynamicData.
  4. 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.
Control the named range height from a worksheet cellOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interfaceWork with a free, lightweight office suite
microsoft office alternative - wps office

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.