+ Reply to Thread
Results 1 to 6 of 6

Comparing and getting data between two sheets with multiple instances of identifiers

  1. #1
    Registered User
    Join Date
    02-15-2022
    Location
    Finland
    MS-Off Ver
    Office 365
    Posts
    4

    Comparing and getting data between two sheets with multiple instances of identifiers

    Hi,

    I would need to compare the sampling dates between the two tables. Both tables have sampling dates for samples taken at different farms. Sample1 and Sample2 refer to different kind of samples taken. I would like to know how much time there is between the different sampling dates for a given farm. For example, in table 1, from farm1, three samples (sample1_1, sample1_2, sample1_3) were taken at two different time points. I would like to know 1) whether farm1 was also sampled in another sampling scheme (table2), and 2) how much time was there between the sampling points. In table2, there might be several sampling occasions for one farm and these all should be included in the comparison.

    I have tried using the FILTER function, but clearly some more advanced is needed here. Does anyone have any ideas? I have attached a sample file.Example2.xlsx

    Any advice or ideas are more than welcome! Perhaps this is something that is not attainable with Excel.

    Thanks!

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

    Cool Re: Comparing and getting data between two sheets with multiple instances of identifiers

    is that what you want?

    Farm_ID Days.1 Days.2 Days.3 Days.4
    Farm1 159 94 -244 -371
    Farm1 159 94 -244 -371
    Farm1 251 186 -152 -279
    Farm1 281 216 -122 -249
    Farm2 792 -176
    Farm3 732 215
    Farm4 727 606 554 493
    Farm4 727 606 554 493
    Farm4 790 669 617 556
    Farm4 790 669 617 556
    Farm5 180
    Farm6 144
    Farm7 240 137
    Farm8
    Farm9
    Farm9
    Farm10 729
    Farm11 729
    Farm11 769
    Farm12

    with Power Query
    Last edited by sandy666; 05-31-2023 at 09:15 AM.

  3. #3
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,023

    Re: Comparing and getting data between two sheets with multiple instances of identifiers

    Clean all expected results.

    E2
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-15-2022
    Location
    Finland
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Comparing and getting data between two sheets with multiple instances of identifiers

    Hi sandy666 and windknife,

    Thank so much for your help! I have to consult my colleague about these solutions, but I think either would work for our data.

  5. #5
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,023

    Re: Comparing and getting data between two sheets with multiple instances of identifiers

    You are welcome.
    -----------------------------------
    If that takes care of your original question, please click on "Thread Tools" from the menu link above and mark this thread as SOLVED.

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

    Re: Comparing and getting data between two sheets with multiple instances of identifiers

    You are welcome




    if the problem is solved, make me happy and hit Add Reputation (bottom left corner next to the post that was helpful)

+ 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: 3
    Last Post: 06-24-2021, 10:41 AM
  2. Comparing data / finding duplicates accross multiple sheets
    By Alexandre23 in forum Excel General
    Replies: 1
    Last Post: 01-20-2021, 05:59 PM
  3. comparing columns with multiple instances
    By devil20a in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2020, 02:30 AM
  4. Comparing Data on Multiple Sheets and Columns
    By ande2428 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2014, 10:33 AM
  5. [SOLVED] Comparing data in columns over multiple sheets
    By BigBadBill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2013, 02:01 PM
  6. Count instances of a value across multiple sheets
    By turner49 in forum Excel General
    Replies: 5
    Last Post: 09-22-2010, 07:17 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