+ Reply to Thread
Results 1 to 6 of 6

Formatting - Combine data multiple columns to one column

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    texas usa
    MS-Off Ver
    Excel 2010
    Posts
    70

    Formatting - Combine data multiple columns to one column

    I have data in columns in excel that I want to combine into a single column with the data aligned as shown in the attachment
    Thanks Carroll
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Formatting - Combine data multiple columns to one column

    There may be a VBA solution, but why do you wanna do this? if is only for display option you could get rid of the gridlines(from Ribbon - View - Untick Gridlines) and if is display+using it in a formula, use a simple concat without spaces and hide hide the helper column
    Click the * to say thanks.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,824

    Re: Formatting - Combine data multiple columns to one column

    You don't really need to use the CONCATENATE function - you can do this to get fixed length records:

    =A6&REPT(" ",20-LEN(A6))&B6&REPT(" ",64-LEN(B6))&C6&REPT(" ",7-LEN(C6))&D6&REPT(" ",45-LEN(D6))&E6

    But to see the effect properly, you should use a non-proportional font, such as Courier New.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    09-10-2012
    Location
    texas usa
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Formatting - Combine data multiple columns to one column

    Thanks for the reply Paul
    This doesn't answer my need - see Pete_uk answer
    Carroll

  5. #5
    Registered User
    Join Date
    09-10-2012
    Location
    texas usa
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Formatting - Combine data multiple columns to one column

    Thanks Pete
    This works great. I found it was necessary to use a non-proportional like the Courier New font
    you suggested.
    Thanks for your quick response
    Carroll

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,824

    Re: Formatting - Combine data multiple columns to one column

    You're welcome, Carroll - thanks for feeding back.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

    EDIT: You can, of course, change the numbers within the REPT functions if you want narrower or wider columns. Also, the entry in B12 does not have a leading space, whereas all other items in column B do, so there is a slight misalignment there if you do not add that space.

    Pete
    Last edited by Pete_UK; 10-10-2019 at 01:43 PM.

+ 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: 6
    Last Post: 10-02-2019, 01:02 PM
  2. [SOLVED] Combine multiple First/Last Name columns into one column, data can contain blank rows
    By Tunesmith in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-04-2016, 09:42 AM
  3. Replies: 6
    Last Post: 11-25-2015, 01:01 PM
  4. Combine multiple columns of data into one column
    By PMBottas in forum Excel General
    Replies: 8
    Last Post: 08-12-2014, 11:10 PM
  5. Replies: 3
    Last Post: 09-03-2013, 11:53 AM
  6. Combine multiple columns of data into one column???
    By seedman76 in forum Excel General
    Replies: 4
    Last Post: 03-07-2013, 02:20 AM
  7. Replies: 4
    Last Post: 01-12-2012, 12:30 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