+ Reply to Thread
Results 1 to 12 of 12

Combine multiple columns into one, not overwrite

  1. #1
    Registered User
    Join Date
    10-11-2017
    Location
    Sweden
    MS-Off Ver
    Office 2016
    Posts
    9

    Combine multiple columns into one, not overwrite

    Hi,
    I've tried this forum once and it was a success so here we go again

    I've have a work with customers and customer owners but they are in two sheet. Now I want to combine theese two sheets into a third sheet without overwriting each other.

    So from Sheet 1
    Column A: Customers
    Column B: Customer owners

    Sheet 2
    Column A: Customers
    Column B: Customer owners

    Combine Customers from column A in Sheet 1 & 2 to Column A in Sheet 3 > Not overwriting each other.
    Combine Customer owners from column B in Sheet 1 & 2 to Column B in Sheet 3 > Not overwriting each other.

    Do I need VBA for this?, because thats beyond my knowledge

    Im using Excel 2016

    Thanks!

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Combine multiple columns into one, not overwrite

    If you have combine data from only 2 Sheets then can manage with formulas otherwise go with VBA

    Please attach a sample excel file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    10-11-2017
    Location
    Sweden
    MS-Off Ver
    Office 2016
    Posts
    9

    Re: Combine multiple columns into one, not overwrite

    Hi
    Heres the attachement in stripped version.


    BTW!
    Of course with this little amount of data I can easily copy/paste and then sort. But, formula is so much more fun!
    Attached Files Attached Files
    Last edited by peson79; 11-21-2017 at 08:38 AM.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Combine multiple columns into one, not overwrite

    is that what you want?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-11-2017
    Location
    Sweden
    MS-Off Ver
    Office 2016
    Posts
    9

    Re: Combine multiple columns into one, not overwrite

    Hi Sandy,
    yes, this is my first step. How did you do it, using the Consolidate button?

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Combine multiple columns into one, not overwrite

    Use Power (Query), Luke (Get&Transform)

  7. #7
    Registered User
    Join Date
    10-11-2017
    Location
    Sweden
    MS-Off Ver
    Office 2016
    Posts
    9

    Re: Combine multiple columns into one, not overwrite

    ok,im not very familiar with that...

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Combine multiple columns into one, not overwrite

    ok, simply way

    clik on first "table"
    go to DATA - From table
    in new window select Close and Load to - ... - as connection (it will be Table 1
    do the same for second "table"

    then go to DATA - Show Queries
    right click on Table 1 - Append
    in new window you'll see Table 1 selected then select Table 2
    ok
    as connection

    then choose the place where you want new result table (sheet, cell)
    in Queries windows right click on Append1 and select Load to, then select Table, and select cell, OK

    edit:
    remember, both source tables should have exactly the same headers
    Last edited by sandy666; 11-21-2017 at 10:53 AM.

  9. #9
    Registered User
    Join Date
    10-11-2017
    Location
    Sweden
    MS-Off Ver
    Office 2016
    Posts
    9

    Re: Combine multiple columns into one, not overwrite

    I was trying to follow this but now when I try to do your way I get this. Grrr....
    Cant find any filter anywhere....

    Expression.Error: We couldn't find an Excel table named 'Sheet1!_FilterDatabase'.
    Details:
    Sheet1!_FilterDatabase

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Combine multiple columns into one, not overwrite

    Filter???????
    I didn't say anything about filter

    EDIT:
    Look at this one: PowerQuery - Append
    Last edited by sandy666; 11-21-2017 at 12:22 PM.

  11. #11
    Registered User
    Join Date
    10-11-2017
    Location
    Sweden
    MS-Off Ver
    Office 2016
    Posts
    9
    Quote Originally Posted by sandy666 View Post
    Filter???????
    I didn't say anything about filter
    The file I uploaded was cleaned from corp data and there it works. But when I try the same in the original document I get this error, though I can’t find any filters.
    I’ll look it up deeper when I’m back at my computer!

  12. #12
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Combine multiple columns into one, not overwrite

    So reflect structure of data from original file (with dummy data)
    20-30 rows will be ok but with all columns

    NB:
    tables do not accept merged cells by default (structured table, pivot table or query table)
    (Excel) Table - not range named table
    Last edited by sandy666; 11-21-2017 at 01:46 PM.

+ 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] Combine multiple sets of columns into a singe set of columns
    By umchem in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-19-2017, 12:14 PM
  2. Replies: 6
    Last Post: 11-25-2015, 01:01 PM
  3. Replies: 4
    Last Post: 10-04-2015, 08:21 AM
  4. Macro to combine multiple columns keeping few columns specific
    By lramesh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2013, 12:44 PM
  5. [SOLVED] align or combine multiple columns from multiple sheets into one sheet in sequence
    By calif in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-28-2013, 11:49 AM
  6. Combine Two Workbooks W/O overwrite
    By cmschube in forum Excel General
    Replies: 1
    Last Post: 09-01-2006, 06:37 AM
  7. Replies: 0
    Last Post: 07-31-2006, 12:13 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