+ Reply to Thread
Results 1 to 8 of 8

Comparing two sets of data

Hybrid View

  1. #1
    Registered User
    Join Date
    09-10-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Comparing two sets of data

    how can i compare two sets of data showing the data in years and months?
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Comparing two sets of data

    Where are these differences supposed to be gotten from? Some sample results?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Comparing two sets of data

    Please indicate what exactly is being compared. I only see one Reading score for Leah West, so what you want is not clear.

    This is a small data set. Enter the answers MANUALLY and then explain how you got those answers, then we'll show you how to automate that.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    09-10-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Comparing two sets of data

    sorry for the lack of info - i've tried to explain more in the spreadsheet. Thanks for having a look.
    Attached Files Attached Files

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Comparing two sets of data

    In G5, copied down:

    =INT(ABS((INT($D5)+MOD($D5,1)*10/12)-(INT(E5)+MOD(E5,1)*10/12)))+MOD(ABS((INT($D5)+MOD($D5,1)*10/12)-(INT(E5)+MOD(E5,1)*10/12)),1)*12/10

    and then copied to column H... but for column H I get different values are you not using column D and F to calculate H?

  6. #6
    Registered User
    Join Date
    09-10-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Comparing two sets of data

    The reading differences work a treat. However when i try the same thing with spelling differences i also get different answers. I am using the column D and F to calculate H. which should tell me the answers in years and months. Thanks for you help so far.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Comparing two sets of data

    If you are using those 2 columns, then I think the results of the formula I gave copied over are correct...

    Can you double-check manually what you should get and if the formula is still wrong please explain why?

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Comparing two sets of data

    I looked at this again... and I see where I may have gone wrong...

    ... I am still not sure this is the best way... but this should get you closer: In G5,

    =(INT(ABS((INT($D5)+MOD($D5,1)*10/12)-(INT(E5)+MOD(E5,1)*10/12)))&"."&ROUND((MOD(ABS((INT($D5)+MOD($D5,1)*10/12)-(INT(E5)+MOD(E5,1)*10/12)),1)*12),0))
    copied down and over to next column...

    There are still the 2nd and last for the Spelling that don't exactly match yours...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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