What is dynamic named range in Microsoft Excel?
A dynamic named range helps to automatically fetch the newly entered value in the list of defined range name in Excel.
How to create dynamic range in Microsoft Excel?
To create dynamic named range, we have to enter formula for the range which will be a combination of COUNTA and OFFSET functions.
Let’s take an example and understand:-
We have number list in Column A. Select the range of A1:A6 and name it Revenue in the Name Box. Calculate the Average in cell C1.
Now we need when we add any number in column A, Excel update the Average automatically.
Follow below given steps:-
- Go to formula tab and click on Name Manager under the Defined names group.
- Name Manager Dialog box will appear.
- Click on Edit button, Edit Name dialog box will appear.
- Enter the formula in “Refers to” box =OFFSET($A$1,0,0,COUNTA($A:$A),1).
- Click on ok.
- Click on Close to Name Manager Dialog box.
Now when you will update the value in column A, then Excel will update the Average function automatically.
COUNTA function calculates the available number of values in the range that are not blank, so that whenever we add any value in the range, COUNTA function gives the result according to the values available in the range. It will provide the number for height.
OFFSET function takes 5 arguments, `=OFFSET(reference,rows,cols,height,width) for reference, we have defined $A$1, rows:- 0, columns:- 0, height:- 6 and width:- 1.
This is all about we can create the dynamic named range in Microsoft Excel.
If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at email@example.com