+ Reply to Thread
Results 1 to 3 of 3

OFFSET for dynamic range and charts

  1. #1
    Registered User
    Join Date
    06-07-2009
    Location
    Monterrey, Mexico
    MS-Off Ver
    Excel 2003
    Posts
    1

    OFFSET for dynamic range and charts

    Hi!

    I just can't understand the complete sintaxis of the OFFSET function!!

    Im using it so I can create a dynamic chart where the user can select the start month and end month of the year and the graph automatically readjust to those month ranges.

    I've made dynamic ranges before, but all of them are with just ONE CELL AS A REFERENCE like: =OFFSET($A$1,0,0,1,COUNT($A:$A)-1)

    So now I found how to do a chart based on start and end dates (http://blog.contextures.com/archives...arts-in-excel/) , but can't apply it to my workbook, cause I don't get the meaning of the second and third parts of the function, what to they mean with row & cols reference?

    =OFFSET($A$1,=?,=?,1,COUNT($A:$A)-1)

    please can somebody help?? im a forum noob

    I appreciate it in advance!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: OFFSET for dynamic range and charts

    Welcome to the forum.

    Post an example workbook and explain in context?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: OFFSET for dynamic range and charts

    Here is the description of the offset function.

    OFFSET(reference,rows,cols,height,width)

    Reference is the reference from which you want to base the offset. Reference must refer 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).

    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.
    The Rows/Cols argument refers to the start position relative to the reference, anchor, cell. Normally the offsets are zero because the reference cell is the top left cell of the data you are using.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1