Dynamic Print Range Using the Offset Function |
+1 This Page
|
What is the Offset Function?
You can read about the offset function here - there are several examples and explanations showing how the difference parts of the offset function work. This page is going to show an example of a dynamic print range.
The Formula
The formula is =Offset(Reference,Rows,Cols,Height,Width)
For dynamic printing, in this example, we're only using the pieces that are bold. We're going to use the COUNTA formula for both the Height and Width. The COUNTA formula counts non-blanks.
For dynamic printing, in this example, we're only using the pieces that are bold. We're going to use the COUNTA formula for both the Height and Width. The COUNTA formula counts non-blanks.
Download this file to See this Example
|
|
||||||
Other Files that use the Offset Function for Dynamic Printing Found on this Site
We've used the offset function in some of the templates uploaded on this website. If you would like to download the excel templates and see some more real world uses of this fantastic function please click on the links below. Also, don't forget to learn more about this function here.
|
In this template we used references found in other locations of the spreadsheet to determine the dynamic range. Because there is data in multiple rows that we may not want to print we couldn't use the COUNTA formula. Download the template and push 'Ctrl' and 'F3' to see the formula under 'Print_Range'.
Loan Amortization Schedule - Dynamic Print |
In this template, we used the same formula as described above, however, we started on a different cell and made some other slight modifications (like adding 1 to the height, to account for the blank row between the table and the header). Download the template and push 'Ctrl' and 'F3' to see the formula under 'Print_Range'.
|





