Got any Excel/VBA Questions? Free Excel Help
Dynamic Named Ranges Examples
For ALL examples you need to:
The good thing about number 3,4,5,6 and 7 is that they will include blank cells.
You can also change the Columns the dynamic range will span by simply changing the last Argument of the OFFSET function to a higher number than 1.
You could even expand across your Columns dynamically by placing another COUNT or COUNTA formula as the last argument, instead of 1. See below:
In the Refers to box type: =OFFSET($A$1,0,0,COUNTA($A:$A),COUNTA($1:$1))
This dynamic range will now also expand across Columns in Row 1. So if you add another Column to your Table the dynamic range will automatically incorporate it.
To try and give you a better understanding of the OFFSET formula, read the text below taken from the Excel help file.
Reference : is the reference from which you want to base the offset. Reference must be a reference to a cell or range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value.
Rows : is the number of rows, up or down, that you want the upper-left cell to refer to. Using 5 as the rows argument specifies that the upper-left cell in the reference is five rows below reference. Rows can be positive (which means below the Starting reference) or negative (which means above the Starting reference).
Cols : is the number of columns, to the left or right, that you want the upper-left cell of the result to refer to. Using 5 as the cols argument specifies that the upper-left cell in the reference is five columns to the right of reference. Cols can be positive (which means to the right of the Starting reference) or negative (which means to the left of the Starting reference).
If rows and cols offset reference over the edge of the worksheet, OFFSET returns the #REF! error value.
Height : is the height, in number of rows, that you want the returned reference to be. Height must be a positive number. Students and educators at eligible institutions can sign up for Office 365 Education for free , including Word, Excel, PowerPoint, OneNote
Width : is the width, in number of columns, that you want the returned reference to be. Width must be a positive number.
If height or width is omitted, it is assumed to be the same height or width as reference. Students and educators at eligible institutions can sign up for Office 365 Education for free , including Word, Excel, PowerPoint, OneNote
|Excel Formulas/Formulae, Tips, Tricks and Feature Examples|
|Excel Charts : Delete a Single Entry From Excel Chart Legend|
|Dependent Validation Lists|
|Different Width Chart Bars. Stacked Fat/Thin Bar Chart|
|Excel Dynamic Formulas. Flexible & Changeable Formula Arguments|
|Excel Dynamic Lookup Formulas|
Click here to visit our Free 24/7 Excel/VBA Help Forum where there are thousands of posts you can get information from, or you can join the Forum and post your own questions. Casino Utan Svensk Licens
Microsoft ® and Microsoft Excel ® are registered trademarks of Microsoft Corporation. OzGrid is in no way associated with Microsoft.