I often use Excel as a tool for some tests or data analysis. For example, last week I tried to comparing two columns in data base to see their difference. I found out that I had an Excel as a tool to do that. This file contains some formula for column comparison. Here is summary what I did for my future reference.
First, I copied column from table 1 to a worksheet(table1), and another column from table 2 to another worksheet(table2). Then I added a formula like this in column B:
=MATCH(A2, Table1!A2:A2409, 0)
MATCH function is useful to find first parameter value from the second parameter array, and the third parameter 0 is used to find a match. The result will be the index in the array if item is found, or #NA if nothing is found.
The result will be index number or #NA. I prefer to view the result as true or false. ISNA() is a function for this purpose.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqukJvooTroZ8oUPUo64iykiEWfj8UN_XyUQ0RO3KupGFgzVlWDQhyphenhyphennRaJ9gd3vaHoPX0gES63yAItzSJfuN1DHMCj9GkQhjAbIvA6m50bjKmYwTyoDoCyHdlkUL8bx50fDanb/s320/table1_1.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNcBDTgUmBH99GEIzkRNr-mUHXud0w9VFW-X9M80mV9tSJi-Fj_NnoaX87wB24LIa1sDiovzUfGJ-VJ1n5L0J8eSamtZCAWoytSw4LFhsXMwIC_ZV8NtvjOQhvppiXGXYtDdYd/s320/table1_2.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFrgLBQLLMZBafj0i3XxdPN5ulSs56jRNqTsfiXVx9ZyESjHagZLdh31CdsOVdOjiI1gvz6dI8LFasAc0lkzi17WZWU33y-tcP9vEn9MT-qan9LDRzhOc3x5wOyYpIWKBC4gEl/s320/table2.png)
above are snapshots of NeoOffice at my iMac.
1 comments:
Good Article
Post a Comment