You're English is excellent.
I would recommend doing what Dennis suggested.  Post your code & sample data.  From what you describe, it should work well..  Unless we're missing something..