+ Reply to Thread
Results 1 to 9 of 9

How to merge repeated data cell in Excel?

  1. #1
    Registered User
    Join Date
    10-25-2009
    Location
    Nepal
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    48

    How to merge repeated data cell in Excel?

    I have excel data containing in column A "Plot number" which is repeated and other four column is land area and the next column is "Land Owner Name". Now I want to merge same plot no if the land area is same if differ then I want to leave as it is. And another thing I want to do that the all land owner name is merge in a row. Please help. Your suggestion is highly appreciated.

    Indra
    Attached Files Attached Files
    Last edited by indra; 11-01-2009 at 02:50 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to merge repeated data cell in Excel?

    This macro will convert your table into a consolidated version.
    Please Login or Register  to view this content.
    ============
    How to use the macro:

    1. Open up your workbook
    2. Get into VB Editor (Press Alt+F11)
    3. Insert a new module (Insert > Module)
    4. Copy and Paste in your code (given above)
    5. Get out of VBA (Press Alt+Q)
    6. Save your sheet

    The macro is installed and ready to use. Press Alt-F8 and select it from the macro list.

    This macro is designed without the BEFORE row, so it expects your titles to be in row 1 and your first row of data in row 2, plot numbers in column A. Sample attached.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-27-2009
    Location
    usa
    MS-Off Ver
    2007
    Posts
    1

    Re: How to merge repeated data cell in Excel?

    thanksss !

  4. #4
    Registered User
    Join Date
    10-25-2009
    Location
    Nepal
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    48

    Re: How to merge repeated data cell in Excel?

    Thanks for your code JBeaucaire. But I steel want to do one thing that the differ land area in a same plot no. will be no change or want to keep all plot no and another one column is Address. If it contains same address then I want to keep only one address, if differ each other then merge all address of same plot no. Please see attachment. Thanks

    Indra
    Attached Files Attached Files
    Last edited by indra; 10-27-2009 at 03:41 AM. Reason: spelling

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to merge repeated data cell in Excel?

    Try this, had to use a columns H:J for helpers, but it should work for you.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-25-2009
    Location
    Nepal
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    48

    Re: How to merge repeated data cell in Excel?

    Thanks alot JBeaucaire. You are great. It is working very nice to me. If you don't mind, can I asked another one question in this regard? How can I highlight entire row all repeated plot no? Your guidance and suggestion is highly appreciated.
    Last edited by indra; 10-29-2009 at 08:03 AM.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to merge repeated data cell in Excel?

    Please post a sample.

  8. #8
    Registered User
    Join Date
    10-25-2009
    Location
    Nepal
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    48

    Re: How to merge repeated data cell in Excel?

    Hello JBeaucaire, I got the solution. I modified your code. It's working fine. Thanks
    Last edited by indra; 10-30-2009 at 01:21 AM.

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to merge repeated data cell in Excel?

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

+ 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