+ Reply to Thread
Results 1 to 15 of 15

Comparing two sets of tests

  1. #1
    Registered User
    Join Date
    06-24-2015
    Location
    Denmark
    MS-Off Ver
    2010
    Posts
    8

    Comparing two sets of tests

    Hey Guys
    Im doing some research for my PhD, and I need to compare to sets of tests, to see if they where taken within 30 days of each other.

    So i got TEST A with like 500 people that have taken the test a random number of times. And I got TEST B, which is the same. I now want to see which of the people have taken both tests (with a maximum of 30 days between the dates)
    For each test i got their social security number and the date(s) they took the test.

    Could this be solved with a function, or do I need to make a macro? And can any of you help me along the way? plz!

    Best Regards
    Tipsmark
    Last edited by Tipsmark02; 06-24-2015 at 02:46 PM.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Comparing two sets of tests

    it can be done with a formula but we'll need a sample of your workbook to see how your data is arranged
    and build the formula accordingly.
    Can you attach your workbook to your thread?
    Regards
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    06-24-2015
    Location
    Denmark
    MS-Off Ver
    2010
    Posts
    8
    Quote Originally Posted by p24leclerc View Post
    it can be done with a formula but we'll need a sample of your workbook to see how your data is arranged
    and build the formula accordingly.
    Can you attach your workbook to your thread?
    Regards
    Hey!
    I cant really attach the worksheet as there is social security numbers in it. But it is arranged so that A2-A1893 contains security numbers for test a, and b2-b1893 is the dato for test a... then there is d2-d1730 which is numbers for test b, and e2-e1730 with the dates. Really hope you can help me! ☺

  4. #4
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Comparing two sets of tests

    Do you just want to view data from test A and test B side by side?

  5. #5
    Registered User
    Join Date
    06-24-2015
    Location
    Denmark
    MS-Off Ver
    2010
    Posts
    8

    Re: Comparing two sets of tests

    I want to know which of the participants have taken both tests, within 30 days of eachother

  6. #6
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Comparing two sets of tests

    Okay, I'm going to use Test A as the base and use column C for your formula (you can place this in any other column)
    What the formula will do is,
    1) If the participant has taken both tests within 30 days, it'll say YES
    2) If the participant has taken both tests but for more than 30 days apart, it'll say NO
    3) If participant has taken A but not B, it'll say N/A

    In cell C2, put in the formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then copy it down to C1893

  7. #7
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Comparing two sets of tests

    You may try Vlookup as
    G2:
    Please Login or Register  to view this content.
    You may copy + past special + values to another column and sort to remove the blank cells.

    See attached

    Thanks
    Attached Files Attached Files
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  8. #8
    Registered User
    Join Date
    06-24-2015
    Location
    Denmark
    MS-Off Ver
    2010
    Posts
    8

    Re: Comparing two sets of tests

    Thanks guys, I will try both in a couple of hours, when I get home, and see if they do the trick ☺

  9. #9
    Registered User
    Join Date
    06-24-2015
    Location
    Denmark
    MS-Off Ver
    2010
    Posts
    8

    Re: Comparing two sets of tests

    They both do not work, as they don't take into consideration that the participants can take the tests multiple times

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Comparing two sets of tests

    You better better help on your question if you add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.

    already asked in #2.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  11. #11
    Registered User
    Join Date
    06-24-2015
    Location
    Denmark
    MS-Off Ver
    2010
    Posts
    8

    Re: Comparing two sets of tests

    Hey
    I just got a small problem here, I only have the danish version of excel, so all my fomulars is also in danish. Hope you can bear with me.
    Ive attached a small sample file (The one that Mahju made), and included the fomular made by quekbc.
    As you can see, participant '6' gets a NO, even though he took both tests within 30 days of eachother, this is because the formular only checks for one instance of the test, and not all of them.

    Hope that helped, I'm new with this so please bear with me

    BTW: The date format I use is DAY/MONTH/YEAR

    (really need to get english version installed so i don't have to translate formulars all the time :/)


    UPDATED file with expected outcome --- See 3.0, can'd delete 2.0 :/
    Attached Files Attached Files
    Last edited by Tipsmark02; 06-25-2015 at 02:49 PM.

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Comparing two sets of tests

    If you add your file with the danish formula's, excel translate that automatic in the regional settings (in my case Dutch), for another one (English).

    Please also add manualy the expected result in your file.

  13. #13
    Registered User
    Join Date
    06-24-2015
    Location
    Denmark
    MS-Off Ver
    2010
    Posts
    8

    Re: Comparing two sets of tests

    I'm pretty sure by now that I need to make a macro, but please look in the COMPARE TEST 3.0 and see if you can find a way to make it work with a formula.

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Comparing two sets of tests

    6 6-5-2015 NO YES
    6 6-8-2015 YES YES

    Why is the result on the first 6 expected YES.

    If one of the values (of 6) meets the criteria, it meets the criteria or not?

  15. #15
    Registered User
    Join Date
    06-24-2015
    Location
    Denmark
    MS-Off Ver
    2010
    Posts
    8

    Re: Comparing two sets of tests

    Quote Originally Posted by oeldere View Post
    6 6-5-2015 NO YES
    6 6-8-2015 YES YES

    Why is the result on the first 6 expected YES.

    If one of the values (of 6) meets the criteria, it meets the criteria or not?
    Coloumn A is the base, so you are reading it wrong, the second row has participant 7 as base, and the answer 'yes' is for him not for number 6.

    I can see how its confusing, should have put the formula in row c, so it was more clear that A was the base.

+ 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. [SOLVED] Comparing two sets of numbers
    By FoxyDread in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-01-2013, 07:22 AM
  2. [SOLVED] comparing number sets
    By Chubster in forum Excel General
    Replies: 2
    Last Post: 10-15-2012, 07:10 PM
  3. Comparing two sets of data
    By redrasta in forum Excel General
    Replies: 8
    Last Post: 02-16-2012, 08:56 AM
  4. Comparing two sets of data
    By LEEP2008 in forum Excel General
    Replies: 7
    Last Post: 10-08-2009, 03:38 PM
  5. [SOLVED] Average a group of tests for grade, some tests not taken by all.
    By Scafidel in forum Excel General
    Replies: 4
    Last Post: 08-18-2005, 11:05 PM

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