PC Review


Reply
Thread Tools Rate Thread

Comparing Large Data Sets in Excel

 
 
JohnnyCJohnny
Guest
Posts: n/a
 
      23rd Feb 2007
Using Excel, we are trying to compare 500 zip codes to the zip codes
for 10,000 employees. We are trying to determine which employee zip
codes match the 500 zip codes we are using for comparison.

The problem is that the OR statement in Excel is rather limited and
only allows 30 comparisons at a time. We would like to be able to
take any one of our 10,000 employee zip codes and simply compare it to
the 500 zip codes and receive a TRUE or FALSE result based on whether
there is a match between the two.

We have done extensive searching in Excel Help and online and it
appears that the OR statement is our only option for comparison. Can
anyone point out a better way to compare a two large sample sets in
Excel to determine if there are matches between the two sets?

Thanks!

 
Reply With Quote
 
 
 
 
Greg Glynn
Guest
Posts: n/a
 
      23rd Feb 2007

Try something like this:

Define your ZipCodes as a Named Range - "ZipCodes"
Define your Employee ZipCodes as a Named Range - "EmpZips"

Then run a nested For-Next loop

For Each C in Range("EmpZips")
For Each D in Range("ZipCodes")
If c=d then
'Found a match - Do something"

'Then jump to the next Employee
Exit For
End If
Next D
Next C


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing two data sets PR1 Microsoft Excel Worksheet Functions 1 1st Nov 2008 02:52 PM
how to save large data sets in excel =?Utf-8?B?c2hlY2s=?= Microsoft Excel Misc 1 2nd Aug 2005 07:02 AM
Comparing two sets of data Eric G Microsoft Excel Programming 12 5th Apr 2004 11:36 PM
Comparing 2 sets of data Dave Aanderson Microsoft Excel Worksheet Functions 1 24th Oct 2003 05:02 AM
Comparing two sets of data Alice Microsoft Excel Misc 1 5th Aug 2003 11:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:12 AM.