+ Reply to Thread
Results 1 to 6 of 6

[HELP] How to merge two identical sheets in one sheet (with formulas)? Without duplicates

Hybrid View

  1. #1
    Registered User
    Join Date
    02-04-2015
    Location
    Brasil
    MS-Off Ver
    2013
    Posts
    14

    [HELP] How to merge two identical sheets in one sheet (with formulas)? Without duplicates

    Hi guys,
    I have two different sheets that have the same layout, but come from two different sheets with completely different formulas. I´ve wanted to make a single data base so I could use in the pivot table, so I need to merge them, if possible avoiding possible duplicates.
    My problem is that they are dynamic every day each of them will have new data added in, and I´ve wanted to merge them both on a single sheet automatically.
    This problem is part of a huge sheet that I´ve wanted to work without any interaction, I cannot think of any way I would merge both, hopefully someone can help me with that.

    Here follows the Example Sheet:

    Thanks in Advance!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-04-2015
    Location
    Brasil
    MS-Off Ver
    2013
    Posts
    14

    Re: [HELP] How to merge two identical sheets in one sheet (with formulas)? Without duplica

    Hi guys, still looking for a solution. If anyone have any clues let me know!

  3. #3
    Valued Forum Contributor
    Join Date
    09-17-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    454

    Re: [HELP] How to merge two identical sheets in one sheet (with formulas)? Without duplica

    This won't deal with duplicates, but it will append the one table beneath the other using formula only. (You could add extra columns to detect and adjust for duplicate values)

    In 'Merged Sheets' enter in cell A2, and copy down and across
    =IF(ROW($A2)<=COUNTA(Sheet1!$A:$A),Sheet1!A2,OFFSET(Sheet2!$A$1,ROW($A2)-COUNTA(Sheet1!$A:$A),COLUMN(Sheet2!A$1)-1))

  4. #4
    Registered User
    Join Date
    02-04-2015
    Location
    Brasil
    MS-Off Ver
    2013
    Posts
    14

    Re: [HELP] How to merge two identical sheets in one sheet (with formulas)? Without duplica

    Quote Originally Posted by cyiangou View Post
    This won't deal with duplicates, but it will append the one table beneath the other using formula only. (You could add extra columns to detect and adjust for duplicate values)

    In 'Merged Sheets' enter in cell A2, and copy down and across
    =IF(ROW($A2)<=COUNTA(Sheet1!$A:$A),Sheet1!A2,OFFSET(Sheet2!$A$1,ROW($A2)-COUNTA(Sheet1!$A:$A),COLUMN(Sheet2!A$1)-1))
    cyiangou, Thank you also for the contribution. I will give it a try also. Really glad!!!

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: [HELP] How to merge two identical sheets in one sheet (with formulas)? Without duplica

    Here's what I did.
    1. First converted sheets1 and 2 to tables. Tables have the added value that they automatically format new rows and add formulas to them.

    Then in Sheet2, I added a column called "Key" with this formula
    =IF(ISNUMBER(MATCH([@[Full Description]],Table1[Full Description],0)), "",MAX($F$1:F1)+1) It gives sequential numbers to all non-duplicate rows.

    Then in Merged sheet, in A2, dragged right and copied down

    =IFERROR(INDEX(Table1[Due Date], ROWS($A$1:$A1)), IFERROR( INDEX(Table2[Due Date], MATCH(ROWS($A$1:$A1)-ROWS(Table1[Due Date]), Table2[[Key]:[Key]],0)),""))
    Does that meet your criteria?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Registered User
    Join Date
    02-04-2015
    Location
    Brasil
    MS-Off Ver
    2013
    Posts
    14

    Re: [HELP] How to merge two identical sheets in one sheet (with formulas)? Without duplica

    Quote Originally Posted by ChemistB View Post
    Here's what I did.
    1. First converted sheets1 and 2 to tables. Tables have the added value that they automatically format new rows and add formulas to them.

    Then in Sheet2, I added a column called "Key" with this formula
    =IF(ISNUMBER(MATCH([@[Full Description]],Table1[Full Description],0)), "",MAX($F$1:F1)+1) It gives sequential numbers to all non-duplicate rows.

    Then in Merged sheet, in A2, dragged right and copied down

    =IFERROR(INDEX(Table1[Due Date], ROWS($A$1:$A1)), IFERROR( INDEX(Table2[Due Date], MATCH(ROWS($A$1:$A1)-ROWS(Table1[Due Date]), Table2[[Key]:[Key]],0)),""))
    Does that meet your criteria?
    Seems great! I will give it a try, and let you know!

+ 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. Replies: 3
    Last Post: 09-04-2014, 05:08 AM
  2. [SOLVED] Merge many sheets into one, re-order cols, include sheet name on merged sheet rows
    By EXLwiz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-11-2014, 02:48 AM
  3. Add row in sheet with formulas and merge
    By DupkeVFR in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2013, 05:22 PM
  4. Replies: 3
    Last Post: 10-19-2011, 04:25 AM
  5. Pull data from identical sheets onto master sheet
    By veritas1 in forum Excel General
    Replies: 2
    Last Post: 08-18-2011, 05:45 AM
  6. Replies: 0
    Last Post: 03-10-2010, 01:25 PM
  7. compare 2 sheets and remove identical rows in sheet 2
    By VBisgreat in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2009, 04:41 PM

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