+ Reply to Thread
Results 1 to 6 of 6

Append Tables in different worksheets using Formulas

  1. #1
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Append Tables in different worksheets using Formulas

    Hi Forum,

    I've found a good Formula for appending 2 Tables that are on different worksheets from the site on the below link.

    I was wondering if it can be altered to append any number of tables (about 20) & not just 2.

    http://superuser.com/questions/53733...ntical-columns

    I've attached a file that follows the link instructions where 2 tables of data - Sheet1 & Sheet2 are appended on Sheet3.

    Sheet1 & Sheet2 have Named Ranges (SQLDB, EXCELRNG Respectively) that are used in the Formula on Sheet3.

    Here's the Formula on Sheet3 that brings the Sheet1 & 2 data over to Sheet3.

    Please Login or Register  to view this content.
    I've created another table on Sheet4 to see if anyone can add this into the Formula so it also appends on Sheet3.

    Hope I've explained this clearly.

    Thanks
    Attached Files Attached Files
    Last edited by noboffinme; 01-11-2017 at 07:44 AM.
    Remember you are unique, like everyone else

  2. #2
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Append Tables in different worksheets using Formulas

    Hi,

    I tried a quick test to open my Excel attachment & found it wanted to open as a php file??

    If this happens, save it as an .xlsx file & it should work ok. Thanks

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Append Tables in different worksheets using Formulas

    Try

    =IFERROR(INDEX(SQLDB,ROWS(A$2:A2),COLUMN(A2)),IFERROR(INDEX(EXCELRNG_1,ROWS(A$2:A2)-ROWS(SQLDB),COLUMN(A2)),IFERROR(INDEX(EXCELRNG_2,ROWS(A$2:A2)-ROWS(SQLDB)-ROWS(EXCELRNG_1),COLUMN(A2)),"-")))


    Good luck with 20 sheets!!!

    You might look at the attached which offers another approach:
    Attached Files Attached Files

  4. #4
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Append Tables in different worksheets using Formulas

    Thanks John,

    That's perfect!

    Much appreciated!

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Append Tables in different worksheets using Formulas

    Thank you for the rep.

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

  6. #6
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Append Tables in different worksheets using Formulas

    Funny, No-One has ever brought up the 'Thread Tools' feature to class a Post as Solved.

    I didn't know how it was done. Thanks again. : )

+ 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. Power Query - how to append tables
    By GIS2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2015, 04:55 AM
  2. Copy table01, append to tableA on another sheet, create sub-tables therein
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2014, 06:12 PM
  3. Append data from two pivot tables
    By Melovalicious in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2013, 04:57 AM
  4. Append data in worksheets
    By bong25 in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 12-02-2009, 10:25 AM
  5. Formula to append a certain number of formulas
    By imagine_creation in forum Excel General
    Replies: 5
    Last Post: 05-15-2009, 01:28 PM
  6. Append worksheets together in one
    By bioyyy in forum Excel General
    Replies: 1
    Last Post: 10-14-2005, 03:05 AM
  7. [SOLVED] append two worksheets with excel macro
    By Moon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2005, 06:06 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