+ Reply to Thread
Results 1 to 4 of 4

How i can merge two tables in one sheet automatically (without using VB Script)

  1. #1
    Registered User
    Join Date
    05-14-2017
    Location
    UAE - AD
    MS-Off Ver
    Office 365
    Posts
    8

    Question How i can merge two tables in one sheet automatically (without using VB Script)

    Hello!,

    am not sure if this is the right section to post this...

    I Have 3 Sheets in Excel File, 1 and 2 have tables, and i want the 3rd sheet to have both of them one after another.


    For Example:



    This is the first Sheet:


    1.jpg


    ----

    this is the second sheet:

    2.jpg

    ----

    and this is the third sheet, i need it to look like this automatically ( if i inserted data in Sheet1 it should insert it here too!:

    3.jpg











    Thanks

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: How i can merge two tables in one sheet automatically (without using VB Script)

    You could use an array formula like this one:

    =IFERROR(IFERROR(
    INDEX(Sheet1!A:A,SMALL(IF(Sheet1!$A$2:$A$100<>"",ROW(Sheet1!$A$2:$A$100)),ROWS(A$2:A2))),
    INDEX(Sheet2!A:A,SMALL(IF(Sheet2!$A$2:$A$100<>"",ROW(Sheet2!$A$2:$A$100)),ROWS(A$2:A2)-COUNTA(Sheet1!A:A)+1))),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    05-14-2017
    Location
    UAE - AD
    MS-Off Ver
    Office 365
    Posts
    8

    Re: How i can merge two tables in one sheet automatically (without using VB Script)

    Quote Originally Posted by Glenn Kennedy View Post
    You could use an array formula like this one:

    =IFERROR(IFERROR(
    INDEX(Sheet1!A:A,SMALL(IF(Sheet1!$A$2:$A$100<>"",ROW(Sheet1!$A$2:$A$100)),ROWS(A$2:A2))),
    INDEX(Sheet2!A:A,SMALL(IF(Sheet2!$A$2:$A$100<>"",ROW(Sheet2!$A$2:$A$100)),ROWS(A$2:A2)-COUNTA(Sheet1!A:A)+1))),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...


    Thank you!, VERY helpful

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: How i can merge two tables in one sheet automatically (without using VB Script)

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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] Automatically merge three tables on separate worksheets into one combined table
    By gjw1971 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2016, 06:31 PM
  2. [SOLVED] How to merge 2 tables on the same sheet.
    By 878980 in forum Excel General
    Replies: 4
    Last Post: 07-07-2015, 02:14 AM
  3. Merge columns,sheet (Import script)
    By elmnas in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2015, 12:21 PM
  4. How do I merge several tables automatically?
    By sunshne900 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-12-2013, 07:16 AM
  5. How do I merge several tables automatically?
    By sunshne900 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2013, 11:45 AM
  6. Multiple tables automatically sum up in total sheet?
    By Osing000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2010, 03:32 AM
  7. Replies: 6
    Last Post: 10-11-2005, 05:05 PM

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