+ Reply to Thread
Results 1 to 15 of 15

Merge same Records to One Row

  1. #1
    Registered User
    Join Date
    11-05-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Merge same Records to One Row

    Hi,
    I have a database file with list of problems and action details for each problem.
    The sample database and Requirements are given in the Excel File attached for ref.
    Sample.xls
    Please help me with a Suitable Macro.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Merge same Records to One Row

    Try the attached
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-05-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Smile Re: Merge same Records to One Row

    HI,

    Very nice for your help.

    When I tested by increasing number of records, I am getting error to debug.
    In my requirement, Both the number of rows and number of coolumns will be increased.

    Please see the attached Excel Sample data (Sheet1) with more number of records. Sample1 With Code_.xls

    I request your help. And it is OK, if the output data is generated in New Sheet.

    Thank you.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Merge same Records to One Row

    Typo
    change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-05-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Smile Re: Merge same Records to One Row

    Hi,

    Please update macro as below :

    In the Sample Data file attached,
    a) the data indicated in RED should not appear (because, this is repeat data for the same Problem No.) &
    i.e. for every 'Complaint No.' :- The consecutive duplicate datas to be made as only ONE data
    b) the data to appear as a New Sheet.

    Thanks in advance.Sample1 With Code_.xls

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Merge same Records to One Row

    Is this the last change?

    If there any possible change, tell us.

  7. #7
    Registered User
    Join Date
    11-05-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Merge same Records to One Row

    Hi,

    This is the only requirement / last requirement.
    Infact, Your is coding is really good.
    But some communication gap. Sorry for troubling you.

    Thanks again.

    [Please Refer my Note in the First Excel file of my Request :
    Only Point b) to be completed.
    Macro Requirement :
    a) select the ROWS with same PROBLEM No.
    b) Remove Duplicate values in each Column
    c) For Each Column, merge data from the rows in selection and puts each cell value on a new line.
    d) Repeat for Next Problem No.

    Note :The database is sorted based on Complaint No.]

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Merge same Records to One Row

    Then I need a clear explanation.

    121 has 2 01-Oct-12 (dups), where as 122 and 123 has no dups.

    Why?

  9. #9
    Registered User
    Join Date
    11-05-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Merge same Records to One Row

    Hi,

    You observation is right.
    In 121 only ONE 01-Oct-12 is to be reported. (I missed to mark it as RED)
    i.e. For every problem number, all consecutive duplicates are to be delected (in every column - for evry problem number)

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Merge same Records to One Row

    Please Login or Register  to view this content.
    Last edited by jindon; 10-29-2012 at 07:34 AM.

  11. #11
    Registered User
    Join Date
    11-05-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Merge same Records to One Row

    Hi,

    Sorry. The Macro is not running in Excel file.Sample1 With Code_.xls

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Merge same Records to One Row

    ..............
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    11-05-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Thumbs up Re: Merge same Records to One Row

    It's Really Great.
    THANK YOU. It's a big Help to me.

  14. #14
    Registered User
    Join Date
    09-12-2012
    Location
    DUBAI
    MS-Off Ver
    2007
    Posts
    65

    Re: Merge same Records to One Row

    hi seenai,

    Check whether this attachment solves your problem.

    type the complain no in c2 then run.

    Regards,

    Raj.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    11-05-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Merge same Records to One Row

    Hi,

    Thanks for your suggestion. the ex.xlsm is showng data with filter option.

    My problem is solved by Mr.jindon, just now. Thanks.

+ 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