+ Reply to Thread
Results 1 to 6 of 6

Suppose to return an array, but doesn't :(

  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    Ohia
    MS-Off Ver
    Excel 2011 and 2010
    Posts
    3

    Suppose to return an array, but doesn't :(

    Hello,
    I'm trying to borrow someone else's VBA, and it isnt clicking for me. When using False for the second argument, the function is suppose to return an array. Im not getting an array though. The function is only return the first unique value. I need this for work, so Im really stressing over it. Please help.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Suppose to return an array, but doesn't :(

    How are you using the function?

    When I try it with a simple array it is return an array of unique values.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    04-04-2013
    Location
    Ohia
    MS-Off Ver
    Excel 2011 and 2010
    Posts
    3

    Re: Suppose to return an array, but doesn't :(

    Oh, man. I must be making a silly mistake?
    I inserted the following function into a cell...

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-04-2013
    Location
    Ohia
    MS-Off Ver
    Excel 2011 and 2010
    Posts
    3

    Re: Suppose to return an array, but doesn't :(

    Oh, man. I must be making a silly mistake?
    I inserted the following function into a cell...

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Suppose to return an array, but doesn't :(

    I've tested it on my computer and it works ok using the following calling sub

    Please Login or Register  to view this content.
    so the function is basically OK.

    Make sure that when you call the function you are inputting an array of data
    Elegant Simplicity............. Not Always

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Suppose to return an array, but doesn't :(

    I'm not sure the formula is meant to be used on a worksheet, or if it is not used in that way.

    Try this, put the formula in G1, changing the reference E5:E11 to an absolute reference, which you can do with F4.

    Copy the formula across a few columns, then select all the cells you've copied the formula to, goto the formula bar and then press CTRL+SHIFT+ENTER.

    You should now see the unique values listed across the columns the formulas are in, and probably an #N/A or two.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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