Table of Contents

Dynamic Named Range

A dynamic named range expands automatically when you add a value to the range.

1. For example select the range A1:A4 and name it Prices.

2. Calculate the sum.

Dynamic Named Range Example

3. When you add a value to the range Excel does not update the sum.

Wrong Sum

To expand the named range automatically when you add a value to the range execute the following steps.

4. On the Formulas tab in the Defined Names group click Name Manager.

Click Name Manager

5. Click Edit.

Click Edit

6. Click in the “Refers to” box and enter the formula =OFFSET($A$100COUNTA($A:$A)1)

Edit Name

Explanation: the OFFSET function takes 5 arguments. Reference: $A$1 rows to offset: 0 columns to offset: 0 height: COUNTA($A:$A) and width: 1. COUNTA($A:$A) counts the number of values in column A that are not empty. When you add a value to the range COUNTA($A:$A) increases. As a result the range returned by the OFFSET function expands.

7. Click OK and Close.

8. Now when you add a value to the range Excel updates the sum automatically.

Correct Sum

Dynamic Named Range in Excel

Leave A Comment

Excel meets AI – Boost your productivity like never before!

At Formulas HQ, we’ve harnessed the brilliance of AI to turbocharge your Spreadsheet mastery. Say goodbye to the days of grappling with complex formulas, VBA code, and scripts. We’re here to make your work smarter, not harder.

Related Articles

The Latest on Formulas HQ Blog