+ Reply to Thread
Results 1 to 14 of 14

How to merge 2 tables

  1. #1
    Registered User
    Join Date
    02-07-2014
    Location
    Finland
    MS-Off Ver
    Excel 2003
    Posts
    7

    How to merge 2 tables

    Hello all!

    I have problem what I need to solve. I have 2 worksheet, on every sheet is a table that I got from my colleague. They are both supervisiors, so on every table they putted own workers. How I can merge those 2 tables in one? I tried to use vlookup, but It not worked. Example file is attached. example.xls
    Last edited by Denlahti; 02-11-2014 at 02:13 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Howw to merge 2 charts using vlookup

    I think you have to call it as TABLE instead of CHARTS.

    Can you please show the expected result?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    02-07-2014
    Location
    Finland
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Howw to merge 2 tables using vlookup

    Sorry . So, I want that in the new table will be names, City, Title, Age(yes, I know tha age is mission from second table) and idnum from both tables. This example is verry simple in real I have more info.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Howw to merge 2 tables using vlookup

    Please show it in excel

  5. #5
    Registered User
    Join Date
    02-07-2014
    Location
    Finland
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Howw to merge 2 tables using vlookup

    Quote Originally Posted by :) Sixthsense :) View Post
    Please show it in excel
    Okay. Something like this example.xls
    Last edited by Denlahti; 02-07-2014 at 05:37 AM.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How to merge 2 tables using vlookup

    Hi Denlahti,

    Try this:

    Please Login or Register  to view this content.
    Directions for running the routine(s) just supplied

    Copy the code to the clipboard

    Open your Workbook

    Save your Workbook or Another Workbook designated for Macros as Macro_Enabled

    Press ALT + F11 to open the Visual Basic Editor.

    Select “Module” from the Insert menu

    Type "Option Explicit" then paste the code under it

    With the cursor between Sub and End Sub press F5 (F8 to Single Step)

    OR

    Press ALT + Q to close the code window.

    Press ALT + F8 then double click on the macro name
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  7. #7
    Registered User
    Join Date
    02-07-2014
    Location
    Finland
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to merge 2 tables using vlookup

    Thank you very much xladept. But macros are not familiar to me. Can you please tell me how I can use that macro? So every think worked fine. Arter that last spet I didn't got any error.


    -Thanks I worked this out
    Last edited by Denlahti; 02-10-2014 at 02:50 AM.

  8. #8
    Registered User
    Join Date
    02-07-2014
    Location
    Finland
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to merge 2 tables using vlookup

    Now I have other guestion. What I want to use this marco in other document. What I need to change in that code?

  9. #9
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: How to merge 2 tables using vlookup

    Maybe something like this? Pleasee check the file, hope it works
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    02-07-2014
    Location
    Finland
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to merge 2 tables using vlookup

    Quote Originally Posted by azumi View Post
    Maybe something like this? Pleasee check the file, hope it works
    That is pretty good, but it don't search all IDnumbers...

  11. #11
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How to merge 2 tables

    In another document you need to change the items colored red:

    Please Login or Register  to view this content.

  12. #12
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How to merge 2 tables using vlookup

    Denlahti are you trying to do the same thing with no ID number in the record? If so, then I need another example Spreadsheet.

  13. #13
    Registered User
    Join Date
    02-07-2014
    Location
    Finland
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to merge 2 tables

    Quote Originally Posted by xladept View Post
    In another document you need to change the items colored red:

    Please Login or Register  to view this content.
    Thanks xladept. This will be enought. Thanks for your great code .

  14. #14
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How to merge 2 tables

    You're welcome! And, thanks for the rep!

+ 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: 2
    Last Post: 01-22-2013, 11:37 AM
  2. Merge data to form w/charts HELP PLEASE
    By clrauch3 in forum Excel General
    Replies: 2
    Last Post: 03-20-2006, 01:33 PM
  3. [SOLVED] [Help] How to merge two charts?
    By Lin Ling in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-19-2005, 08:06 AM
  4. [SOLVED] Help] How to merge two charts?
    By Lin Ling in forum Excel General
    Replies: 0
    Last Post: 04-19-2005, 07:06 AM
  5. [Help] How to merge two charts?
    By Lin Ling in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-19-2005, 07:06 AM

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