+ Reply to Thread
Results 1 to 6 of 6

Why does the OFFSET function fail to return an array?

  1. #1
    Forum Contributor
    Join Date
    09-18-2015
    Location
    Republic of Korea
    MS-Off Ver
    2010
    Posts
    314

    Why does the OFFSET function fail to return an array?

    Snap1.jpg
    Snap3.jpg
    Snap5.jpg
    Snap6.jpg

    Why can not I return an array despite pressing F9?

    Why do the two formulas have different results even though they are the same value?
    Attached Files Attached Files
    Last edited by chief_abound; 09-20-2017 at 10:04 AM.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Why does the OFFSET function fail to return an array?

    It's the ROW function that can't return an array.

    If we translate your formula, we get
    =OFFSET(A2,INT((ROW(A1)-1)/50),50)
    ROW(A1) = 1
    =OFFSET(A2,INT((1-1)/50),50)
    =OFFSET(A2,INT(0/50),50)
    =OFFSET(A2,INT(0),50)
    =OFFSET(A2,0,50)
    There is no array to return.


    Also, the 2nd 50 in there I assume was meant to be the Height argument, is actually in the Columns argument offset by 50 columns.

    try
    =OFFSET(A2,INT((ROWS(A$1:A1)-1)/50),,50)
    Last edited by Jonmo1; 09-20-2017 at 10:16 AM.

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Why does the OFFSET function fail to return an array?

    think if you need a height you need a width
    =OFFSET(A2,INT((ROWS(A$1:A1)-1)/50),,50,1)

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Why does the OFFSET function fail to return an array?

    The Height and Width arguments are optional.
    If omitted, they assume the same height/width as the original range referenced.

    Although because of the order of arguments, you would be unable to specify a width without also the height. But you can specify the height without the width.

  5. #5
    Forum Contributor
    Join Date
    09-18-2015
    Location
    Republic of Korea
    MS-Off Ver
    2010
    Posts
    314

    Re: Why does the OFFSET function fail to return an array?

    Hi! Jonmo1

    Thank you so much!

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Why does the OFFSET function fail to return an array?

    You're welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to return multiple column array without using Offset function?
    By agarwaldvk in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-27-2008, 04:20 AM
  2. [SOLVED] Links to 2nd closed worksheet fail when using offset function ??
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 10:05 AM
  3. [SOLVED] Links to 2nd closed worksheet fail when using offset function ??
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  4. Links to 2nd closed worksheet fail when using offset function ??
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  5. [SOLVED] Links to 2nd closed worksheet fail when using offset function ??
    By Jordan795 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. [SOLVED] Links to 2nd closed worksheet fail when using offset function ??
    By Jordan795 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. Links to 2nd closed worksheet fail when using offset function ??
    By Jordan795 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. [SOLVED] Links to 2nd closed worksheet fail when using offset function ??
    By Jordan795 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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