+ Reply to Thread
Results 1 to 7 of 7

Merging 2 databases

  1. #1
    Registered User
    Join Date
    11-02-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Merging 2 databases

    I want to merge 2 excel databases based on the first column (called ''ticker''). To make it complicated, some tickers have a slightly different format in the 2 files (for example Alza Corp is called "AZA" in the first sheet and "AZA.1" in the second sheet, these have to be merged). To make it even more complicated, the sheets have a different amount of rows and some companies that are in one sheet are not in the other and the other way around. I have pasted a small part of the total database in the attachment. The columns 'firm_id' and 'numblks' from sheet 1 have to end up next to the column 'Gind', as already done manually for ALZA CORP.

    Who can help me?? I have already spent almost 2 days solving this, but become more and more desperate every minute..
    Attached Files Attached Files
    Last edited by harrypotter1; 11-02-2012 at 09:53 AM.

  2. #2
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: Merging 2 databases

    I think you may have forgotten to attach your attachment. Post that up here and we can have a look.

  3. #3
    Registered User
    Join Date
    11-02-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Merging 2 databases

    Thank you

  4. #4
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: Merging 2 databases

    I am not sure I understand what you want this to look like when you are finished. For example,

    Please Login or Register  to view this content.
    In the first sheet, BEAM is its own ticker, while on the second sheet, there are both BEAM and BEAM.1. I would normally find and replace ".1", but it seems as though the data is different as they have different company names, ebitda, etc.

    Which sheet has 'better' information. Using your example, would you rather have Alza Corp called ALZA, or ALZA.1, and are these two names interchangeable? Maybe if put together a quick 10 lines of what you would want your final product to look like, it would help us figure out the best way to get you there.

  5. #5
    Registered User
    Join Date
    11-02-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Merging 2 databases

    The names are not interchangable as you show with the example of BEAM.
    I have put the endresult as how it should be for all companies in sheet 3.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: Merging 2 databases

    I apologize, that does not really answer my questions, and therefore I still do not know what you are looking for. To me, it looks like you have just copied the cells from sheet 2 where the ticket is ALZ.1 onto the third sheet. Ideally, I want to know how to merge the data and what you want it to look like, which tickers to use between the two sheets, and how the two sheets should be integrated into one.

    If you were just going to copy the data, I would just insert columns so everything matches up and then copy, paste and sort. I am assuming this is not what you are looking for, though.

  7. #7
    Registered User
    Join Date
    11-02-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Merging 2 databases

    I want to merge the data by using the tickers on sheet 2.
    I have found this formula, but it is not correct because it does not take the year into account =IF.WRONG(VLOOKUP(A85925;Blockholder!$A$2:$F$302;3;0);"")

    Thanks for helping

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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