+ Reply to Thread
Results 1 to 14 of 14

Check & Merge Multiple data

  1. #1
    Registered User
    Join Date
    05-10-2012
    Location
    Kolkata, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    30

    Check & Merge Multiple data

    Hi I am facing one problem, please help.

    Having 3 sheet contain data in 2 sheet as follows:

    Sheet#1:

    Code Note
    A1 P1
    A1 P1
    A2 P1
    A3 P3
    A2 P2

    Sheet#2:

    Activity
    IPF1
    IPF2

    I want the result in 3rd Sheet like this:

    Sheet#3:

    Code Note Activity
    A1 P1 IPF1
    A1 P1 IPF1
    A2 P1 IPF1
    A3 P3 IPF1
    A2 P2 IPF1
    A1 P1 IPF2
    A1 P1 IPF2
    A2 P1 IPF2
    A3 P3 IPF2
    A2 P2 IPF2

    Please help.

    Regards // Shiven

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Check & Merge Multiple data

    If you want to do this via a macro and assuming data in both Sheet1 and Sheet2 starts from A1, try this:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-10-2012
    Location
    Kolkata, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    30

    Re: Check & Merge Multiple data

    There is some error showing in for loop

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Check & Merge Multiple data

    At which line? and are your worksheets named Sheet1, Sheet2, and Sheet3?

  5. #5
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Check & Merge Multiple data

    I have tried in Excel functions.
    Attached Files Attached Files
    Please click 'Add reputation', if my answer helped you.

  6. #6
    Registered User
    Join Date
    05-10-2012
    Location
    Kolkata, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    30

    Re: Check & Merge Multiple data

    Quote Originally Posted by ramananhrm View Post
    I have tried in Excel functions.
    Thanks ramananhrm, it is great but I need the results in separate column as according to your solution it is in single column in Sheet3

  7. #7
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Check & Merge Multiple data

    I have made the changes. Please try this file.

    Regards
    Attached Files Attached Files
    Last edited by ramananhrm; 09-11-2013 at 01:32 AM.

  8. #8
    Registered User
    Join Date
    05-10-2012
    Location
    Kolkata, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    30

    Re: Check & Merge Multiple data

    Yes, my worksheet named as sheet1, sheet2 and sheet3.

    Error is giving at this line:

    For Each c1 In Sheets("Sheet2").Range(Sheets("Sheet2").Range("A2"), Sheets("Sheet2").Range("A" & Sheets("Sheet2").rows.Count).End(xlUp))
    For Each c2 In Sheets("Sheet1").Range(Sheets("Sheet1").Range("A2"), Sheets("Sheet1").Range("A" & Sheets("Sheet1").rows.Count).End(xlUp))

  9. #9
    Registered User
    Join Date
    05-10-2012
    Location
    Kolkata, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    30

    Re: Check & Merge Multiple data

    Quote Originally Posted by ramananhrm View Post
    I have made the changes. Please try this file.

    Regards
    Thanks Ramananhrm, it was simply great to see the solution, can you do me favour, will you please explain the formula so that I can check with more data in the Sheet1 & Sheet2 as have check and tried to put some more data in the sheet 1 & Sheet2 but it is not working. It is effectively for the given set of data.

    Regards,
    Shiven

  10. #10
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Check & Merge Multiple data

    Maybe you have option explicit, try this:
    Please Login or Register  to view this content.

  11. #11
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Check & Merge Multiple data

    I have attached the navigation to modify the range.

    You can make use of 'Name manager' for range modification
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    05-10-2012
    Location
    Kolkata, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    30

    Re: Check & Merge Multiple data

    Quote Originally Posted by ramananhrm View Post
    I have attached the navigation to modify the range.

    You can make use of 'Name manager' for range modification
    Thanks Ramananhrm

    Regards,
    Shiven

  13. #13
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Check & Merge Multiple data

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  14. #14
    Registered User
    Join Date
    05-10-2012
    Location
    Kolkata, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    30

    Re: Check & Merge Multiple data

    Quote Originally Posted by arlu1201 View Post
    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    thanks!!!

    Regards, Shiven

+ 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. [SOLVED] multiple sheet data merge
    By dgclubbie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2012, 12:19 AM
  2. Merge data in multiple documents
    By danjones in forum Excel General
    Replies: 0
    Last Post: 10-15-2007, 03:04 PM
  3. merge multiple row cells of text corresponding to one row of data
    By roberta t williams in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  4. [SOLVED] merge multiple row cells of text corresponding to one row of data
    By roberta t williams in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  5. Merge Data from Multiple Spreadsheets
    By Carm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-27-2005, 10:06 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