How to Create a Dynamic Named Range in Excel – 2 Methods

This is an overview.

excel dynamic named range


The sample dataset showcases students’ Names and their Marks in English.

Dataset

 

Method 1 – Using the OFFSET Function to Create a One Dimensional Dynamic Named Range in Excel

Steps:

  • Go to the Formulas tab.
  • Select Name Manager.

Define Name Range

  • Select New.

Set Name excel dynamic named range

 

  • Enter a Name.
  • Use the following formula in Refers to:.
=OFFSET(Sheet1!$B$5,,,COUNTA(Sheet1!$B$5:$B$100))
  • Click OK.

Apply Formula

Formula Breakdown

  • COUNTA(Sheet1!$B$5:$B$100)) → counts non-empty cells in B5:B100.
    • Output: 11
  • OFFSET(Sheet1!$B$5;;;COUNTA(Sheet1!$B$5:$B$100)) → Returns the range of a cell.
    • Output: {“Alfred Moyes”;”Angela Hopkins”;”Frank Orwell”;”Jennifer Marlo”;”Marcus North”;”Natalia Austin”;”Nathan Mills”;”Peter Simpson”;”Steve Smith”;”Shane Hayes”;”Rilee Royes”}
  • Select E5:E15.
  • Enter the following formula in the formula bar.
=Students

Output excel dynamic named range

  • Press CTRL + SHIFT + ENTER. (It is an array formula)

Excel will show the names in the range.

Output

Note

Read More: How to Display Named Range Contents in Excel 


Method 2 – Use the INDIRECT Function to Create a Two Dimensional Dynamic Named Range in Excel

Steps:

  • Open the New Name box following the steps described in method-1.
  • Set a name.
  • Enter the following formula:
=Sheet3!$B$5:INDIRECT("C"&COUNTA(Sheet3!$C:$C)-2+ROW(Sheet3!$C$5))
  • Click OK.

Apply Formula

  • Select E5:E15.
  • Use the following formula in the formula bar.
=Multidimensional_List

excel dynamic named range

  • Press CTRL + SHIFT + ENTER.

Excel will show the names in the range.

Final Output

Formula Breakdown

  • ROW(Sheet3!$C$5) → returns the row number of C5.
    • Output: {5}
  • COUNTA(Sheet3!$C:$C) → Counts non-empty cells in column C
    • Output: 12
  • “C”&COUNTA(Sheet3!$C:$C)-2+ROW(Sheet3!$C$5) → The Ampersand (&) joins the texts.
    • Output: {“C15”}
  • Sheet3!$B$5:INDIRECT(“C”&COUNTA(Sheet3!$C:$C)-2+ROW(Sheet3!$C$5)) → shows the final output.
    • Output: {“Alfred Moyes”\28;”Angela Hopkins”\55;”Frank Orwell”\76;”Jennifer Marlo”\79;”Marcus North”\20;”Natalia Austin”\75;”Nathan Mills”\67;”Peter Simpson”\87;”Steve Smith”\31;”Shane Hayes”\84;”Rilee Royes”\59}
Note
Sheet3 is the name of the worksheet.

Read More: Excel INDIRECT Function with Named Range 


Download Practice Workbook


Related Readings


<< Go Back to Named Range | Excel Formulas | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Rifat Hassan
Rifat Hassan

Rifat Hassan, BSc, Electrical and Electronic Engineering, Bangladesh University of Engineering and Technology, has worked with the ExcelDemy project for almost 2 years. Within these 2 years, he has written over 250 articles. He has also conducted a few Boot Camp sessions on effective coding, especially Visual Basic for Applications (VBA). Currently, he is working as a Software Developer to develop and deploy additional add-ins to enhance the customers with a more sophisticated experience with Microsoft Office Suits,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo