+ Reply to Thread
Results 1 to 3 of 3

transform 5 vertical cells into 1 cell with 5 lines

  1. #1
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    transform 5 vertical cells into 1 cell with 5 lines

    hey guys,

    per the title, is there a way to do this through the interface? I can do it with VBA code but I think I would have to think too much about it. I tried to use SPLIT() with a delimiter, but that was only good for one cell. attached is a sample problem row I have:

    I would even be will to accept a solution where I could get the 5 vertical cell values into 1 cell, separated by the semicolon ";" delimiter.

    thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: transform 5 vertical cells into 1 cell with 5 lines

    I am confused. Why not use Textjoin? works perfectly for your example.

    Formula for C1 =TEXTJOIN(,TRUE,B1:B5)

    If you have multiple rows then use the indirect function to build your address for textjoin.

    Formula for C1 then fill down. =TEXTJOIN(,TRUE,INDIRECT("B" & (ROW()-1)*5+1 &":B" & ROW()*5))

    Finally Formula for C1 then fill down: =TEXTJOIN(CHAR(10),TRUE,INDIRECT("B" & (ROW()-1)*5+1 &":B" & ROW()*5)). Format Column C to Wrap Text.
    Last edited by mehmetcik; 02-28-2020 at 01:15 AM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: transform 5 vertical cells into 1 cell with 5 lines

    I'm not sure why you're confused, Mehmetcik! I posted this because I'm no expert in excel. I'm a code writer and I know that excel has much more to offer than that. and your solution works perfectly. thanks so much sir! =)

+ 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: 5
    Last Post: 04-04-2019, 02:39 PM
  2. Replies: 8
    Last Post: 10-11-2018, 01:13 PM
  3. Replies: 0
    Last Post: 06-22-2017, 09:24 PM
  4. Help on Ideas of how to transform data from a vertical to more horizontal layout
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-29-2016, 03:02 AM
  5. [SOLVED] Four cells transform to one cell
    By ALEZI in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2013, 05:32 AM
  6. Can you dump multiple lines of vertical data into one cell?
    By juniperjacobs in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-04-2010, 01:59 PM
  7. Replies: 3
    Last Post: 03-03-2006, 12:20 AM

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