सीधे मुख्य सामग्री पर जाएं

OFFSET Function

MS Excel: How to use the OFFSET Function (WS)

This Excel tutorial explains 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.
The OFFSET function is a built-in function in Excel that is categorized as a Lookup/Reference Function. It can be used as a worksheet function (WS) in Excel. As a worksheet function, the OFFSET function can be entered as part of a formula in a cell of a worksheet.

Syntax

The syntax for the OFFSET function in Microsoft Excel is:
OFFSET( range, rows, columns, [height], [width] )

Parameters or Arguments

range
The starting range from which the offset will be applied.
rows
The number of rows to apply as the offset to the range. This can be a positive or negative number.
columns
The number of columns to apply as the offset to the range. This can be a positive or negative number.
height
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
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.

Returns

The OFFSET function returns a reference.

Applies To

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

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 Excel spreadsheet above, the following OFFSET examples would return:
=OFFSET(A1, 1, 2, 1, 1)
Result: reference to cell C2   (and thus would display $7.23)

=OFFSET(C3, -1, -2, 1, 1)
Result: reference to cell A2   (and thus would display 10567)

टिप्पणियाँ

इस ब्लॉग से लोकप्रिय पोस्ट

VLOOKUP Function

MS Excel:  How to use the VLOOKUP Function (WS) This Excel tutorial explains how to use the  VLOOKUP function  with syntax and examples. Description The VLOOKUP function performs a vertical lookup by searching for a value in the first column of a  table  and returning the value in the same row in the  index_number position. The VLOOKUP function is a built-in function in Excel that is categorized as a  Lookup/Reference Function . It can be used as a worksheet function (WS) in Excel. As a worksheet function, the VLOOKUP function can be entered as part of a formula in a cell of a worksheet. The VLOOKUP function is actually quite easy to use once you understand how it works! If you want to follow along with this tutorial, download the example spreadsheet. Download Example Syntax The syntax for the VLOOKUP function in Microsoft Excel is: VLOOKUP( value, table, index_number, [approximate_match] ) Parameters or Arguments value T...

TRANSPOSE Function

MS Excel:  How to use the TRANSPOSE Function (WS) This Excel tutorial explains how to use the Excel  TRANSPOSE function  with syntax and examples. Description The Microsoft Excel TRANSPOSE function returns a transposed range of cells. For example, a horizontal range of cells is returned if a vertical range is entered as a parameter. Or a vertical range of cells is returned if a horizontal range of cells is entered as a parameter. The TRANSPOSE function is a built-in function in Excel that is categorized as a  Lookup/Reference Function . It can be used as a worksheet function (WS) in Excel. As a worksheet function, the TRANSPOSE function can be entered as part of a formula in a cell of a worksheet. Syntax The syntax for the TRANSPOSE function in Microsoft Excel is: TRANSPOSE( range ) Parameters or Arguments range The range of cells that you want to transpose. Note The range value in the TRANSPOSE function must be entered as an array. To ...

How to use Vlookup

You can trap #N/A errors and display a friendly message In exact match mode, VLOOKUP will display the #N/A error when no match is found. In one way, this is useful because it tell you definitively that there is no match in the lookup table. However, #N/A errors aren't very fun to look at, so there are several ways you can trap this error and display something else instead. Once you start using VLOOKUP, you're bound to run into the #N/A error, which occurs when VLOOKUP isn't able to find a match. This is a useful error, because VLOOKUP is telling you clearly that it can't find the lookup value. In this example, "Latte" doesn't exist as a beverage in the table, so VLOOKUP throws an #N/A error