+ Reply to Thread
Results 1 to 5 of 5

Unable to set second argument of an array as a function

  1. #1
    Registered User
    Join Date
    08-20-2022
    Location
    Newcastle, Australia
    MS-Off Ver
    18.1903.1152.0
    Posts
    2

    Unable to set second argument of an array as a function

    Hi all,

    I am having issues with finding a way to customise an array on Excel.

    I need to define the array from A85:A95. However, the A95 cell has to be retrieved from the following function:

    "=SUBSTITUTE(ADDRESS(85,1,4),"85","")&(ROW(A85)+10)"

    This formula currently returning "A95".

    If I type into any cell "=A85:A95" I am able to see the results in a 10-row single-column list and I am trying to replace "A95" in the array by "=SUBSTITUTE(ADDRESS(85,1,4),"85","")&(ROW(A85)+10)" using:

    "=A85: (SUBSTITUTE(ADDRESS(85,1,4),"85","")&(ROW(A85)+10))"

    In this case, Excel is unable to read the array and I do not know why. Can anyone please help me out?


    Note:

    Most of the values here are representative only as this is a very simplified version of the original formulas.

    Eventually, I want to refer to this array from a different worksheet if that is possible.

    Thanks.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Unable to set second argument of an array as a function

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

  3. #3
    Registered User
    Join Date
    08-20-2022
    Location
    Newcastle, Australia
    MS-Off Ver
    18.1903.1152.0
    Posts
    2

    Re: Unable to set second argument of an array as a function

    Yes, that worked well.

    What if this range of cells comes from a different worksheet?

    I tried =Sheet1!A85:INDEX(A:A,ROW(COA!A85)+10) but it did not work.

    Any ideas?

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Unable to set second argument of an array as a function

    It would need to be
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Unable to set second argument of an array as a function

    Hello Tulio RO. Welcome to the forum.

    While you are at it please correct your user profile. 18.1903.1152.0 is not a version number.

    To find your version number click File >> More >> Account and see the version under the heading in the right hand column heading Product information

    Not all version numbers have the same abilities and knowing what version(s) you are working with helps us help you.

    Thanks.
    Dave

+ 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. Replies: 18
    Last Post: 05-12-2014, 05:56 PM
  2. [SOLVED] User defined function takes array as argument but won't work with range
    By BuffaloFan32 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-20-2013, 12:50 PM
  3. [SOLVED] Passing a 2d array as an argument from a function
    By drstrings in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2013, 01:05 PM
  4. [SOLVED] Table Array Argument in VLOOKUP Function
    By Kvramana in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2013, 02:45 AM
  5. SEARCH function returns array if first argument is array--Huh?
    By 6StringJazzer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-10-2012, 07:23 PM
  6. [SOLVED] ByRef argument type mismatch / Passing array as a function argument
    By pzling in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-29-2012, 06:23 PM
  7. [SOLVED] Function (array argument, range argument, string argument) vba
    By Witek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2005, 11:07 AM
  8. Passing an array as argument for custom Function
    By in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2005, 01:06 PM

Tags for this Thread

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