I think that the optimum method to associate your two arrays is to use my HASH library which you can find in the UDF library and on Jooel's (Lonkero's) UDF mirror site.

The example in the UDF script will demonstrate how to use it. I think you will see an immediate correlation to your your implementation needs.
_________________________
Home page: http://www.kixhelp.com/hb/