+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Converting grouped data in multiple rows and columns to single row

  1. #1
    Registered User
    Join Date
    05-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Exclamation Converting grouped data in multiple rows and columns to single row

    Hi All,

    I have a data running over few thousand rows. The data is grouped by first column. I need to convert the multiple rows to one single row. I have attached two excel sheets - one for what I have & one for what I want...any help would be highly appreciated...I need to do this fast!!

    Thanks a lot!
    What I Want.xlsxWhat I Have.xlsx

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Converting grouped data in multiple rows and columns to single row

    Try this workbook

    In Sheet2 B2
    Please Login or Register  to view this content.
    Drag/Fill Down
    In Sheet2 C2
    Please Login or Register  to view this content.
    Drag Down as required, then Across untill all rows return blanks.

    Format the DOB results in the date format you require.
    Attached Files Attached Files
    Last edited by Marcol; 05-23-2012 at 06:10 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    05-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Converting grouped data in multiple rows and columns to single row

    Thanks a loooooooooooot!!!! That worked perfectly!!!

  4. #4
    Registered User
    Join Date
    06-25-2012
    Location
    Dundee, Scotland
    MS-Off Ver
    Excel 2003/2010
    Posts
    1

    Re: Converting grouped data in multiple rows and columns to single row

    Hi Marcol,

    Was looking to use your code above for a similar outcome with more columns and rows in the original dataset. Are you able to point me in the right direction of where the amendments would have to be made in the code? Currently it only outputs three records with the rows combined with only three five columns included.

    Any help would be much appreciated - the wall is winning the arguement with my head!

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Converting grouped data in multiple rows and columns to single row

    Apologies for late response, I've been in deepest Galloway, where moble internet signals are replaced with biting midges ...

    See the attached workbook.

    1/. In A2
    Please Login or Register  to view this content.
    Drag/Fill Down as required.
    This will return your "S No"s, without duplicates and blanks.

    2/. B2 is unchanged

    3/. In C2
    Please Login or Register  to view this content.
    Drag Down as required then Across until all rows in the column return blanks.
    The changes are (Marked in red)
    a/. Increase the number of columns to be read from Sheet1!$C:$E (3 columns) to say, Sheet1!$C:$H (6 columns)
    b/. Change all the values 3 to 6, or the number of columns you need to read.
    Attached Files Attached Files

+ 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