+ Reply to Thread
Results 1 to 5 of 5

TEXTJOIN if empty "" if not empty CONCATENATE the first cell in row with this cell

  1. #1
    Registered User
    Join Date
    05-25-2021
    Location
    Zurich, Switzerland
    MS-Off Ver
    Office 365
    Posts
    3

    Question TEXTJOIN if empty "" if not empty CONCATENATE the first cell in row with this cell

    Hello

    I am having trouble to come up with the right formula for the following problem.

    I have to TEXTJOIN the content of all cells in a row.
    • If the cells are empty then I want nothing to happen,
    • if the cell isn't empty then need to concatenate the first cell in every row (column title) with the value in the cells, seperated by a ": ". Then separate with a "," and move on to the next cell

    This is what i'm trying to get:
    Screenshot 2021-05-25 at 19.56.29.png

    The obvious solution would be to use

    Please Login or Register  to view this content.
    In my test file (see screenshot above) I have first used the following CONCATENATE formula and it gives me the correct solution:

    Please Login or Register  to view this content.
    The problem is that there are way too many columns (about 200) and it is not possible to use an array with CONCATENATE

    So I'm forced to use TEXTJOIN istead!

    I've finally come up with this formula, but sadly it does not work.

    Please Login or Register  to view this content.
    It just end up with a #NAME?

    Does someone have a solution for this? It would be greatly appreciated, because it is super important that I manage to get this done somehow.

    Best,
    M
    Last edited by Mattec; 05-25-2021 at 02:25 PM. Reason: Solved

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,735

    Re: TEXTJOIN if empty "" if not empty CONCATENATE the first cell in row with this cell

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

  3. #3
    Registered User
    Join Date
    05-25-2021
    Location
    Zurich, Switzerland
    MS-Off Ver
    Office 365
    Posts
    3

    Re: TEXTJOIN if empty "" if not empty CONCATENATE the first cell in row with this cell

    Correction: it worked perfectly
    Last edited by Mattec; 05-25-2021 at 02:24 PM.

  4. #4
    Registered User
    Join Date
    05-25-2021
    Location
    Zurich, Switzerland
    MS-Off Ver
    Office 365
    Posts
    3

    Re: TEXTJOIN if empty "" if not empty CONCATENATE the first cell in row with this cell

    Thank you very much!

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,735

    Re: TEXTJOIN if empty "" if not empty CONCATENATE the first cell in row with this cell

    You're welcome & thanks for the feedback.

+ 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. Replies: 7
    Last Post: 01-11-2019, 07:58 PM
  2. Find last "Not Empty" cell in a column - syntax not working (call for more help)
    By fairweather in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2014, 05:19 PM
  3. Replies: 6
    Last Post: 04-14-2014, 04:30 PM
  4. Replies: 1
    Last Post: 03-27-2014, 08:57 PM
  5. Replies: 2
    Last Post: 02-28-2014, 10:15 PM
  6. Replies: 3
    Last Post: 01-31-2008, 12:49 PM
  7. Replies: 1
    Last Post: 04-07-2006, 11:55 PM

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