+ Reply to Thread
Results 1 to 5 of 5

Using TEXTJOIN with INDEX/UNIQUE/SEQUENCE to combine range in batches

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    263

    Using TEXTJOIN with INDEX/UNIQUE/SEQUENCE to combine range in batches

    I am using an Excel formula to combine values in a range in "batches" for use elsewhere using the following formula:

    Please Login or Register  to view this content.
    In example above, looking to combine values in rows 2 to 101 in segments the user designates. Basically, I enter in the formula and copy it down the range until all values are displayed in the TEXTJOINed cells. It works great if the total number of values in the range is evenly divisible by the sequence number , but if it is not, it only gives a portion of of the range and then gives an REF error.

    Any ideas how to correct? See attached sample workbook. Note sample does not include any duplicate values, but in real-world data, duplicate data could exist in the range anywhere.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-30-2018
    Location
    Vlaams Brabant Belgium
    MS-Off Ver
    365
    Posts
    456

    Re: Using TEXTJOIN with INDEX/UNIQUE/SEQUENCE to combine range in batches

    Hi,

    Its because you go out of range of the unique function it only has 51 unique values and so you go out of bounds of the array it makes
    Please be as complete as possible in your asking so it may save use all the time to rework the solution because you didn't give all the requirements. If you have a layout in mind please work it out first so we can adapt our solution to it. Thanks.
    If you have been helped, maybe you could click the *

  3. #3
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    263

    Re: Using TEXTJOIN with INDEX/UNIQUE/SEQUENCE to combine range in batches

    That was just a quick sample, but even if I adjust the formula range to the actual range in the Worksheet ($A$2:$A$51), it still has the problem when dragged down and not having a divisible batch number.

  4. #4
    Valued Forum Contributor
    Join Date
    09-30-2018
    Location
    Vlaams Brabant Belgium
    MS-Off Ver
    365
    Posts
    456

    Re: Using TEXTJOIN with INDEX/UNIQUE/SEQUENCE to combine range in batches

    can you try this formula?


    Please Login or Register  to view this content.
    Last edited by Joske920; 10-23-2021 at 07:21 PM. Reason: changed to us formula , instead of european ;

  5. #5
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    263

    Re: Using TEXTJOIN with INDEX/UNIQUE/SEQUENCE to combine range in batches

    Interesting use of an IF statement. That worked. Thanks.

+ 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. [SOLVED] TextJoin or Match/index??
    By jilp100 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-12-2020, 10:30 AM
  2. How to combine(TEXTJOIN) list items?
    By dvor65465 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-23-2019, 03:24 PM
  3. [SOLVED] textjoin on unique values
    By richx in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2019, 09:47 AM
  4. Arrayfunction TEXTJOIN only receive unique values
    By Nora Kro in forum Excel General
    Replies: 2
    Last Post: 08-21-2018, 11:21 PM
  5. [SOLVED] How can I modify my array TEXTJOIN formula to output only unique values
    By Victorjo in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-06-2018, 01:50 AM
  6. [SOLVED] Count unique number of batches
    By Aland2929 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2017, 02:43 AM
  7. Replies: 11
    Last Post: 11-05-2011, 12:34 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