+ Reply to Thread
Results 1 to 6 of 6

#Value error when using the offset function

  1. #1
    Registered User
    Join Date
    04-19-2012
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    26

    #Value error when using the offset function

    I'm trying to get the offset function to display a 2 by 2 matrix from a table of numbers starting at A1 and moving 4 rows down and 6 columns across from the A1 reference point.

    I've used the formula = OFFSET(A1,4,6,2,2)

    But I get a #Value error.

    What am I doing wrong?

    The offset function.xlsm

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: #Value error when using the offset function

    What are you looking to do with it once you find it?

    Are you looking to sum it?

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The OFFSET function used in a worksheet cannot return the results of an array so you have to use a wrapper function and in this case, SUM.

    You can also use the OFFSET function in a named range which would identify the range, but again, what is your goal?
    Last edited by jeffreybrown; 07-05-2012 at 12:14 AM.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    04-19-2012
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: #Value error when using the offset function

    Hi Jeff,

    I just want to return the matrix table unaltered.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: #Value error when using the offset function

    Try selecting the four destination cells. Enter the formula and confirm with Control+shift+enter to commit the array(?)
    Ben Van Johnson

  5. #5
    Registered User
    Join Date
    04-19-2012
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: #Value error when using the offset function

    Thanks worked great.

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: #Value error when using the offset function

    Please remember to mark your thread as SOLVED. Click Forum Rules @ top of page to see instructions in rule #9. Thanks.

+ 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