PDA

View Full Version : =OFFSET(EntrySht!$B$9,1,0,COUNTA(EntrySht!$B:$B)-1,1) working functionality require.



aligahk06
04-25-2010, 12:19 AM
Dear All,

Could anybody elaborate the working functionality of below function.

:cool: :cool:

Rgds,
Aligahk06

mdmackillop
04-25-2010, 04:19 AM
From Excel Help

OFFSET

See Also (http://javascript<b></b>:hhobj_1.Click())
Returns a reference to a range that is a specified number of rows and columns from a cell or range of cells. The reference that is returned can be a single cell or a range of cells. You can specify the number of rows and the number of columns to be returned.
Syntax
OFFSET(reference,rows,cols,height,width)
Reference is the reference from which you want to base the offset. Reference must be a reference to a cell or range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value.
Rows is the number of rows, up or down, that you want the upper-left cell to refer to. Using 5 as the rows argument specifies that the upper-left cell in the reference is five rows below reference. Rows can be positive (which means below the starting reference) or negative (which means above the starting reference).
Cols is the number of columns, to the left or right, that you want the upper-left cell of the result to refer to. Using 5 as the cols argument specifies that the upper-left cell in the reference is five columns to the right of reference. Cols can be positive (which means to the right of the starting reference) or negative (which means to the left of the starting reference).
If rows and cols offset reference over the edge of the worksheet, OFFSET returns the #REF! error value.
Height is the height, in number of rows, that you want the returned reference to be. Height must be a positive number.
Width is the width, in number of columns, that you want the returned reference to be. Width must be a positive number.
If height or width is omitted, it is assumed to be the same height or width as reference.
Remarks
OFFSET doesn't actually move any cells or change the selection; it just returns a reference. OFFSET can be used with any function expecting a reference argument. For example, the formula SUM(OFFSET(C2,1,2,3,1)) calculates the total value of a 3-row by 1-column range that is 1 row below and 2 columns to the right of cell C2.
Examples
OFFSET(C3,2,3,1,1) equals F5. If you enter this formula on a worksheet, Microsoft Excel displays the value contained in cell F5.
OFFSET(C3:E5,-1,0,3,3) equals C2:E4
OFFSET(C3:E5,0,-3,3,3) equals #REF!

Bob Phillips
04-25-2010, 04:56 AM
It defines a dynamic range starting at B10, depending upon the number of values in column B.