+ Reply to Thread
Results 1 to 4 of 4

how to import a 1-demensional array into a function

  1. #1
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    how to import a 1-demensional array into a function

    I have a function that takes in inputs like this:

    Please Login or Register  to view this content.
    is there a way to input a one-dimensional array into it? If so, how do I refer to it in the setup above?

    Thanks
    Last edited by luv2glyd; 11-14-2016 at 05:32 PM.
    You either quit or become really good at it. There are no other choices.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: how to import a 1-demensional array into a function

    As a text string?

    "1, 12,23,abc, def"

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 11-12-2016 at 06:00 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: how to import a 1-demensional array into a function

    What does your function do?

    As it is currently written, does it take single value arguments and return the correct value?

    Are you asking how to modify it so that one could make one (or more) of the arguments an array and it would return an array of values? So that it would work properly as an array formula in a worksheet?

    What is the rest of the code for the UDF?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: how to import a 1-demensional array into a function

    Thanks, guys. I figured it out - looks like it works if I just refer to it as a variant.

    Mikerickson: in a separate task, I do need another function to return an array of values. Any suggestions? Here's that post:

    http://www.excelforum.com/showthread...42#post4522542
    Last edited by luv2glyd; 11-14-2016 at 05:50 PM.

+ 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. Array Function: Using an array function to calculate loan outstanding
    By akshaythakker in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-30-2016, 05:33 PM
  2. Replies: 3
    Last Post: 04-02-2016, 08:16 PM
  3. Using the ReDim array function in a multidimensional array in excel
    By Doruli in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-05-2012, 01:43 PM
  4. Lookup three demensional values
    By faucetguru in forum Excel General
    Replies: 2
    Last Post: 10-03-2011, 03:19 AM
  5. Web import into array instead of table - possible?
    By Peaceful4getFul in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2007, 02:45 PM
  6. [SOLVED] Best way to import fixed-width delimited text files into an array?
    By KR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2005, 11:06 AM
  7. [SOLVED] Import text file FieldInfo:=Array
    By Greg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2005, 11:06 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