+ Reply to Thread
Results 1 to 3 of 3

Function/Sub to put in neighboring cells array output

  1. #1
    Registered User
    Join Date
    07-23-2015
    Location
    Denmark
    MS-Off Ver
    2013
    Posts
    8

    Function/Sub to put in neighboring cells array output

    Dear all,

    I have a function that returns a 7x2 array.
    I would like to have this array fully displayed in the neighboring cells.

    I'm aware of the combo Formula+SelectRange+F2+Ctrl-Shift-Enter, but afterwards this doesn't allow me to modify seperately each cell ('You can't change part of an array').
    Also, it's really tedious to 'explore' the array with the INDEX function.

    I'm aware of the rule, that a UDF cannot modify cells outside the calling cell. So the solution could be calling a Sub routine.
    Something like that:

    Please Login or Register  to view this content.
    With something like that in the function:
    Please Login or Register  to view this content.
    But something is bogus somewhere, and I cannot figure why.

    Thanks for your help!

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Function/Sub to put in neighboring cells array output

    Hi,

    Getting the function to call a subroutine will not work- it does not bypass the limitation on what a UDF is allowed to do. It is possible to workaround these limitations using timers or other events in combination with static variables but honestly it is easier to simply use INDEX if you don't want to array enter the formula.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    07-23-2015
    Location
    Denmark
    MS-Off Ver
    2013
    Posts
    8

    Re: Function/Sub to put in neighboring cells array output

    Hi,

    Thanks for your reply.
    It's what I thought. Then, a simple Macro should do the trick to quickly 'INDEX' everything.

    Cheers

+ 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. Output Boolean Array from User-Defined Function
    By jben86 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2013, 04:25 PM
  2. Array function only displays first value of array as output
    By q-tip in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2013, 12:51 PM
  3. Routine to compare two range of cells and output an array
    By dmarzo1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2013, 08:26 AM
  4. [SOLVED] Array output for a LOOKUP function...
    By tipti in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-19-2012, 12:36 AM
  5. How do I declare a function whose output is an array?
    By Schizoid Man in forum Excel General
    Replies: 1
    Last Post: 05-24-2006, 05:30 PM
  6. [SOLVED] How to output an array in Excel with a user-defined function?
    By Andy Chan in forum Excel General
    Replies: 2
    Last Post: 12-30-2005, 04:10 PM
  7. Array as output of function
    By maca in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2005, 08:05 AM

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