OFFSET Function in Excel


In this blog post we will learn to about OFFSET function in excel.

OFFSET function will give us a reference of a cell, or a cell range based on provided number of rows and number of columns. Basically, OFFSET function will shift the original reference to up, down, left, or right based on provided number of rows and columns and gives us new reference.

Where to find OFFSET function on Excel Screen:

OFFSET function can be found under “Lookup & Reference” function category under “Formulas” tab and under “Function Library” group as shown in below image:

Once we click on “Lookup & Reference” function category, we can see list of various Lookup & Reference functions available in excel. OFFSET function is highlighted in blue in below image.



Once we click on OFFSET option as highlighted above, we will get the function argument dialog box as shown in below image:



Syntax of OFFSET Function:

The Syntax of OFFSET function is as below:

=OFFSET(reference, rows, cols, [height], [width])


Arguments of OFFSET Function:

OFFSET function takes below arguments.

reference: We need to provide reference of a single cell or a cell range in this argument.

rows: We need to provide positive of negative numbers in this argument. Positive number in this argument indicates that the original reference will shift towards upside and negative number in this argument indicates that the original reference will shift towards downside.

cols: We need to provide positive of negative numbers in this argument. Positive number in this argument indicates that the original reference will shift towards right side and negative number in this argument indicates that the original reference will shift towards left side.

[height]: This is optional argument. We need to provide positive number in this argument.

[width]: This is optional argument. We need to provide positive number in this argument.


Example of OFFSET Function:

Let’s learn to use OFFSET function with the below example. We have listed names of few employees and their sales figures from last 05 years.


Now, we will consider cell “A2” as an initial reference. This cell is highlighted with yellow color in below image.


Now we want to return the value which is 2 columns towards right and 2 rows below the initial reference (i.e., from yellow highlighted cell). Then we will use OFFSET function as below.


Once we press enter button on our keyboard then we will get the output as below. In this case, cell reference of yellow highlighted cell is shifted 2 rows down and 2 columns right. The blue arrows in below screenshot will help you to understand the movement of original reference and how we get the output value.



While using OFFSET function above, we have provided row number and column numbers directly in the function. But we can also provide reference to these tow arguments as well.

Refer below table, where we have already listed row numbers and column number and with the help of this we will apply OFFSET function.


Now select a cell where we want to apply OFFSET function in this table.


Apply OFFSET function in selected cell as shown in below image.


Once we press enter button on our keyboard then we can see the output of OFFSET function as below.



To get the OFFSET output in remaining cell, we need to just copy and paste this function in remaining cells.


In this way we can use OFFSET function in excel.

Comments

Related Topics..

Fill Up, Down, Right & Left in Excel

Excel Shortcuts Ctrl A to Ctrl Z

Select all cells highlighted with specific color at a time

How to Remove Duplicate Entries from Multiple Columns in Excel

Excel Pivot Table

Exploring Font Colors and Fill Colors in Excel

Insert Multiple Rows in Excel Based On Cell Value

Doughnut Chart in Excel

Conditional Formatting:Highlighting Above Average and Below Average Values

Bold, Italic and Underline Commands from Font Group