Comparing 2 sets of data

mattkbn1

New Member
Joined
Aug 9, 2010
Messages
2
Hi I was hoping someone could help me compare 4 columns of data. For my data I am just comparing the outputs of two programs (for example the x-y coordinates of a map). So in columns A & B I have the x-y coordinates from 1 program and columns C & D I have the x-y coordinates from another program and I want to compare to see which ones match. There is also some error in the coordinates as one program is more sophisticated than the other. So for example here is some of the data:

<title>Tables</title> ****** http-equiv="Content-Type" content="text/html; charset=utf-8"> <!-- "G_PLUGIN_FOR_HTML" --> <style type="text/css"> tt { font-family: courier; } td { font-family: helvetica, sans-serif; } caption { font-family: helvetica, sans-serif; font-size: 14pt; text-align: left; } </style> <table cellpadding="3" cellspacing="0"> <tbody><tr> <td style="font-size: 10pt;" align="right" valign="bottom">1</td> <td style="font-size: 10pt;" align="right" valign="bottom">3232.05</td> <td style="font-size: 10pt;" align="right" valign="bottom">2</td> <td style="font-size: 10pt;" align="right" valign="bottom">198</td> </tr> <tr> <td style="font-size: 10pt;" align="right" valign="bottom">1.119</td> <td style="font-size: 10pt;" align="right" valign="bottom">3319.79</td> <td style="font-size: 10pt;" align="right" valign="bottom">2</td> <td style="font-size: 10pt;" align="right" valign="bottom">1254</td> </tr> <tr> <td style="font-size: 10pt;" align="right" valign="bottom">1.25</td> <td style="font-size: 10pt;" align="right" valign="bottom">3426.35</td> <td style="font-size: 10pt;" align="right" valign="bottom">4</td> <td style="font-size: 10pt;" align="right" valign="bottom">380</td> </tr> <tr> <td style="font-size: 10pt;" align="right" valign="bottom">1.282</td> <td style="font-size: 10pt;" align="right" valign="bottom">1392.81</td> <td style="font-size: 10pt;" align="right" valign="bottom">4</td> <td style="font-size: 10pt;" align="right" valign="bottom">3283</td> </tr> <tr> <td style="font-size: 10pt;" align="right" valign="bottom">1.288</td> <td style="font-size: 10pt;" align="right" valign="bottom">3672.17</td> <td style="font-size: 10pt;" align="right" valign="bottom">5</td> <td style="font-size: 10pt;" align="right" valign="bottom">687</td> </tr> <tr> <td style="font-size: 10pt;" align="right" valign="bottom">1.29</td> <td style="font-size: 10pt;" align="right" valign="bottom">2608.25</td> <td style="font-size: 10pt;" align="right" valign="bottom">5</td> <td style="font-size: 10pt;" align="right" valign="bottom">2058</td> </tr> <tr> <td style="font-size: 10pt;" align="right" valign="bottom">1.321</td> <td style="font-size: 10pt;" align="right" valign="bottom">67.195</td> <td style="font-size: 10pt;" align="right" valign="bottom">6</td> <td style="font-size: 10pt;" align="right" valign="bottom">846</td> </tr> <tr> <td style="font-size: 10pt;" align="right" valign="bottom">1.323</td> <td style="font-size: 10pt;" align="right" valign="bottom">3918.82</td> <td style="font-size: 10pt;" align="right" valign="bottom">7</td> <td style="font-size: 10pt;" align="right" valign="bottom">1631</td> </tr> <tr> <td style="font-size: 10pt;" align="right" valign="bottom">1.329</td> <td style="font-size: 10pt;" align="right" valign="bottom">2625.88</td> <td style="font-size: 10pt;" align="right" valign="bottom">9</td> <td style="font-size: 10pt;" align="right" valign="bottom">3185</td> </tr> <tr> <td style="font-size: 10pt;" align="right" valign="bottom">1.337</td> <td style="font-size: 10pt;" align="right" valign="bottom">2471.69</td> <td style="font-size: 10pt;" align="right" valign="bottom">10</td> <td style="font-size: 10pt;" align="right" valign="bottom">3714</td> </tr> <tr> <td style="font-size: 10pt;" align="right" valign="bottom">1.338</td> <td style="font-size: 10pt;" align="right" valign="bottom">764.246</td> <td style="font-size: 10pt;" align="right" valign="bottom">12</td> <td style="font-size: 10pt;" align="right" valign="bottom">2745</td> </tr> <tr> <td style="font-size: 10pt;" align="right" valign="bottom">1.37</td> <td style="font-size: 10pt;" align="right" valign="bottom">3420.18</td> <td style="font-size: 10pt;" align="right" valign="bottom">14</td> <td style="font-size: 10pt;" align="right" valign="bottom">1559</td> </tr> </tbody></table>

As you can tell the data on the left is much more detailed than the one on the right, but I still need to compare them for similarities. Any help would be greatly appreciated.
 

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,327
In your example none of them match.
Since you say the numbers are more detailed
can you supply some data where the numbers are different but YOU consider them to "match"?
 

mattkbn1

New Member
Joined
Aug 9, 2010
Messages
2
Oh I'm sorry, there are thousands of rows of data and there should be an eventual match on the left side with the ones on the right. It's just the data in columns A & B are much more precise and find many more points. I should have specified that the columns A & B have many more x-y coordinates than columns C & D. But that is what I am trying to determine; So for columns A & B there are 10,000 different points and for columns C & D there are only about 5,000 (because one program was more precise than the other). I just want to see which points these two sets of data have in common...
 

Forum statistics

Threads
1,081,706
Messages
5,360,763
Members
400,595
Latest member
T_Dubs

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top