+ Reply to Thread
Results 1 to 6 of 6

Combine multiple rows into one based on same cell value

  1. #1
    Registered User
    Join Date
    09-27-2018
    Location
    Phoenix, AZ
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    15

    Post Combine multiple rows into one based on same cell value

    I have many rows that I need to combine into one row. They have a same value in common.

    It looks something like this.

    271001 0033 02 Atty Floyd Fortuin TTE
    271001 0049 02 Cleared Mark Itkowitz
    271001 0053 03 RM CB Develop Sales Inc
    271001 0056 03 DL MMRC LLC


    I need it to look like this.

    271001 0033 02 Atty Floyd Fortuin TTE 271001 0049 02 Cleared Mark Itkowitz 271001 053 03 RM CB Develop Sales Inc 271001 0056 03 DL MMRC LLC

    I need the values to be transposed to the next available cell on the first row.

    Thank you,

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Combine multiple rows into one based on same cell value

    Try this
    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Registered User
    Join Date
    09-27-2018
    Location
    Phoenix, AZ
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    15

    Re: Combine multiple rows into one based on same cell value

    It works. However, it only copies 2 rows now all 4 of them...

  4. #4
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Combine multiple rows into one based on same cell value

    Let's see what happens when we eliminate any leading or trailing spaces in column A entries.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-27-2018
    Location
    Phoenix, AZ
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    15

    Re: Combine multiple rows into one based on same cell value

    It is working!

    I appreciate it so much!

  6. #6
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Combine multiple rows into one based on same cell value

    Quote Originally Posted by CQ1288 View Post
    It is working!

    I appreciate it so much!
    Glad to help. You should make sure your cell entries in column A do not have leading oir trailing spaces which are not visible to the eye but are characters that VBA and Excel can read. Those extra characters prevent matching with other cells which do not have the space characters entered.
    Regards, JLG

+ 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. combine multiple rows into one row based on unique id
    By GizmoChris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2019, 12:54 PM
  2. combine texts from multiple rows based on condition
    By saj123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-25-2018, 02:43 PM
  3. [SOLVED] Combine Multiple Rows into single cell
    By 1brandeja5 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-29-2016, 06:02 PM
  4. Combine multiple rows in a specific column based on matching criteria? VBA solution?
    By hopegriffin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2015, 07:11 PM
  5. [SOLVED] Combine rows of data based on multiple criteria?
    By hopegriffin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2015, 12:54 PM
  6. Replies: 1
    Last Post: 09-13-2011, 04:33 PM
  7. Replies: 2
    Last Post: 06-09-2010, 09:24 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