+ Reply to Thread
Results 1 to 4 of 4

Help Combining Data from separate sources

  1. #1
    Registered User
    Join Date
    04-22-2017
    Location
    Kent
    MS-Off Ver
    2016/365
    Posts
    7

    Question Help Combining Data from separate sources

    *Edit, I have found that Power Query did what I needed, in case anyone else comes across this thread. If anyone knows a better way, feel free to post, it would be much appreciated to get other ideas.


    Hi All,

    I need some assistance with a project at work. I have 3+ sets of data I need to compare for analysis. The only common information among the data sets are the IDs of each item (listed as "H###########" where # is a number - example H14236023101.

    The biggest issue for comparison is that the sets of data don't all have the same numbers, so I want to filter out only the information that matches between the first 2 of these data sets, and where applicable, supplement it with the 3rd.

    The first data set has fewer items, but the first 10 items in that list are not on the second, larger, data set. The third set is just additional data that is useful but not required for the comparison, which is why I want to supplement where applicable, and not just directly compare (does this makes sense??).

    I'd like to be able to import all the information of an item into a table that has the relevant comparisons side by side (so some formula or macro I can work designate columns based on particular data).

    And if possible, have a separate table that will import all the samples that do not have a duplicate in the comparative table, along with just a note stating which data set they originate (does not require the rest of the data).

    I hope this all makes sense to someone who can help me haha.

    Thanks for reading
    Attached Files Attached Files
    Last edited by JonoRig; 04-23-2017 at 02:35 PM. Reason: Resolved the issue

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Help Combining Data from separate sources

    Would be better to upload a sample workbook.

    Quote Originally Posted by Pete_UK View Post
    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.
    Data must be desensitized and should not contain huge amount.Maximum 20 records are enough to experiment on.
    Teach me Excel VBA

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Help Combining Data from separate sources

    Hi. You have me confused. I assumed on first reading, that you wanted to assemble a list of unique H-numbers and then build up from there. However, when I did that, i discoverd that, on your posted sample, there are 31 H-numbers and they're all different. So either amend your sample sheet, or have another go at telling us what you really want!!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    04-22-2017
    Location
    Kent
    MS-Off Ver
    2016/365
    Posts
    7

    Re: Help Combining Data from separate sources

    Hi Glenn,

    Maybe unnecessarily so, I was attempting to avoid context, but as the data is anonymised I suppose that is rather irrelevant. so I will explain within context.

    So the data is a list of all the samples of interest from 2016. I am comparing Genomic Data to Phenotypic Data. Set one is our data from Phenotype and has 306 records. Dataset two is Genomic data from Whole Genome Sequencing condensed down to the particular genes of interest for this comparative analysis and had 326 records. Dataset three is not as important, but it contains the medically relevant values of Antimicrobial Susceptibility.

    As some sample do not have successful sequencing data, nor do some have successful AMR data, these two Datasets are not a perfect match, so it's not a simple task of copy and paste. The reason why you say you see 31 seperate H numbers in my "Example" is because as per ImranBhatti suggestion i have included an example of the datasets by lifting the first 10 from each document and pasting them in, they may not match, but as an example, thats not 100% relevant, although it would help.

    So, as i am not familiar with formulae, Macros or any kind of programming or coding, but i have datasets too large to do manually, i was asking help with the following points.
    1. A formula or Macro that can compare the H number ID's in 2 lists
    2. This comparison will eliminate unique numbers (preferably importing them to a seperate list so we know what sample is missing what for further internal investigation)
    3. This comparison will compile any information listed in the rest of the row into one table - listing Spp (species), ST/Sequence type, AMR results (book one), Resistance genes detected (book 2) and where relevant, AMR Values (book 3 - not important like the other two, so comparison with this set need not be eliminative))
    4. The Final table should list the relevant Phenotypic result (Ery4/8, Cip 0.5 etc) side by side with the relevant Genotypic (Ery = Macrolide, Tet = Tetracyclines) etc
    5. This will allow us to see if the Phenotype of the sample shown is the same as the genes detected

+ 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. Reading and Updating sheets from different sources and then combining
    By devvo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2017, 05:07 AM
  2. Replies: 3
    Last Post: 02-12-2015, 09:46 AM
  3. Combining Different Data Sources
    By thelastquestion in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-05-2014, 12:14 AM
  4. Combining specific data from 2 separate spreadsheets
    By brc4 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-01-2013, 11:10 PM
  5. Combining Data from Separate Worksheets [Please Help]
    By rockproper in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2012, 12:22 PM
  6. Replies: 20
    Last Post: 02-28-2012, 11:53 PM
  7. Combining two data sources in a Pivot table.
    By Erasmus Bowen in forum Excel General
    Replies: 0
    Last Post: 08-19-2005, 05:05 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