+ Reply to Thread
Results 1 to 5 of 5

Merging multiple rows and column data for each unique ID into single row

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    9

    Merging multiple rows and column data for each unique ID into single row

    Hello All,

    I need help on solving one requirement where the data on multiple rows and columns has to be transposed to single horizontal row for each unique Id.
    To be clear basically I Have the different cost data for same Id on multiple rows(Minimun 0 to max of 6 rows for a particular ID) with cost and description values in 2 columns and I want all the costs and description for a particular ID to be moved onto one single row as

    ID1,Cost1,Desc1,Cost2,Desc2,Cost3,Desc3,Cost4,Desc4
    ID2,Cost1,Desc1,Cost2,Desc2
    ID3,Cost1,Desc1

    etc.

    I have attached the sheet with the actual data in Sheet1 and the desired data set in Sheet2.

    Can anyone help me on this please.
    Thanks in Advance.


    Regards
    SK
    Attached Files Attached Files
    Last edited by skilaru; 02-22-2012 at 12:03 PM.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Merging multiple rows and column data for each unique ID into single row

    see attached file
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Merging multiple rows and column data for each unique ID into single row

    hi skilaru, please check attachment, press "Run"
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Merging multiple rows and column data for each unique ID into single row

    Thank you very Much Nilem, This solved my issue.

  5. #5
    Registered User
    Join Date
    02-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Merging multiple rows and column data for each unique ID into single row

    Thanks a Lot watersev,Your code provides a solution too.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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