Difference between revisions of "Manuals/calci/OFFSET"
Jump to navigation
Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''OFFSET'''(Reference, Rows, Columns, Height, Width) where, '''Reference''' - represents the referencefrom b...") |
|||
Line 1: | Line 1: | ||
− | + | =OFFSET(Reference, Rows, Columns, Height, Width)= | |
− | |||
− | |||
where, | where, | ||
+ | *<math>Reference</math> is a reference cell or base cell of the offset, | ||
+ | *<math>Rows</math> represents the number of cells up or down the reference cell, | ||
+ | *<math>Columns</math> represents the number of cells left or right to the reference cell, | ||
+ | *<math>Height</math> is an optional value that represents the number of rows to be displayed as the output, and | ||
+ | *<math>Width</math> is an optional value that represents the number of columns to be displayed as the output. | ||
− | + | OFFSET() displays a specified number of rows and columns from the reference cell or the base cell. | |
− | + | == Description == | |
− | + | OFFSET(Reference, Rows, Columns, Height, Width) | |
− | + | *OFFSET function is used display the value of cell that is specified number or rows or columns away from the reference. | |
+ | *Offset reference should be within the spreadsheet, else Calci displays an error message. | ||
+ | *<math>Rows</math> can be positive or negative. If <math>Rows</math> is positive, it means move down from the reference. If <math>Rows</math> is negative, it means move up from the reference. | ||
+ | *<math>Columns</math> can be positive or negative. If <math>Columns</math> is positive, it means move right from the reference. If <math>Columns</math> is negative, it means move left from the reference. | ||
+ | *If <math>Height</math> or <math>Width</math> is omitted, Calci assumes it to be the same Height and Width as the reference. | ||
+ | *<math>Height</math> and <math>Width</math> should be > 1, else Calci displays #N/A error message. | ||
− | + | == Examples == | |
− | + | Consider the following examples that demonstrate the use of OFFSET function: | |
− | |||
− | |||
− | + | <div id="2SpaceContent" class="zcontent" align="left"> | |
− | + | {| id="TABLE3" class="SpreadSheet blue" | |
− | - | + | |- class="even" |
− | + | | class="sshl_f" |'''Fruit''' | |
+ | | class="sshl_f" |'''Color''' | ||
+ | | class="sshl_f" |'''Quantity''' | ||
− | + | |- class="odd" | |
+ | | class="sshl_f" |Orange | ||
+ | | class="sshl_f" |Orange | ||
+ | | class="sshl_f" |20 | ||
− | + | |- class="even" | |
− | - | + | | class="sshl_f" |Banana |
− | + | | class="sshl_f" |Yellow | |
+ | | class="sshl_f" |30 | ||
− | + | |- class="odd" | |
+ | | class="sshl_f" |Apple | ||
+ | | class="sshl_f" |Red | ||
+ | | class="sshl_f" |18 | ||
− | + | |- class="even" | |
− | + | | class="sshl_f" |Strawberry | |
− | + | | class="sshl_f" |Red | |
− | + | | class="sshl_f" |25 | |
− | + | |} | |
− | + | =OFFSET(A2,2,2,1,1) : Returns the value in cell that is located two rows down (2) and one row to the right (2) from A2. Displays '''18''' as the output. | |
+ | =OFFSET(B3,1,-1) : Returns the value in cell that is located one row down (1) and one row to the left (-1) from B3. Displays '''Apple''' as the output. | ||
− | + | == See Also == | |
− | + | *[[Manuals/calci/ADDRESS | ADDRESS]] | |
− | + | *[[Manuals/calci/INDIRECT | INDIRECT]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == References == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | *[http://en.wikipedia.org/wiki/Offset_(computer_science) Offset] | |
− |
Revision as of 06:10, 10 February 2014
OFFSET(Reference, Rows, Columns, Height, Width)
where,
- is a reference cell or base cell of the offset,
- represents the number of cells up or down the reference cell,
- represents the number of cells left or right to the reference cell,
- is an optional value that represents the number of rows to be displayed as the output, and
- is an optional value that represents the number of columns to be displayed as the output.
OFFSET() displays a specified number of rows and columns from the reference cell or the base cell.
Description
OFFSET(Reference, Rows, Columns, Height, Width)
- OFFSET function is used display the value of cell that is specified number or rows or columns away from the reference.
- Offset reference should be within the spreadsheet, else Calci displays an error message.
- can be positive or negative. If is positive, it means move down from the reference. If is negative, it means move up from the reference.
- can be positive or negative. If is positive, it means move right from the reference. If is negative, it means move left from the reference.
- If or is omitted, Calci assumes it to be the same Height and Width as the reference.
- and should be > 1, else Calci displays #N/A error message.
Examples
Consider the following examples that demonstrate the use of OFFSET function:
Fruit | Color | Quantity |
Orange | Orange | 20 |
Banana | Yellow | 30 |
Apple | Red | 18 |
Strawberry | Red | 25 |
=OFFSET(A2,2,2,1,1) : Returns the value in cell that is located two rows down (2) and one row to the right (2) from A2. Displays 18 as the output. =OFFSET(B3,1,-1) : Returns the value in cell that is located one row down (1) and one row to the left (-1) from B3. Displays Apple as the output.