+ Reply to Thread
Results 1 to 7 of 7

Join does not work

  1. #1
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Join does not work

    I have the following function
    Please Login or Register  to view this content.
    This works, but I was looking at function JOIN() and came up with

    Please Login or Register  to view this content.
    Obviously the second has a lot of disadvantages, but I just wanted it to work with a single dimensional range A1:A3. Why doesn't it?
    Last edited by rwgrietveld; 01-12-2010 at 08:54 AM.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Join does not work

    You would need to transpose your range such that you end up with a single dimension array

    Please Login or Register  to view this content.
    (were MyRng a horizontal vector rather than vertical vector then you would Transpose twice to get single dimension array)

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,998

    Re: Join does not work

    Because if you assign the value of a range in one go like that, you always get a 2D array.
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Join does not work

    Well,

    That sums it up.

    THX RS and DO.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Join does not work

    And you can't use Join with a Variant.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264

    Re: Join does not work

    Quote Originally Posted by shg View Post
    And you can't use Join with a Variant.
    Shg - don't think that's correct. In the Immediate window the following works without issue:

    Please Login or Register  to view this content.
    Richard
    Richard Schollar
    Microsoft MVP - Excel

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Join does not work

    Ya know, that had always puzzled me. I reckon I never got the syntax correct:
    Please Login or Register  to view this content.
    Thank you, Richard.
    Last edited by shg; 01-12-2010 at 11:56 AM.

+ 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