+ Reply to Thread
Results 1 to 3 of 3

Comparing Two Sheets In Excel

Hybrid View

  1. #1
    Registered User
    Join Date
    09-28-2011
    Location
    Stevenage, England
    MS-Off Ver
    Excel 2007
    Posts
    10

    Comparing Two Sheets In Excel

    Hi,

    I have this problem I would like to combine “SanofiData” and “LifeSciences” together to only bring back the results that are only the same in both to another sheet in the workbook. I did this using a SQL Query and the data it brought back was correct but kept on breaking.

    I would like this to be applicable to all workbooks not just SanofiData or LifeSciences.

    Would anyone be able to help me code this using a Macro within Excel?

    The Sanofi Data Sheet is bigger than the one attached but had to delete alot of data because of the size

    Any ideas
    Regards,
    Jess
    Attached Files Attached Files
    Last edited by je551cashe; 02-02-2012 at 01:36 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Comparing Two Sheets In Excel

    SanofiData has a lot of columns than LifeSciences. Which columns do you want to compare?

    I would like this to be applicable to all workbooks not just SanofiData or LifeSciences.
    Are the other workbooks in the same format as either of these 2?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    09-28-2011
    Location
    Stevenage, England
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Comparing Two Sheets In Excel

    The field to analyse the data is the Source ID to compare the two files as this is the same field in both documents and is unique. Then using this field I would like the Source ID, Title, Source Title and Year to be displayed.

    The formatting throughout all the documents will have the same heading but I can make sure all the columns are in the same place as well if needed.

    The SanofiData is the main data source and the LifeSciences is used to analyse the top 100 publications. As Source Title is a name of a Journal as there are many Titles which are the names of Papers that are published inside that Journal.

    Hope this information helps, if needed I can attach a document to show what I would like the output to look like to help show/ understand what I would like to achieve using a macro.

    Cheers,
    Jess
    Last edited by je551cashe; 02-02-2012 at 07:32 PM.

+ 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