tech on the net
Home About Us Feedback Site Map

Microsoft

Access Excel Word

Database

SQL Oracle / PLSQL SQL Server MySQL MariaDB PostgreSQL

Web Development

HTML CSS Color Picker

Language

C Language

More

ASCII Table Linux UNIX Java Clipart Joke of the Moment

Other Sites

CheckYourMath BigActivities DigMinecraft

Excel Functions

(Scroll to see more)

Share this page:

MS Excel: OFFSET Function (WS)

Learn how to use the Excel OFFSET function with syntax and examples.

Description

The Microsoft Excel OFFSET function returns a reference to a range that is offset a number of rows and columns from another range or cell.

Syntax

The syntax for the Microsoft Excel OFFSET function is:

OFFSET( range, rows, columns, [height], [width] )

Parameters or Arguments

range is the starting range from which the offset will be applied.

rows is the number of rows to apply as the offset to the range. This can be a positive or negative number.

columns is the number of columns to apply as the offset to the range. This can be a positive or negative number.

height is optional. It is the number of rows that you want the returned range to be. If this parameter is omitted, it is assumed to be the height of range.

width is optional. It is the number of columns that you want the returned range to be. If this parameter is omitted, it is assumed to be the width of range.

Applies To

The OFFSET function can be used in the following versions of Microsoft Excel:

  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The OFFSET function can be used in Microsoft Excel as the following type of function:

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel OFFSET function examples and explore how to use the OFFSET function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the spreadsheet above, the following Excel OFFSET examples would return:

=OFFSET(A1, 1, 2, 1, 1) would return the reference to cell C2
(and thus would display $7.23)
=OFFSET(C3, -1, -2, 1, 1) would return the reference to cell A2
(and thus would display 10567)