+ Reply to Thread
Results 1 to 3 of 3

Array formula to Concatenate skipping blank cells and duplication

  1. #1
    Registered User
    Join Date
    07-28-2011
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    14

    Array formula to Concatenate skipping blank cells and duplication

    Hi All

    I found an array formula using Textjoin function that will concatenate data in a set range of cells and skip over blanks. The below formula works perfectly horizontally.

    {=TEXTJOIN(", ",TRUE,INDEX(4:4,,N(IF({1},MODE.MULT(IF((IFERROR(MATCH(C4:M4,C4:M4,0)=COLUMN(C4:M4)-MIN(COLUMN(C4:M4))+1,0))*(C4:M4<>""),COLUMN(C4:M4)*{1;1}))))))}

    However, when trying to enhance the formula to work vertically i cannot get it to work. (I have ensured that the array ({}) brackets are applied in my attempts)

    I have attached a working file of what i am trying to achieve and the working horizontal formula and workings

    Can someone please help

    Regards

    VB
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Array formula to Concatenate skipping blank cells and duplication

    One option

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

    suffice to say the same approach could be applied for horizontal, by amending range references and modifying ROW references to COLUMN
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-28-2011
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    14

    Re: Array formula to Concatenate skipping blank cells and duplication

    Thanks very much Xlent! Works perfectly!

+ 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] Skipping cells that have formula returning blank in a plot
    By kryssie.e in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-23-2019, 02:50 AM
  2. Creating an array while skipping random blank columns
    By pushkinpassey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-10-2014, 04:02 PM
  3. Replies: 1
    Last Post: 05-21-2014, 04:30 PM
  4. Replies: 0
    Last Post: 03-05-2013, 09:22 AM
  5. Skipping Blank cells in formula(searched but cant figure how to apply)
    By scotinexcile in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-21-2012, 09:14 PM
  6. create a dynamic array skipping #N/A and blank rows?
    By William DeLeo in forum Excel General
    Replies: 5
    Last Post: 11-10-2010, 02:55 PM
  7. Skipping blank cells in simple math formula
    By jimtmcdaniels in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2006, 01:40 AM

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